# modules/blm/blm.h File Reference

`#include <mios32_config.h>`

## Data Structures
struct | blm_config_t
## Defines
#define | BLM_DOUT_L1_SR 2
#define | BLM_DOUT_R1_SR 5
#define | BLM_DOUT_CATHODES_SR1 1
#define | BLM_DOUT_CATHODES_SR2 4
#define | BLM_CATHODES_INV_MASK 0x00
#define | BLM_DOUT_L2_SR 3
#define | BLM_DOUT_R2_SR 6
#define | BLM_DOUT_L3_SR 7
#define | BLM_DOUT_R3_SR 8
#define | BLM_DIN_L_SR 1
#define | BLM_DIN_R_SR 2
#define | BLM_NUM_COLOURS 2
#define | BLM_NUM_ROWS 8
#define | BLM_DEBOUNCE_MODE 1
## Functions
s32 | BLM_Init (u32 mode)
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)
s32 | BLM_ConfigSet (blm_config_t config)
blm_config_t | BLM_ConfigGet (void)
## Variables
u8 | blm_led_row [BLM_NUM_COLOURS][BLM_NUM_ROWS]

## Define Documentation

#define BLM_CATHODES_INV_MASK 0x00

#define BLM_DEBOUNCE_MODE 1

#define BLM_DIN_L_SR 1

#define BLM_DIN_R_SR 2

#define BLM_DOUT_CATHODES_SR1 1

#define BLM_DOUT_CATHODES_SR2 4

#define BLM_DOUT_L1_SR 2

#define BLM_DOUT_L2_SR 3

#define BLM_DOUT_L3_SR 7

#define BLM_DOUT_R1_SR 5

#define BLM_DOUT_R2_SR 6

#define BLM_DOUT_R3_SR 8

#define BLM_NUM_COLOURS 2

#define BLM_NUM_ROWS 8