220 #ifndef ti_drivers_LED__include 221 #define ti_drivers_LED__include 229 #include <ti/drivers/dpl/ClockP.h> 235 #define LED_BRIGHTNESS_MAX 100U 236 #define LED_BRIGHTNESS_MIN 0U 241 #define LED_BLINK_FOREVER 0xFFFF 362 extern void LED_close(LED_Handle ledHandle);
454 extern bool LED_setOn(LED_Handle ledHandle, uint8_t brightness);
472 extern void LED_startBlinking(LED_Handle ledHandle, uint16_t blinkPeriod, uint16_t blinkCount);
498 extern void LED_write(LED_Handle ledHandle,
bool value);
uint16_t togglePeriod
Definition: LED.h:327
LED Parameters.
Definition: LED.h:343
bool LED_setBrightnessLevel(LED_Handle ledHandle, uint8_t level)
Function to set brightness level of a LED.
ADC_Params params
Definition: Driver_Init.h:11
LED Object structure.
Definition: LED.h:315
PWM_Handle pwmHandle
Definition: LED.h:318
void LED_close(LED_Handle ledHandle)
Function to close a LED specified by the LED handle.
LED_Type type
Definition: LED.h:307
void LED_Params_init(LED_Params *params)
Function to initialize a LED_Params struct to its defaults.
PWM Global configuration.
Definition: PWM.h:438
LED configuration.
Definition: LED.h:284
ClockP_Handle clockHandle
Definition: LED.h:319
uint16_t blinkCount
Definition: LED.h:330
uint8_t brightness
Definition: LED.h:325
LED_State setState
Definition: LED.h:348
Pulse Width Modulation (PWM) driver.
LED_State state
Definition: LED.h:321
void LED_toggle(LED_Handle ledHandle)
Function to toggle an LED.
uint32_t pwmPeriod
Definition: LED.h:317
bool LED_setOff(LED_Handle ledHandle)
Function to turn off an LED.
LED_Handle LED_open(uint_least8_t index, LED_Params *params)
Function to open an instance of LED.
uint32_t pwmPeriod
Definition: LED.h:345
void LED_stopBlinking(LED_Handle ledHandle)
Function to stop an LED blinking.
Hardware specific settings for a LED module.
Definition: LED.h:304
uint8_t brightness
Definition: LED.h:347
uint16_t blinkPeriod
Definition: LED.h:346
LED_State rawState
Definition: LED.h:322
bool LED_setOn(LED_Handle ledHandle, uint8_t brightness)
Function to turn on an LED.
LED_Config * LED_Handle
A handle that is returned from a LED_open() call.
Definition: LED.h:295
uint_least8_t gpioIndex
Definition: LED.h:326
LED_State
LED State.
Definition: LED.h:268
LED_Type ledType
Definition: LED.h:324
void LED_init(void)
Function to initialize LED driver.
ClockP_Struct clock
Definition: LED.h:320
General Purpose I/O driver interface.
LED_State LED_getState(LED_Handle ledHandle)
Function to get LED state.
const uint_least8_t LED_count
void const * hwAttrs
Definition: LED.h:289
void LED_write(LED_Handle ledHandle, bool value)
Specify binary state of an LED.
void LED_startBlinking(LED_Handle ledHandle, uint16_t blinkPeriod, uint16_t blinkCount)
Function to start an LED blinking.
uint_least8_t index
Definition: LED.h:306
LED_Type
LED types based on control source.
Definition: LED.h:253
void * object
Definition: LED.h:287