public class Reader4428 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 |
|---|
Reader4428(HardwareInterface Dev)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
open()
To open the reader.
|
int |
SLE4428Cmd_Read8Bits(int address,
int intReadLen,
byte[] pReadData,
int[] pIntReturnLen)
SLE4428Cmd_Read8Bits read one byte of data without protect bit from the card.
|
int |
SLE4428Cmd_Read9Bits(int address,
int intReadLen,
byte[] pReadData,
byte[] pReadPB,
int[] pIntReturnLen)
SLE4428Cmd_Read9Bits reads data with protect bits from the card.
|
int |
SLE4428Cmd_Verify1stPSC(byte data)
SLE4428Cmd_Verify1stPSC is used to verify the 1st PSC byte.
|
int |
SLE4428Cmd_Verify2ndPSC(byte data)
SLE4428Cmd_Verify2ndPSC is used to verify the 2nd PSC byte.
|
int |
SLE4428Cmd_VerifyPSCAndEraseErrorCounter(byte b1stPsc,
byte b2ndPsc,
int[] pIntErrorReason)
SLE4428Cmd_VerifyPSCAndEraseErrorCounter is used to verify the 1st 2nd PSC bytes and erase error counter if the verification is OK.
|
int |
SLE4428Cmd_WriteEraseWithoutPB(int address,
byte data)
SLE4428Cmd_WriteEraseWithoutPB writes one byte data without protect bit to the card.
|
int |
SLE4428Cmd_WriteEraseWithPB(int address,
byte data)
SLE4428Cmd_WriteEraseWithPB writes one byte data with protect bit to the card.
|
int |
SLE4428Cmd_WriteErrorCounter(byte data)
SLE4428Cmd_WriteErrorCounter writes error counter to the card.
|
int |
SLE4428Cmd_WritePBWithDataComparison(int address,
byte data)
SLE4428Cmd_WritePBWithDataComparison writes protect bit with data comparison.
|
close, escape, getAtr, getAtrString, getCardStatus, getCmdFailCode, getCurrentDev, getProtocol, getSN, open, setPower, setSlot, switchMode, transmitpublic Reader4428(HardwareInterface Dev) throws ReaderException
Dev - HardwareInterface object which has been initialedReaderExceptionReaderExceptionpublic int open()
Readerpublic int SLE4428Cmd_WriteEraseWithPB(int address,
byte data)
address - The memory address to write to the card.data - The written data.public int SLE4428Cmd_WriteEraseWithoutPB(int address,
byte data)
address - The memory address to write to the card.data - The written data.public int SLE4428Cmd_WritePBWithDataComparison(int address,
byte data)
address - The memory address to write to the card.data - The written data.public int SLE4428Cmd_Read9Bits(int address,
int intReadLen,
byte[] pReadData,
byte[] pReadPB,
int[] pIntReturnLen)
address - The memory address to read from 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.pReadPB - Point to the buffer that receives the protect bits read from the card. Each protect bit occupies one byte space This buffer size is the same as pReadData. The values in the buffer are 0x00 or 0x01.pIntReturnLen - Pointer to the length, in bytes, of the pReadData parameter and receives the actual number of bytes received from the cardpublic int SLE4428Cmd_Read8Bits(int address,
int intReadLen,
byte[] pReadData,
int[] pIntReturnLen)
address - The memory address to read from 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 - Pointer to a number of bytes which is actually received data from the card.public int SLE4428Cmd_VerifyPSCAndEraseErrorCounter(byte b1stPsc,
byte b2ndPsc,
int[] pIntErrorReason)
b1stPsc - The 1st PSC byte to be verified.b2ndPsc - The 2nd PSC byte to be verified.pIntErrorReason - Specify the error code if the function fails.public int SLE4428Cmd_WriteErrorCounter(byte data)
data - The error counter. It is in bitmap format. Each bit presents one available attempt. Therefore, there are max 8 attempts.public int SLE4428Cmd_Verify1stPSC(byte data)
data - The 1st PSC byte to be verified. attempt. Therefore, there are max 8 attempts.public int SLE4428Cmd_Verify2ndPSC(byte data)
data - The 2nd PSC byte to be verified. attempt. Therefore, there are max 8 attempts.