beautypg.com

Acrosser AR-R5800A User Manual

Page 37

background image

AR-B5800A User Manual

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. i32 getKeyLcm( 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. i32 getPositionLcm( i32 *row, i32 *column )

Description: Get the position of the cursor and write the coordinate to the memory pointed at by
arguments ‘row’ and ‘column’.

Return value: 0 if the request for the coordinate has been served.

7. i32 setPositionLcm( i32 row, i32 column )

Description: Set the position of the cursor according to the arguments ‘row’ and ‘column’.

Return value: 0 after the position has been set.
-1 if the argument ‘row’ or ‘column’ meets any of the following
conditions:
(1) row is not 0.
(2) row is not 1.
(3) column is less than 0.
(4) column is greater than 15.

8. i32 showLcm( i32 length, u8 *info )

Description: Start from the current position of the cursor; print the text pointed at by ‘info’ to the LCM
screen. The number of characters to be printed is at most ‘length’. If the remaining columns available for
printing the text is less than ‘length’, the number of the characters to be printed is:
16 – ( column number of the current position of the cursor ).

Return value: 0 after the text is printed.

37