Class GPIOMtb
Defined in File gpio-mtb.hpp
Inheritance Relationships
Base Type
public GPIO
Class Documentation
-
class GPIOMtb : public virtual GPIO
Public Functions
-
GPIOMtb()
GPIO MTB default constructor.
-
GPIOMtb(mtb_gpio_t pin, mtb_gpio_config_t config, VLogic_t logic)
GPIO MTB default constructor.
-
~GPIOMtb()
GPIO MTB destructor.
-
inline Error_t init()
Initializes the MTB GPIO.
- Return values:
OK – if success
INTF_ERROR – if initialization error
- Returns:
GPIO error code
-
inline Error_t deinit()
Initializes the MTB GPIO.
- Return values:
OK – if success
INTF_ERROR – if deinitialization error
- Returns:
GPIO error code
-
inline VLevel_t read()
Reads the MTB GPIO voltage level.
- Return values:
GPIO_LOW – if voltage low
GPIO_HIGH – if voltage high
- Returns:
GPIO voltage level
-
inline Error_t write(VLevel_t level)
Writes the MTB GPIO output voltage level.
- Parameters:
level – [in] Voltage level
- Return values:
OK – if success
INTF_ERROR – if error
- Returns:
GPIO error code
-
inline Error_t enable()
Enables the MTB output according to the GPIO logic.
Low if negative
High if positive
- Return values:
OK – if success
INTF_ERROR – if error
- Returns:
GPIO interrupt event
-
inline Error_t disable()
Disables the MTB output according to the GPIO logic.
Low if positive
High if negative
- Return values:
OK – if success
INTF_ERROR – if error
- Returns:
GPIO error code
-
GPIOMtb()