DIN/DOUT Scan Matrix functions for MIDIbox NG
#define NUM_MATRIX_DIM_LEVELS (MIOS32_SRIO_NUM_DOUT_PAGES/2) |
Include files local definitions
s32 MBNG_MATRIX_ButtonHandler | ( | void | ) |
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 to MBNG_MATRIX_NotifyToggle(u8 matrix, u32 pin, u32 pin_value)
Call this function whenever the BUTTON_MATRIX configuration has been changed
s32 MBNG_MATRIX_DIN_NotifyReceivedValue | ( | mbng_event_item_t * | item | ) |
This function is called by MBNG_EVENT_ItemReceive when a matching value has been received
s32 MBNG_MATRIX_DOUT_NotifyReceivedValue | ( | mbng_event_item_t * | item | ) |
This function is called by MBNG_EVENT_ItemReceive when a matching value has been received
s32 MBNG_MATRIX_DOUT_PatternSet | ( | u8 | matrix, | |
u8 | color, | |||
u16 | row, | |||
u16 | value, | |||
u16 | range, | |||
u8 | pattern, | |||
u8 | level | |||
) |
This function sets a pattern DOUT matrix row
This function sets a pattern DOUT matrix row for a ASCII Digit
This function sets a pattern DOUT matrix row for the LC protocol
This function sets a pattern DOUT matrix row for a Meter of the LC protocol
This function sets a pin on the given DOUT matrix The level ranges from 0..NUM_MATRIX_DIM_LEVELS-1
s32 MBNG_MATRIX_GetRow | ( | void | ) |
This function gets the DIN values of the selected row. It should be called from the APP_SRIO_ServiceFinish() hook
This function initializes the matrix handler
Call this function whenever the LED_MATRIX configuration has been changed
s32 MBNG_MATRIX_MAX72xx_Update | ( | void | ) |
This function is periodically called from app.c to update the MAX72xx chain
s32 MBNG_MATRIX_SRIO_ParametersChanged | ( | void | ) |
Call this function if SRIO configuration has been changed (to update page selections)
const u16 selection_16rows[MBNG_PATCH_NUM_MATRIX_ROWS_MAX] |
{ 0xfffe, 0xfffd, 0xfffb, 0xfff7, 0xffef, 0xffdf, 0xffbf, 0xff7f, 0xfeff, 0xfdff, 0xfbff, 0xf7ff, 0xefff, 0xdfff, 0xbfff, 0x7fff, }
const u16 selection_4rows[MBNG_PATCH_NUM_MATRIX_ROWS_MAX] |
{ 0xeeee, 0xdddd, 0xbbbb, 0x7777, 0xeeee, 0xdddd, 0xbbbb, 0x7777, 0xeeee, 0xdddd, 0xbbbb, 0x7777, 0xeeee, 0xdddd, 0xbbbb, 0x7777, }
const u16 selection_8rows[MBNG_PATCH_NUM_MATRIX_ROWS_MAX] |
{ 0xfefe, 0xfdfd, 0xfbfb, 0xf7f7, 0xefef, 0xdfdf, 0xbfbf, 0x7f7f, 0xfefe, 0xfdfd, 0xfbfb, 0xf7f7, 0xefef, 0xdfdf, 0xbfbf, 0x7f7f, }