Public Member Functions | List of all members
LED Class Reference

#include <led.h>

Inheritance diagram for LED:
Inheritance graph
[legend]

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 }
 

Detailed Description

Definition at line 38 of file led.h.

Member Function Documentation

void LED::init ( GPIO_TypeDef gpio_port,
uint16_t  pin 
)
Parameters
gpio_portGPIO port to use (ie GPIOA, GPIOB, etc)
pinThe pin within this port to use (ie: GPIO_Pin_5)

Definition at line 34 of file led.cpp.

void LED::off ( )

Definition at line 44 of file led.cpp.

void LED::on ( )

Definition at line 39 of file led.cpp.


The documentation for this class was generated from the following files:


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31