mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Added easier GPIO pin API
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user