Move interfaces to subdir

This commit is contained in:
Henrik Stickann
2022-05-02 13:37:03 +02:00
parent f8666b69c8
commit 01312ef97d
11 changed files with 15 additions and 12 deletions

View File

@@ -1,35 +0,0 @@
/**
* @brief GPIO pin interface definitions.
*/
#ifndef STA_GPIO_PIN_HPP
#define STA_GPIO_PIN_HPP
namespace sta
{
/**
* @brief GPIO pin state
*/
enum class GpioPinState
{
LOW,
HIGH
};
/**
* @brief Interface for GPIO pins.
*/
class GpioPin
{
public:
/**
* @brief Set pin output state.
*
* @param state Output state
*/
virtual void setState(GpioPinState state) = 0;
};
} // namespace sta
#endif // STA_GPIO_PIN_HPP