#include <hall-pal-ino.hpp>
◆ GPIOIno() [1/2]
GPIO Ino default constructor.
◆ GPIOIno() [2/2]
| GPIOIno::GPIOIno |
( |
uint8_t |
pin, |
|
|
uint8_t |
mode, |
|
|
VLogic_t |
logic |
|
) |
| |
◆ ~GPIOIno()
◆ init()
◆ deinit()
◆ enableInt()
Enables the Arduino GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
Implements HallSwitch::Hall_GPIO.
◆ disableInt()
Disables the Arduino GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
Implements HallSwitch::Hall_GPIO.
◆ intEvent()
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::Hall_GPIO.
◆ read()
Reads the Arduino GPIO voltage level.
- Returns
- GPIO voltage level
- Return values
-
| GPIO_LOW | if voltage low |
| GPIO_HIGH | if voltage high |
Implements HallSwitch::Hall_GPIO.
◆ write()
Writes the Arduino GPIO output voltage level.
- Parameters
-
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| WRITE_ERROR | if write error |
Implements HallSwitch::Hall_GPIO.
◆ enable()
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::Hall_GPIO.
◆ disable()
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::Hall_GPIO.
The documentation for this class was generated from the following files: