ACR89U-A1 – Reference Manual
Version 1.04
www.acs.com.hk
Page 50 of 57
DISPLAYSTATUS
structure.
Return Values:
AS_STATUS
This functions returns different values depending on whether it succeeds or fails.
AS_STATUS.DllError
contains the status as returned by the DLL.
AS_STATUS.W32Error
contains the Win32 error code associated with the DLL
error, if any. See also
Appendix A
for the possible return codes.
Example:
4.2.5.
Keypad Functions
Keypad Functions allow configuration of the keypad of ACR89 and handling of key input.
4.2.5.1. AS_GetKeyPadConfig (Definition of API is at preliminary stage)
This function reads the current configuration of the keypad of the ACR89.
AS_STATUS AS_DECL
AS_GetKeyPadConfig
(
IN INT nDevId,
OUT PKEYPADSTATUS pKeypadStatus);
Parameters:
nDevId
[in] Handle returned by a previous call to
AS_Open
.
pKeypadStatus
[out] Pointer to a
KEYPADSTATUS
structure that holds the current keypad
configuration. See also
Section 4.1.3.3
for more information about the
KEYPADSTATUS
structure.
Return Values:
AS_STATUS
This functions returns different values depending on whether it succeeds or fails.
AS_STATUS.DllError
contains the status as returned by the DLL.
AS_STATUS.W32Error
contains the Win32 error code associated with the DLL
error, if any. See also
Appendix A
for the possible return codes.
LCDCLEAR lcdClear;
DISPLAYSTATUS lcdStatus;
AS_STATUS status;
//clear the full LCD screen
//assumed is that a connection has already been established
lcdClear.cbClearMode = LCD_CLR_FULL;
lcdClear.cbNumber = 0x00;
//ignored
status = AS_ClearLcdDisplay(nDid, &lcdClear, &lcdStatus);