AM65x MCU+ SDK  09.01.00
led.h File Reference

Go to the source code of this file.

Data Structures

struct  LED_Params
 Parameters passed during LED_open() More...
 
struct  LED_Fxns
 Driver implementation callbacks. More...
 
struct  LED_Attrs
 LED device attributes, these are filled by SysCfg based on the device that is selected. More...
 
struct  LED_Config
 LED driver configuration, these are filled by SysCfg based on the device that is selected. More...
 
struct  LED_Object
 LED driver object - not to be used by application. More...
 

Typedefs

typedef void * LED_Handle
 Handle to the LED driver returned by LED_open() More...
 
LED driver implementation callbacks
typedef int32_t(* LED_OpenFxn) (LED_Config *config, const LED_Params *params)
 Driver implementation to open a specific LED driver. More...
 
typedef void(* LED_CloseFxn) (LED_Config *config)
 Driver implementation to close a specific LED driver. More...
 
typedef int32_t(* LED_OnFxn) (LED_Config *config, uint32_t index)
 Driver implementation to power on an LED using a specific LED driver. More...
 
typedef int32_t(* LED_OffFxn) (LED_Config *config, uint32_t index)
 Driver implementation to power off an LED using a specific LED driver. More...
 
typedef int32_t(* LED_SetMaskFxn) (LED_Config *config, uint32_t mask)
 Driver implementation to set group mask using a specific LED driver. More...
 

Functions

void LED_Params_init (LED_Params *params)
 Set default parameters in the LED_Params_s structure. More...
 
LED_Handle LED_open (uint32_t instanceId, const LED_Params *params)
 Open LED driver. More...
 
void LED_close (LED_Handle handle)
 Open LED driver. More...
 
int32_t LED_on (LED_Handle handle, uint32_t index)
 API to power on the LED. More...
 
int32_t LED_off (LED_Handle handle, uint32_t index)
 API to power off the LED. More...
 
int32_t LED_setMask (LED_Handle handle, uint32_t mask)
 API to set the group mask incase of I2C controlled LED having more than one LED connected to the controller. More...
 
const LED_AttrsLED_getAttrs (uint32_t instanceId)
 Return LED attributes. More...