|
Smart Knob Controller
|
Wrapper class for STM32 GPIO pin control. More...
#include <gpio.h>
Public Member Functions | |
| GPIO (GPIO_TypeDef *port, uint16_t pin) | |
| Constructs a GPIO object. | |
| void | write (GPIO_PinState state) const |
| Writes a logic level to the GPIO pin. | |
| void | high () const |
| Sets the GPIO pin high. | |
| void | low () const |
| Sets the GPIO pin low. | |
Wrapper class for STM32 GPIO pin control.
| GPIO::GPIO | ( | GPIO_TypeDef * | port, |
| uint16_t | pin ) |
| void GPIO::write | ( | GPIO_PinState | state | ) | const |
Writes a logic level to the GPIO pin.
| state | GPIO_PIN_SET or GPIO_PIN_RESET. |