Ioctl_Smartcard_Get_Firmware_Version - ACS APG8201-B2 Reference Manual

Smart card reader with pinpad and lcd
Table of Contents

Advertisement

nOutBufferSize
lpBytesReturned
9.3.5.

IOCTL_SMARTCARD_GET_FIRMWARE_VERSION

The IOCTL_SMARTCARD_GET_FIRMWARE_VERSION enables Get Firmware Version command.
9.3.5.1.
Firmware Version
To acquire device firmware version, take the third element of the received buffer and shift it by 8 bits.
Set the result to an OR operation together with the fourth element of the received buffer.
Example: Firmware_Version = (Common.RecvBuff[2] << 8) | Common.RecvBuff[3]);
9.3.5.2.
LCD
To acquire the device's LCD, take the fifth element of the received buffer and shift it by 8 bits. Set the
result to an OR operation together with the sixth element of the received buffer.
Input:
hCard
APG8201-B2 – Reference Manual
Version 1.00
4
Pointer to a DWORD that receives the size, in bytes, of the data stored into
the buffer pointed to by lpOutBuffer
Shift lpOutBuffer[2] by 8 bits
Set OR operation with the shifted
lpOutBuffer[2] and lpOutBuffer[3]
value
Shift lpOutBuffer[4] by 8 bits
Set OR operation with the shifted
lpOutBuffer[4] and lpOutBuffer[5]
Reference value returned from SCardConnect
value
Page 39 of 48
www.acs.com
info@acs.com.hk
.hk
www.acs.com.hk

Advertisement

Table of Contents
loading

Table of Contents