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"
25class GPIORpi :
virtual public HallSwitch::GPIO
28 #define UNUSED_PIN 0xFF
Definition hall-pal-rpi.hpp:26
HallSwitch::Error_t disable()
Disables the Raspberry Pi GPIO output according to the GPIO logic.
Definition hall-pal-rpi.cpp:171
HallSwitch::Error_t deinit()
Deinitializes the Raspberry Pi GPIO.
Definition hall-pal-rpi.cpp:67
HallSwitch::Error_t enableInt(HallSwitch *ptr)
Enables the Raspberry Pi GPIO interrupt.
Definition hall-pal-rpi.cpp:78
HallSwitch::Error_t write(VLevel_t level)
Writes the Raspberry Pi GPIO output voltage level.
Definition hall-pal-rpi.cpp:138
HallSwitch::Error_t init()
Initializes the Raspberry Pi GPIO.
Definition hall-pal-rpi.cpp:51
HallSwitch::Error_t enable()
Enables the Raspberry Pi GPIO output according to the GPIO logic.
Definition hall-pal-rpi.cpp:151
IntEvent_t intEvent()
Gets the latest Raspberry Pi interrupt event.
Definition hall-pal-rpi.cpp:104
VLevel_t read()
Reads the Raspberry Pi GPIO voltage level.
Definition hall-pal-rpi.cpp:127
GPIORpi()
GPIO Rpi constructor.
Definition hall-pal-rpi.cpp:30
HallSwitch::Error_t disableInt()
Disables the Raspberry Pi GPIO interrupt.
Definition hall-pal-rpi.cpp:93
~GPIORpi()
GPIO Rpi destructor.
Definition hall-pal-rpi.cpp:39
Definition hall-switch.hpp:23
Error_t
Definition hall-switch.hpp:31