
Function Reference
------------------------------------------------------------------------------
1. Get MDI key matrix. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
aux_mdi_getmatrix
[Syntax]
#include <bios.h>
int aux_mdi_getmatrix( void *matrix_ptr, int matrix_len,
int module_id ) ;
[Arguments]
matrix_ptr Buffer in which key matrix is stored.
matrix_len Byte size of key matrix buffer.
module_id Class of matrix.
[Return]
0 Successful.
-1 Incorrect byte size of key matrix buffer "matrix_len". Or
incorrect class of matrix "module_id".
[Description]
Reads the current key matrix (function flag table and key code table)
of MDI key, and stores them in the specified buffer.
This function is used to read the original key matrix for altering the
part of the key matrix.
Specify pointer to the matrix buffer area in "matrix_ptr".
Specify byte size of key matrix area buffer.
Specify one of following matrix class.
module_id Matrix class
-----------------------+--------------------------------
MAIN_MDI_MATRIX Matrix of CNC software
MMC_MDI_MATRIX Matrix of application program
Get the required table size of the key matrix before calling this
function, and allocate buffer area for reading.