Functions | |
s32 | BLM_SCALAR_Init (u32 mode) |
s32 | BLM_SCALAR_ConfigSet (blm_scalar_config_t config) |
blm_scalar_config_t | BLM_SCALAR_ConfigGet (void) |
s32 | BLM_SCALAR_PrepareCol (void) |
s32 | BLM_SCALAR_GetRow (void) |
s32 | BLM_SCALAR_ButtonHandler (void *_notify_hook) |
s32 | BLM_SCALAR_DIN_PinGet (u32 pin) |
u8 | BLM_SCALAR_DIN_SRGet (u32 sr) |
s32 | BLM_SCALAR_DOUT_PinSet (u32 colour, u32 pin, u32 value) |
s32 | BLM_SCALAR_DOUT_PinGet (u32 colour, u32 pin) |
s32 | BLM_SCALAR_DOUT_SRSet (u32 colour, u32 sr, u8 value) |
u8 | BLM_SCALAR_DOUT_SRGet (u32 colour, u32 sr) |
Variables | |
u8 | blm_scalar_led [BLM_SCALAR_NUM_MODULES][8][BLM_SCALAR_NUM_COLOURS] |
BLM_SCALAR Driver
s32 BLM_SCALAR_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_scalar_config_t BLM_SCALAR_ConfigGet | ( | void | ) |
Returns current BLM configuration
s32 BLM_SCALAR_ConfigSet | ( | blm_scalar_config_t | config | ) |
Configures the BLM_SCALAR driver.
See blm_scalar.h for more informations
[in] | config | click on blm_scalar_config_t declaration to display the members |
Returns value of BLM DIN pin
[in] | pin | number of pin |
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_SCALAR_GetRow | ( | void | ) |
This function gets the DIN values of the selected row.
It should be called from the APP_SRIO_ServiceFinish() hook
Initializes the BLM_SCALAR driver Should be called from Init() during startup
[in] | mode | currently only mode 0 supported |
s32 BLM_SCALAR_PrepareCol | ( | void | ) |
This function prepares the DOUT register to drive a row.
It should be called from the APP_SRIO_ServicePrepare()
u8 blm_scalar_led[BLM_SCALAR_NUM_MODULES][8][BLM_SCALAR_NUM_COLOURS] |