------------------------------------------------------------------------------
4. Alter MDI key matrix. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
aux_mdi_altmatrix
[Syntax]
#include <bios.h>
int aux_mdi_altmatrix( int module_id, int category, int update ) ;
[Arguments]
module_id Class of matrix.
category Kind of key to be altered.
update New specification.
[Return]
0 Successful (No alteration was applied.).
Positive Successful ("Positive" is number of applied alteration.).
-1 Incorrect class of matrix "module_id".
-2 Incorrect kind of key to be altered "category".
-3 Incorrect new specification "update".
-4 Incorrect "MDI_SHIFT_xx" specification.
-5 Incorrect "MDI_TO_xx" specification.
-6 Incorrect "MDI_REPEAT_xx" specification.
-7 Attempted to alter the RESET key.
[Description]
Alters character code or character attribute which is assigned to the
specified MDI key.
This function is used to alter character code assigned to the key or to
enable automatic key repeating of the cursor key or the page key, etc.
Specify one of following matrix class. The specified matrix will be
altered.
module_id Matrix class
-----------------------+--------------------------------
MAIN_MDI_MATRIX Matrix of CNC software
MMC_MDI_MATRIX Matrix of application program
(1) Altering character code.
Replaces the specified code in the current matrix with the new code.
When there are multiple specified codes in the matrix, all codes are
replaced. This alteration can't be executed with alteration of
character attribute simultaneously.
Specify "MDI_ALT_CODE" (altering character code) in "category".