public class ReaderAT45D041 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 |
|---|
ReaderAT45D041(HardwareInterface Dev)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
AT45D041Cmd(byte OPcode,
int PageNo,
int intStartAddr,
int intWriteLen,
byte[] pWriteData,
int intReadLen,
byte[] pReadData,
int[] pIntReturnLen)
AT45D041Cmd reads/write data from/to the card.
|
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 ReaderAT45D041(HardwareInterface Dev) throws ReaderException
Dev - HardwareInterface object which has been initialedReaderExceptionReaderExceptionpublic int open(int slot)
Readerpublic int open()
Readerpublic int AT45D041Cmd(byte OPcode,
int PageNo,
int intStartAddr,
int intWriteLen,
byte[] pWriteData,
int intReadLen,
byte[] pReadData,
int[] pIntReturnLen)
OPcode - The AT45D041 command codePageNo - The page number to access.intStartAddr - The memory address in the buffer or memory.intWriteLen - Number of bytes to be written to the card.pWriteData - Pointer to the buffer containing the data to be written to the card.intReadLen - 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.