#include <led.h>
Public Member Functions | |
void | init (GPIO_TypeDef *gpio_port, uint16_t pin) |
void | off () |
void | on () |
Public Member Functions inherited from GPIO | |
void | init (GPIO_TypeDef *BasePort, uint16_t pin, gpio_mode_t mode) |
bool | read () |
void | set_mode (gpio_mode_t mode) |
void | toggle (void) |
void | write (gpio_write_t state) |
Additional Inherited Members | |
Public Types inherited from GPIO | |
enum | gpio_mode_t { INPUT, OUTPUT, PERIPH_OUT, PERIPH_IN, PERIPH_IN_OUT, ANALOG, EXTERNAL_INTERRUPT } |
enum | gpio_write_t { HIGH, LOW } |
void LED::init | ( | GPIO_TypeDef * | gpio_port, |
uint16_t | pin | ||
) |