Added easier GPIO pin API

This commit is contained in:
dario
2024-04-18 00:01:14 +02:00
parent 7cc6108a40
commit 67e7d88a5b
2 changed files with 38 additions and 0 deletions

View File

@@ -38,6 +38,24 @@ namespace sta
*/
virtual void setState(GpioPinState state) = 0;
/**
* @brief Set the GPIO pin to high.
*
*/
void setHigh();
/**
* @brief Set the GPIO pin to low.
*
*/
void setLow();
/**
* @brief Set the GPIO pin to the opposite of the current state.
*
*/
void toggle();
/**
* @brief Get pin input state.
*