#include <hall-pal-rpi.hpp>
◆ GPIORpi() [1/2]
◆ GPIORpi() [2/2]
| GPIORpi::GPIORpi |
( |
uint8_t |
pin, |
|
|
uint8_t |
mode, |
|
|
VLogic_t |
logic |
|
) |
| |
GPIO Rpi default constructor.
◆ ~GPIORpi()
◆ init()
Initializes the Raspberry Pi GPIO.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if initialization error |
◆ deinit()
Deinitializes the Raspberry Pi GPIO.
- Returns
- GPIO error code
- Return values
-
◆ enableInt()
Enables the Raspberry Pi GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
◆ disableInt()
Disables the Raspberry Pi GPIO interrupt.
- Note
- Not supported by low level framework.
- Returns
- GPIO error code
- Return values
-
◆ intEvent()
| GPIORpi::IntEvent_t GPIORpi::intEvent |
( |
| ) |
|
|
inline |
Gets the latest Raspberry Pi interrupt event.
- Returns
- GPIO interrupt event
- Return values
-
| INT_FALLING_EDGE | if falling edge event |
| INT_RISING_EDGE | if rising edge event |
◆ read()
| GPIORpi::VLevel_t GPIORpi::read |
( |
| ) |
|
|
inline |
Reads the Raspberry Pi GPIO voltage level.
- Returns
- GPIO voltage level
- Return values
-
| GPIO_LOW | if voltage low |
| GPIO_HIGH | if voltage high |
◆ write()
Writes the Raspberry Pi GPIO output voltage level.
- Parameters
-
- Returns
- GPIO error code
- Return values
-
◆ enable()
Enables the Raspberry Pi GPIO output according to the GPIO logic.
- Low if negative
- High if positive
- Returns
- GPIO interrupt event
- Return values
-
◆ disable()
Disables the Raspberry Pi GPIO output according to the GPIO logic.
- Low if positive
- High if negative
- Returns
- GPIO error code
- Return values
-
The documentation for this class was generated from the following files: