Files
F411VE-ILI9341/Core/Src/Components/GPIO_Pin.hpp
2024-02-11 12:43:44 -03:00

24 lines
450 B
C++

/*
* GPIO_Pin.hpp
*
* Created on: Feb 10, 2024
* Author: Gabriel
*/
#ifndef SRC_COMPONENTS_GPIO_PIN_HPP_
#define SRC_COMPONENTS_GPIO_PIN_HPP_
#include <inttypes.h>
class GPIO_Pin {
public:
virtual int32_t init() = 0;
virtual uint8_t read() = 0;
virtual void write(uint8_t state) = 0;
virtual void set() = 0;
virtual void reset() = 0;
virtual void toggle() = 0;
};
#endif /* SRC_COMPONENTS_GPIO_PIN_HPP_ */