mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
21 lines
378 B
C++
21 lines
378 B
C++
#include <sta/gpio_pin.hpp>
|
|
|
|
|
|
namespace sta
|
|
{
|
|
void GpioPin::setHigh()
|
|
{
|
|
setState(GpioPinState::GPIO_HIGH);
|
|
}
|
|
|
|
void GpioPin::setLow()
|
|
{
|
|
setState(GpioPinState::GPIO_LOW);
|
|
}
|
|
|
|
void GpioPin::toggle()
|
|
{
|
|
setState(getState() == GpioPinState::GPIO_HIGH ? GpioPinState::GPIO_LOW : GpioPinState::GPIO_HIGH);
|
|
}
|
|
} // namespace sta
|