BLM_SCALAR

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]

Detailed Description

BLM_SCALAR Driver


Function Documentation

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)

Returns:
< 0 on errors

Here is the call graph for this function:

blm_scalar_config_t BLM_SCALAR_ConfigGet ( void   ) 

Returns current BLM configuration

Returns:
config structure see BLM_SCALAR_ConfigSet()
s32 BLM_SCALAR_ConfigSet ( blm_scalar_config_t  config  ) 

Configures the BLM_SCALAR driver.

See blm_scalar.h for more informations

Parameters:
[in] config click on blm_scalar_config_t declaration to display the members
Returns:
< 0 if initialisation failed

Here is the call graph for this function:

s32 BLM_SCALAR_DIN_PinGet ( u32  pin  ) 

Returns value of BLM DIN pin

Parameters:
[in] pin number of pin
Returns:
pin value (0 or 1)
< 0 if pin not available
u8 BLM_SCALAR_DIN_SRGet ( u32  sr  ) 

Returns value of BLM DIN "virtual" shift register

Parameters:
[in] sr number of shift register
Returns:
< 0 if pin not available
s32 BLM_SCALAR_DOUT_PinGet ( u32  colour,
u32  pin 
)

Returns red/green/blue LED status

Parameters:
[in] colour the colour selection (0/1/2)
[in] pin the pin number
Returns:
< 0 if pin not available
s32 BLM_SCALAR_DOUT_PinSet ( u32  colour,
u32  pin,
u32  value 
)

Sets red/green/blue LED to 0 or Vss

Parameters:
[in] colour the colour selection (0/1/2)
[in] pin the pin number
[in] value the pin value
Returns:
< 0 if pin not available

Here is the call graph for this function:

u8 BLM_SCALAR_DOUT_SRGet ( u32  colour,
u32  sr 
)

Returns content of red or green "virtual" shift register

Parameters:
[in] colour the colour selection (0/1/2)
[in] sr the shift register number
Returns:
< 0 if SR not available
s32 BLM_SCALAR_DOUT_SRSet ( u32  colour,
u32  sr,
u8  value 
)

Sets red or green "virtual" shift register

Parameters:
[in] colour the colour selection (0/1/2)
[in] sr the shift register number
[in] value the shift register value
Returns:
< 0 if SR not available
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

Returns:
< 0 on errors

Here is the call graph for this function:

s32 BLM_SCALAR_Init ( u32  mode  ) 

Initializes the BLM_SCALAR driver Should be called from Init() during startup

Parameters:
[in] mode currently only mode 0 supported
Returns:
< 0 if initialisation failed

Here is the call graph for this function:

s32 BLM_SCALAR_PrepareCol ( void   ) 

This function prepares the DOUT register to drive a row.
It should be called from the APP_SRIO_ServicePrepare()

Returns:
< 0 on errors

Here is the call graph for this function:


Variable Documentation

u8 blm_scalar_led[BLM_SCALAR_NUM_MODULES][8][BLM_SCALAR_NUM_COLOURS]

Generated on 22 Jan 2016 for MIOS32 by  doxygen 1.6.1