#include <hall-pal-gpio.hpp>
Enumerator |
---|
INT_FALLING_EDGE |
Interrupt on falling edge
|
INT_RISING_EDGE |
Interrupt on rising edge
|
Enumerator |
---|
GPIO_LOW |
Level low
|
GPIO_HIGH |
Level high
|
Enumerator |
---|
NEGATIVE |
Negative logic. 0 on voltage level high, 1 on voltage low
|
POSITIVE |
Positive logic. 1 on voltage level high, 0 on voltage low
|
Deinitializes the GPIO.
- Returns
- GPIO error code
- Return values
-
OK | if success |
INTF_ERROR | if deinitialization error |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
Enables the hardware interrupt.
- Parameters
-
[in] | *ptr | HallSwith object pointer which holds the interrupt |
- Returns
- GPIO error code
- Return values
-
OK | if success |
INTF_ERROR | if initialization error |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
Disables the hardware interrupt.
- Returns
- GPIO error code
- Return values
-
OK | if success |
INTF_ERROR | if disable error |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
Gets the latest interrupt event.
- Returns
- GPIO interrupt event
- Return values
-
INT_FALLING_EDGE | if falling edge event |
INT_RISING_EDGE | if rising edge event |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
virtual VLevel_t HallSwitch::GPIO::read |
( |
| ) |
|
|
pure virtual |
Reads the GPIO voltage level.
- Returns
- GPIO voltage level
- Return values
-
GPIO_LOW | if voltage low |
GPIO_HIGH | if voltage high |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
Writes the GPIO output voltage level.
- Parameters
-
- Returns
- GPIO error code
- Return values
-
OK | if success |
INTF_ERROR | if write error |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
Enables the GPIO output according to the GPIO logic.
- Low if negative
- High if positive
- Returns
- GPIO interrupt event
- Return values
-
OK | if success |
INTF_ERROR | if write error |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
Disables the GPIO output according to the GPIO logic.
- Low if positive
- High if negative
- Returns
- GPIO error code
- Return values
-
OK | if success |
INTF_ERROR | if write error |
Implemented in GPIOWiced, GPIOIno, and GPIORpi.
The documentation for this class was generated from the following file: