Acrosser AR-R6000 User Manual
Page 31
Revision: 1.0
The Descriptions of LCM APIs:
1.
int lcmClrscr( void )
Description: Clear the screen of the LCM.
Return value: 0 after the screen is cleared.
2.
int lcmCursor( bool mode )
Description: According to the argument ‘mode’, show the cursor on the LCM screen
or eliminate the cursor on the LCM screen. The position of the cursor is unchanged.
mode = true, show the cursor.
mode = false, eliminate the cursor.
Return value: 0 after the cursor has been shown or eliminated.
3.
int lcmCursorAction( int type)
Description: According to the argument ‘type’, move the cursor to the indicated
position. The displayed text is not altered.
type = HOME, move the cursor to row 0, column 0.
type = MOVERIGHT, move the cursor to the column which is to the right of its original
position if the original column < 15.
type = MOVELEFT, move the cursor to the column which is to the left of its original
position if the original column > 0.
type = MOVEBACK, move the cursor to the column which is to the left of its original
position and delete the character at the new position if the original
column > 0.
Return value: 0 after the cursor is moved.
4.
int lcmDisplay( bool mode )
Description: Show the text on the LCM screen or eliminate the text on the LCM
screen. The content of the text is not altered.
mode = true, show the text.
mode = false, eliminate the text.
Return value: 0 after the text has been shown or eliminated.
5.
int lcmGetKey( void )
Description: Scan the LCM and return the identification of the pressed direction key.
Return value: ‘UP’ if the ‘up’ direction key is pressed.
‘RIGHT’ if the ‘right’ direction key is pressed.
‘LEFT’ if the ‘left’ direction key is pressed.
‘DOWN’ if the ‘down’ direction key is pressed.
‘NONE’ if none of the keys is pressed.
6.
int lcmGetPosition( int *row, int *column )
Description: Get the position of the cursor and write the coordinate to the memory
31