Smart Card Reader Driver Program Reference Manual
rev 1.1 Sept, 2003
Advanced Card Systems Ltd.
Page 14 of 34
Parameters
Definition / Values
Info.lBaudRate
The current running baud rate
Returns:
The return value is zero if the function is successful. Otherwise, it returns a negative value
containing the error code. For the detailed meaning of the error code, please refer to
appendix A.
Examples:
// Get the revision code of the currently selected reader
INT16 RtnCode;
AC_INFO Info;
RtnCode = AC_GetInfo(hReader, &Info);
printf("Reader Operating System ID : %s",Info.szRev);
2.3.2.7 AC_SetOptions
This function set various options for the reader.
Format:
INT16 AC_DECL AC_SetOptions (INT16 hReader, WORD16 Type, WORD16 Value);
Input Parameters:
The table below lists the parameters for this function
Parameters
Definition / Values
hReader
A valid reader handle returned by AC_Open()
(except for the ACO_RESET_READER option)
Type
Type of option that is going to set
Value
Value parameter for the selected option type
Returns:
The return value is zero if the function is successful. Otherwise, it returns a negative value
meaning that the option setting is not available.
Options :
Options
Type
Value
Set the communication baud rate
between the reader and the host
ACO_SET_BAUD_RATE ACO_B9600
ACO_B14400
ACO_B19200
ACO_B28800
ACO_B38400
ACO_B57600
ACO_B115200
Set the communication inter
ACO_SET_CHAR_DELAY 0-255