10#ifndef HALL_PAL_GPIO_HPP_
11#define HALL_PAL_GPIO_HPP_
13#include "../corelib/hall-switch.hpp"
Definition hall-pal-gpio.hpp:21
virtual VLevel_t read()=0
Reads the GPIO voltage level.
VLevel_t
Definition hall-pal-gpio.hpp:40
@ GPIO_HIGH
Definition hall-pal-gpio.hpp:42
@ GPIO_LOW
Definition hall-pal-gpio.hpp:41
virtual HallSwitch::Error_t write(VLevel_t level)=0
Writes the GPIO output voltage level.
virtual HallSwitch::Error_t init()=0
Initializes the GPIO.
virtual HallSwitch::Error_t deinit()=0
Deinitializes the GPIO.
IntEvent_t
Definition hall-pal-gpio.hpp:29
@ INT_RISING_EDGE
Definition hall-pal-gpio.hpp:31
@ INT_FALLING_EDGE
Definition hall-pal-gpio.hpp:30
virtual HallSwitch::Error_t enable()=0
Enables the GPIO output according to the GPIO logic.
virtual IntEvent_t intEvent()=0
Gets the latest interrupt event.
virtual HallSwitch::Error_t disableInt()=0
Disables the hardware interrupt.
virtual HallSwitch::Error_t disable()=0
Disables the GPIO output according to the GPIO logic.
virtual HallSwitch::Error_t enableInt(HallSwitch *ptr)=0
Enables the hardware interrupt.
VLogic_t
Definition hall-pal-gpio.hpp:51
@ NEGATIVE
Definition hall-pal-gpio.hpp:52
@ POSITIVE
Definition hall-pal-gpio.hpp:53
Definition hall-switch.hpp:23
Error_t
Definition hall-switch.hpp:31