![]() |
![]() |
LED Object structure. More...
#include <LED.h>

Data Fields | |
| uint32_t | pwmPeriod |
| PWM_Handle | pwmHandle |
| ClockP_Handle | clockHandle |
| ClockP_Struct | clock |
| LED_State | state |
| LED_State | rawState |
| LED_Type | ledType |
| uint8_t | brightness |
| uint_least8_t | gpioIndex |
| uint16_t | togglePeriod |
| uint16_t | blinkCount |
LED Object structure.
The application must not access any member variables of this structure!
| uint32_t LED_Object::pwmPeriod |
pwmPeriod(us) of controlling PWM
| PWM_Handle LED_Object::pwmHandle |
Used for PWM calls if PWM type LED
| ClockP_Handle LED_Object::clockHandle |
Handle to clock used for blinking
| ClockP_Struct LED_Object::clock |
Clock internal data
| LED_State LED_Object::state |
Current State of LED
| LED_State LED_Object::rawState |
rawState maintains actual state On or Off while blinking which is super state
| LED_Type LED_Object::ledType |
may be either GPIO or PWM controlled
| uint8_t LED_Object::brightness |
Varying min-max(0-100%) for PWM LED)
| uint_least8_t LED_Object::gpioIndex |
Index into GPIO_PinConfig array
| uint16_t LED_Object::togglePeriod |
Toggleperiod(ms), 0 for non-blinking LED This is half of blinkPeriod: two toggles is one blink
| uint16_t LED_Object::blinkCount |
Blinkcount, 0 for non-blinking LED