Class GPIOIno
Defined in File hss-pal-gpio-ino.hpp
Inheritance Relationships
Base Type
public hss::GPIOPAL
(Class GPIOPAL)
Class Documentation
-
class GPIOIno : public virtual hss::GPIOPAL
GPIO platform abstraction layer Arduino API.
Public Functions
-
GPIOIno()
Constructor of the GPIO class for arduino.
This function is setting the basics for a GPIO.
-
GPIOIno(uint8_t pin, uint8_t mode, VLogic_t logic)
Constructor of the GPIO class for arduino.
This function is setting the basics for a GPIO. It allows to set the pin number, mode of the pin and the logic level.
- Parameters:
pin – [in] Number of the desired pin
mode – [in] Defines the mode of the pin (INPUT, OUTPUT, etc.)
logic – [in] Defines the logic level of the pin
-
~GPIOIno()
-
virtual Error_t init()
Initialize the GPIO.
This function is initializing the chosen pin.
- Returns:
High-side switch error code
-
virtual Error_t deinit()
Deinitialize the GPIO.
This function is deinitializing the chosen pin.
- Returns:
High-side switch error code
-
virtual VLevel_t read()
Read GPIO logic level.
This function reads the logic level of the chosen pin and returns the logic level value.
- Return values:
0 – GPIO_LOW
1 – GPIO_HIGH
- Returns:
VLevel_t
-
virtual Error_t write(VLevel_t level)
Set GPIO logic level.
This functions sets the logic level of the chosen pin.
- Parameters:
level – [in] Desired logic level of the pin
- Returns:
High-side switch error code
Public Static Attributes
-
static constexpr uint8_t unusedPin = 0xFFU
Unused pin
-
GPIOIno()