10 #ifndef HALL_SWITCH_RPI_HPP_ 11 #define HALL_SWITCH_RPI_HPP_ 13 #include "../../../config/hall-conf.hpp" 15 #if (HALL_SWITCH_FRAMEWORK == HALL_SWITCH_FRMWK_RPI) 17 #include "../../../pal/hall-pal-gpio.hpp" 28 #define UNUSED_PIN 0xFF HallSwitch::Error_t enableInt(HallSwitch *ptr)
Enables the Raspberry Pi GPIO interrupt.
Definition: hall-pal-rpi.cpp:78
HallSwitch::Error_t deinit()
Deinitializes the Raspberry Pi GPIO.
Definition: hall-pal-rpi.cpp:67
HallSwitch::Error_t write(VLevel_t level)
Writes the Raspberry Pi GPIO output voltage level.
Definition: hall-pal-rpi.cpp:138
Error_t
Definition: hall-switch.hpp:30
Definition: hall-pal-rpi.hpp:25
~GPIORpi()
GPIO Rpi destructor.
Definition: hall-pal-rpi.cpp:39
HallSwitch::Error_t init()
Initializes the Raspberry Pi GPIO.
Definition: hall-pal-rpi.cpp:51
HallSwitch::Error_t disable()
Disables the Raspberry Pi GPIO output according to the GPIO logic.
Definition: hall-pal-rpi.cpp:171
VLevel_t
Definition: hall-pal-gpio.hpp:39
Definition: hall-switch.hpp:22
VLogic_t
Definition: hall-pal-gpio.hpp:50
VLevel_t read()
Reads the Raspberry Pi GPIO voltage level.
Definition: hall-pal-rpi.cpp:127
IntEvent_t
Definition: hall-pal-gpio.hpp:28
IntEvent_t intEvent()
Gets the latest Raspberry Pi interrupt event.
Definition: hall-pal-rpi.cpp:104
HallSwitch::Error_t disableInt()
Disables the Raspberry Pi GPIO interrupt.
Definition: hall-pal-rpi.cpp:93
Definition: hall-pal-gpio.hpp:20
HallSwitch::Error_t enable()
Enables the Raspberry Pi GPIO output according to the GPIO logic.
Definition: hall-pal-rpi.cpp:151
GPIORpi()
GPIO Rpi constructor.
Definition: hall-pal-rpi.cpp:30