stm32f103
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Led Class Reference

Implements LED-related features. More...

#include <led.h>

Classes

struct  Config
 Configuration for LED. More...
 

Public Member Functions

 Led (const Config &config)
 Constructor for LED. More...
 
void SetEnable (const bool flag)
 
void Switch ()
 Switches the state of the LED. More...
 

Protected Member Functions

PinGetPin ()
 
GPIOGetGpio ()
 

Detailed Description

Implements LED-related features.

Constructor & Destructor Documentation

Led::Led ( const Config config)
explicit

Constructor for LED.

Note
LED will always be in off state after constructor is called. If it isn't, your board may have a pull-up resistor, and this feature will be implemented later.
Parameters
configLED configuration

Member Function Documentation

GPIO* Led::GetGpio ( )
inlineprotected
Returns
GPIO object underlying the button
Pin* Led::GetPin ( )
inlineprotected
Returns
Pinout of button
void Led::SetEnable ( const bool  flag)

Sets the state of the LED.

Parameters
flagTrue if LED should be on.

Here is the caller graph for this function:

void Led::Switch ( )

Switches the state of the LED.


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