#include <hall-pal-ino.hpp>
GPIO Ino default constructor.
| GPIOIno::GPIOIno |
( |
uint8_t |
pin, |
|
|
uint8_t |
mode, |
|
|
VLogic_t |
logic |
|
) |
| |
Initializes the Arduino GPIO.
- Returns
- GPIO error code
- Return values
-
Implements HallSwitch::GPIO.
Deinitializes the Arduino GPIO.
- Returns
- GPIO error code
- Return values
-
Implements HallSwitch::GPIO.
Enables the Arduino GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
Implements HallSwitch::GPIO.
Disables the Arduino GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
Implements HallSwitch::GPIO.
Gets the latest Arduino interrupt event.
- Returns
- GPIO interrupt event
- Return values
-
| INT_FALLING_EDGE | if falling edge event |
| INT_RISING_EDGE | if rising edge event |
Implements HallSwitch::GPIO.
Reads the Arduino GPIO voltage level.
- Returns
- GPIO voltage level
- Return values
-
| GPIO_LOW | if voltage low |
| GPIO_HIGH | if voltage high |
Implements HallSwitch::GPIO.
Writes the Arduino GPIO output voltage level.
- Parameters
-
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| WRITE_ERROR | if write error |
Implements HallSwitch::GPIO.
Enables the Arduino GPIO output according to the GPIO logic.
- Low if negative
- High if positive
- Returns
- GPIO interrupt event
- Return values
-
| OK | if success |
| WRITE_ERROR | if write error |
Implements HallSwitch::GPIO.
Disables the Arduino GPIO output according to the GPIO logic.
- Low if positive
- High if negative
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| WRITE_ERROR | if write error |
Implements HallSwitch::GPIO.
The documentation for this class was generated from the following files: