MBNG_MATRIX

Defines

#define NUM_MATRIX_DIM_LEVELS   (MIOS32_SRIO_NUM_DOUT_PAGES/2)

Functions

s32 MBNG_MATRIX_Init (u32 mode)
s32 MBNG_MATRIX_LedMatrixChanged (u8 matrix)
s32 MBNG_MATRIX_ButtonMatrixChanged (u8 matrix)
s32 MBNG_MATRIX_SRIO_ParametersChanged (void)
s32 MBNG_MATRIX_PatternSet (u8 num, u8 pos, u16 pattern)
u16 MBNG_MATRIX_PatternGet (u8 num, u8 pos)
s32 MBNG_MATRIX_LcMeterPatternSet (u8 pos, u16 pattern)
u16 MBNG_MATRIX_LcMeterPatternGet (u8 pos)
s32 MBNG_MATRIX_DOUT_PinSet (u8 matrix, u8 color, u16 pin, u8 level)
s32 MBNG_MATRIX_DOUT_PatternSet (u8 matrix, u8 color, u16 row, u16 value, u16 range, u8 pattern, u8 level)
s32 MBNG_MATRIX_DOUT_PatternSet_LC (u8 matrix, u8 color, u16 row, u16 value, u8 level)
s32 MBNG_MATRIX_DOUT_PatternSet_LCMeter (u8 matrix, u8 color, u16 row, u8 meter_value, u8 level)
s32 MBNG_MATRIX_DOUT_PatternSet_Digit (u8 matrix, u8 color, u16 row, u8 value, u8 level, u8 dot)
s32 MBNG_MATRIX_GetRow (void)
s32 MBNG_MATRIX_ButtonHandler (void)
s32 MBNG_MATRIX_MAX72xx_Update (void)
s32 MBNG_MATRIX_DIN_NotifyReceivedValue (mbng_event_item_t *item)
s32 MBNG_MATRIX_DOUT_NotifyReceivedValue (mbng_event_item_t *item)

Variables

const u16 selection_4rows [MBNG_PATCH_NUM_MATRIX_ROWS_MAX]
const u16 selection_8rows [MBNG_PATCH_NUM_MATRIX_ROWS_MAX]
const u16 selection_16rows [MBNG_PATCH_NUM_MATRIX_ROWS_MAX]

Detailed Description

DIN/DOUT Scan Matrix functions for MIDIbox NG


Define Documentation

#define NUM_MATRIX_DIM_LEVELS   (MIOS32_SRIO_NUM_DOUT_PAGES/2)

Include files local definitions


Function Documentation

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)

Here is the call graph for this function:

s32 MBNG_MATRIX_ButtonMatrixChanged ( u8  matrix  ) 

Call this function whenever the BUTTON_MATRIX configuration has been changed

Here is the call graph for this function:

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

Here is the call graph for this function:

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

s32 MBNG_MATRIX_DOUT_PatternSet_Digit ( u8  matrix,
u8  color,
u16  row,
u8  value,
u8  level,
u8  dot 
)

This function sets a pattern DOUT matrix row for a ASCII Digit

s32 MBNG_MATRIX_DOUT_PatternSet_LC ( u8  matrix,
u8  color,
u16  row,
u16  value,
u8  level 
)

This function sets a pattern DOUT matrix row for the LC protocol

s32 MBNG_MATRIX_DOUT_PatternSet_LCMeter ( u8  matrix,
u8  color,
u16  row,
u8  meter_value,
u8  level 
)

This function sets a pattern DOUT matrix row for a Meter of the LC protocol

s32 MBNG_MATRIX_DOUT_PinSet ( u8  matrix,
u8  color,
u16  pin,
u8  level 
)

This function sets a pin on the given DOUT matrix The level ranges from 0..NUM_MATRIX_DIM_LEVELS-1

Here is the call graph for this function:

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

Here is the call graph for this function:

s32 MBNG_MATRIX_Init ( u32  mode  ) 

This function initializes the matrix handler

Here is the call graph for this function:

u16 MBNG_MATRIX_LcMeterPatternGet ( u8  pos  ) 
s32 MBNG_MATRIX_LcMeterPatternSet ( u8  pos,
u16  pattern 
)
s32 MBNG_MATRIX_LedMatrixChanged ( u8  matrix  ) 

Call this function whenever the LED_MATRIX configuration has been changed

Here is the call graph for this function:

s32 MBNG_MATRIX_MAX72xx_Update ( void   ) 

This function is periodically called from app.c to update the MAX72xx chain

Here is the call graph for this function:

u16 MBNG_MATRIX_PatternGet ( u8  num,
u8  pos 
)
s32 MBNG_MATRIX_PatternSet ( u8  num,
u8  pos,
u16  pattern 
)

Set/Get pattern

s32 MBNG_MATRIX_SRIO_ParametersChanged ( void   ) 

Call this function if SRIO configuration has been changed (to update page selections)

Here is the call graph for this function:


Variable Documentation

const u16 selection_16rows[MBNG_PATCH_NUM_MATRIX_ROWS_MAX]
Initial value:
 {
  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]
Initial value:
 {
  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]
Initial value:
 {
  0xfefe, 0xfdfd, 0xfbfb, 0xf7f7, 
  0xefef, 0xdfdf, 0xbfbf, 0x7f7f, 
  0xfefe, 0xfdfd, 0xfbfb, 0xf7f7,
  0xefef, 0xdfdf, 0xbfbf, 0x7f7f,
}

Generated on 22 Jan 2016 for MIDIboxNG by  doxygen 1.6.1