public class ReaderAT88SC153 extends Reader
CardModeASYNC, CardModeAT45D041, CardModeAT88SC102, CardModeAT88SC153, CardModeAT88SC1608, CardModeI2C, CardModeINPHONE, CardModeSLE4428, CardModeSLE4442, CardModeSLE6636, CCID_POWEROFF, CCID_POWERON, CCID_PROTOCOL_NA, CCID_PROTOCOL_T0, CCID_PROTOCOL_T1, SLOT_STATUS_CARD_ABSENT, SLOT_STATUS_CARD_ACTIVE, SLOT_STATUS_CARD_INACTIVE| Constructor and Description |
|---|
ReaderAT88SC153(HardwareInterface Dev)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
AT88SC153Cmd_Addr(byte bOPcode,
byte bAddress,
byte bWriteLen,
byte[] pWriteData,
byte bReadLen,
byte[] pReadData,
int[] pIntReturnLen)
Base function for AT88SC153 operating EEPROM.
|
int |
AT88SC153Cmd_ChangeChipSelectMask(byte bCSMask)
Change chip select mask for programed chip.
|
int |
AT88SC153Cmd_InitializeAuthentication(byte[] pbHostRand)
Sends INITIALIZE AUTHENTICATION command to the card.
|
int |
AT88SC153Cmd_ReadEeprom(byte bZone,
byte bAddress,
byte bReadLen,
byte[] pReadBuffer,
int[] pReturnLen) |
int |
AT88SC153Cmd_ReadFuse(byte[] bFuseStatus)
Receive cureent fuse statud.
|
int |
AT88SC153Cmd_VerifyAuthentication(byte[] pbHostChallenge)
Sends VERIFY AUTHENTICATION command to the card
|
int |
AT88SC153Cmd_VerifyPassword(byte bPasswordIndex,
boolean bIsReadAccess,
byte bPW1,
byte bPW2,
byte bPW3)
Verifies the read/write password of the selected zone.
|
int |
AT88SC153Cmd_WriteEeprom(byte bZone,
byte bAddress,
byte bWriteLen,
byte[] pWriteBuffer) |
int |
AT88SC153Cmd_WriteFuse(byte bFuseMask)
Do fuse operation.
|
int |
open()
To open the reader.
|
int |
open(int slot)
To open reader with given slot
|
close, escape, getAtr, getAtrString, getCardStatus, getCmdFailCode, getCurrentDev, getProtocol, getSN, setPower, setSlot, switchMode, transmitpublic ReaderAT88SC153(HardwareInterface Dev) throws ReaderException
Dev - HardwareInterface object which has been initialedReaderExceptionReaderExceptionpublic int open(int slot)
Readerpublic int open()
Readerpublic int AT88SC153Cmd_Addr(byte bOPcode,
byte bAddress,
byte bWriteLen,
byte[] pWriteData,
byte bReadLen,
byte[] pReadData,
int[] pIntReturnLen)
bOPcode - Command of AT88SC153.bAddress - The memory address in the buffer or memory.bWriteLen - Number of bytes to be written to the card.pWriteData - Pointer to the buffer containing the data to be written to the card.bReadLen - Number of bytes to be read from the card.pReadData - Pointer to a buffer that receives the data read from the card.pIntReturnLen - Number of bytes which is actually received data from the card.public int AT88SC153Cmd_ChangeChipSelectMask(byte bCSMask)
bCSMask - Default mask is 0xB0.public int AT88SC153Cmd_WriteEeprom(byte bZone,
byte bAddress,
byte bWriteLen,
byte[] pWriteBuffer)
bZone - Zone index. index = 0~3bAddress - Address in zone index to write data.bWriteLen - Number of bytes to be written to the card.pWriteBuffer - Pointer to the buffer containing the data to be written to the card.public int AT88SC153Cmd_ReadEeprom(byte bZone,
byte bAddress,
byte bReadLen,
byte[] pReadBuffer,
int[] pReturnLen)
bZone - Zone index. index = 0~3bAddress - Address in zone index to read data.bReadLen - Number of bytes to be read from the card.pReadBuffer - Pointer to a buffer that receives the data read from the card.pReturnLen - Number of bytes which is actually received data from the card.public int AT88SC153Cmd_VerifyPassword(byte bPasswordIndex,
boolean bIsReadAccess,
byte bPW1,
byte bPW2,
byte bPW3)
bPasswordIndex - password index. 0 or 1.bIsReadAccess - TRUE for read password. FALSE for write password.bPW1 - Password 1.bPW2 - Password 2.bPW3 - Password 3.public int AT88SC153Cmd_InitializeAuthentication(byte[] pbHostRand)
pbHostRand - Pointer to the buffer containing the 8 bytes data of host random numbers.public int AT88SC153Cmd_VerifyAuthentication(byte[] pbHostChallenge)
pbHostChallenge - Pointer to the buffer containing the 8 bytes data of host challenge.public int AT88SC153Cmd_WriteFuse(byte bFuseMask)
bFuseMask - Fuse mask.public int AT88SC153Cmd_ReadFuse(byte[] bFuseStatus)
bFuseStatus - Fuse mask.