Functions | |
| s32 | BLM_Init (u32 mode) |
| s32 | BLM_ConfigSet (blm_config_t config) |
| blm_config_t | BLM_ConfigGet (void) |
| s32 | BLM_PrepareCol (void) |
| s32 | BLM_GetRow (void) |
| s32 | BLM_ButtonHandler (void *_notify_hook) |
| s32 | BLM_DIN_PinGet (u32 pin) |
| u8 | BLM_DIN_SRGet (u32 sr) |
| s32 | BLM_DOUT_PinSet (u32 colour, u32 pin, u32 value) |
| s32 | BLM_DOUT_PinGet (u32 colour, u32 pin) |
| s32 | BLM_DOUT_SRSet (u32 colour, u32 sr, u8 value) |
| u8 | BLM_DOUT_SRGet (u32 colour, u32 sr) |
Variables | |
| u8 | blm_led_row [BLM_NUM_COLOURS][BLM_NUM_ROWS] |
| s32 BLM_ButtonHandler | ( | void * | _notify_hook | ) |
This function should be called from a task to check for button changes periodically. Events (change from 0->1 or from 1->0) will be notified via the given callback function <notify_hook> with following parameters: <notifcation-hook>(s32 pin, s32 value)
| blm_config_t BLM_ConfigGet | ( | void | ) |
Returns current BLM configuration
| s32 BLM_ConfigSet | ( | blm_config_t | config | ) |
Configures the BLM driver.
See blm.h for more informations
| [in] | config | a structure with following members:
|
Returns value of BLM DIN pin
| [in] | pin | number of pin |
< 0 if pin not available
Returns value of BLM DIN "virtual" shift register
| [in] | sr | number of shift register |
Returns red/green/blue LED status
| [in] | colour | the colour selection (0/1/2) |
| [in] | pin | the pin number |
Sets red/green/blue LED to 0 or Vss
| [in] | colour | the colour selection (0/1/2) |
| [in] | pin | the pin number |
| [in] | value | the pin value |
Returns content of red or green "virtual" shift register
| [in] | colour | the colour selection (0/1/2) |
| [in] | sr | the shift register number |
Sets red or green "virtual" shift register
| [in] | colour | the colour selection (0/1/2) |
| [in] | sr | the shift register number |
| [in] | value | the shift register value |
| s32 BLM_GetRow | ( | void | ) |
This function gets the DIN values of the selected column.
It should be called from the APP_SRIO_ServiceFinish() hook
Initializes the button LED matrix Should be called from Init() during startup
| [in] | mode | currently only mode 0 supported |
| s32 BLM_PrepareCol | ( | void | ) |
This function prepares the DOUT register to drive a column.
It should be called from the APP_SRIO_ServicePrepare()
| u8 blm_led_row[BLM_NUM_COLOURS][BLM_NUM_ROWS] |
1.4.7