ACR89U-A1 – Reference Manual
Version 1.04
www.acs.com.hk
Page 46 of 57
pDisplayStatus
[out] Pointer to a
DISPLAYSTATUS
structure that saves the newly set position
parameters. See also
Section 4.1.3.4
for more information about the
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.4.2. AS_SetLcdBacklight
This function turns the backlight of the LCD on or off.
AS_STATUS AS_DECL
AS_SetLcdBacklight
(
IN INT nDevId,
IN PLCDBACKLIGHT pLcdBacklight,
OUT PDISPLAYSTATUS pDisplayStatus);
Parameters:
nDevId
[in] Handle returned by a previous call to
AS_Open
.
pLcdBacklight
[in] Pointer to a
LCDBACKLIGHT
structure that includes the cursor position
parameters to be set. See also
Section 4.1.2.4
for more information about the
LCDBACKLIGHT
structure.
pDisplayStatus
[out] Pointer to a
DISPLAYSTATUS
structure containing the cursor position after
the action. See also
Section 4.1.3.4
for more information about the
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.
LCDCURSOR lcdCursor;
DISPLAYSTATUS displayStatus;
AS_STATUS status;
//position the cursor at the upper left corner of the LCD
//assumed is a connection has already been established
lcdCursor.cbColPosition = 0;
lcdCursor.cbRowPosition = 0;
status = AS_SetLcdCursor(nDid, &lcdCursor, &displayStatus);