public class ReaderAT88SC102 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 |
|---|
ReaderAT88SC102(HardwareInterface Dev)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
AT88SC102Cmd_OpBitGetAddr(int[] pIntCurBitAddr)
This function gets the current bit address of the card.
|
int |
AT88SC102Cmd_OpBitsGotoAddr(int intTargetAddr)
This function makes the card JUMP to the target bit address.
|
int |
AT88SC102Cmd_OpBitsIncAddr(int intBitsIncAddr)
This function increases the internal address counter of the card.
|
int |
AT88SC102Cmd_OpBitsRead(int intReadLen,
byte[] pDataBuffer)
This function reads bit data from the card from current address.
|
int |
AT88SC102Cmd_OpBytesComp(int intCompLen,
byte[] pDataBuffer)
This function sends data to the card for comparison.
|
int |
AT88SC102Cmd_OpBytesIncAddr(int intBytesIncAddr)
This function increases the internal address counter of the card.
|
int |
AT88SC102Cmd_OpBytesRead(int intReadLen,
byte[] pDataBuffer)
This function reads bytes data from the card from current address.
|
int |
AT88SC102Cmd_OpBytesWrite(int intWriteLen,
byte[] pDataBuffer)
This function writes data to current address of the card.
|
int |
AT88SC102Cmd_OpReset()
This function sends micro operation, RESET, to the card.
|
int |
AT88SC102Cmd_OpSingleBitErase()
This function sends a erase operation with single bit to logic 1.
|
int |
AT88SC102Cmd_OpSingleBitWrite()
This function sends a write operation with single bit to logic 0.
|
int |
AT88SC102Cmd_OpStandby()
This function sends micro operation, STANDBY, to the card.
|
int |
AT88SC102Cmd_SetFusPinHigh()
This function drives the FUS pin of the card to high state.
|
int |
AT88SC102Cmd_SetFusPinLow()
This function drives the FUS pin of the card to low state.
|
int |
AT88SC102Cmd_SetRstPinHigh()
AT88SC102Cmd_SetRstPinHigh drives the RST pin of the card to high state.
|
int |
AT88SC102Cmd_SetRstPinLow()
AT88SC102Cmd_SetRstPinLow drives the RST pin of the card to low state
This function makes the reader drives RST pin to low.
|
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 ReaderAT88SC102(HardwareInterface Dev) throws ReaderException
Dev - HardwareInterface object which has been initialedReaderExceptionReaderExceptionpublic int open(int slot)
Readerpublic int open()
Readerpublic int AT88SC102Cmd_OpReset()
public int AT88SC102Cmd_OpStandby()
public int AT88SC102Cmd_SetFusPinLow()
public int AT88SC102Cmd_SetFusPinHigh()
public int AT88SC102Cmd_SetRstPinLow()
public int AT88SC102Cmd_SetRstPinHigh()
public int AT88SC102Cmd_OpBitsIncAddr(int intBitsIncAddr)
intBitsIncAddr - The numbers of bit address to be incremented. If the bit address reaches the boundary, 1568, then the card internally reset the bit address to 0.public int AT88SC102Cmd_OpBitsGotoAddr(int intTargetAddr)
intTargetAddr - The target bit address to be reached.public int AT88SC102Cmd_OpBitGetAddr(int[] pIntCurBitAddr)
pIntCurBitAddr - Pointer to the current bit address of the card.public int AT88SC102Cmd_OpBitsRead(int intReadLen,
byte[] pDataBuffer)
intReadLen - Number of bits to be read from the card.pDataBuffer - Pointer to the buffer that receives the data read from the card.
One byte only contains one bit data, so the buffer size should be intReadLen byte sizepublic int AT88SC102Cmd_OpSingleBitWrite()
public int AT88SC102Cmd_OpSingleBitErase()
public int AT88SC102Cmd_OpBytesIncAddr(int intBytesIncAddr)
intBytesIncAddr - The numbers of bytes address to be incremented. If the bit address reaches the boundary, 1568, then the card internally reset the bit address to 0.public int AT88SC102Cmd_OpBytesRead(int intReadLen,
byte[] pDataBuffer)
intReadLen - Number of bytes to be read from the card.pDataBuffer - Pointer to the buffer that receives the data read from the card.public int AT88SC102Cmd_OpBytesWrite(int intWriteLen,
byte[] pDataBuffer)
intWriteLen - Number of bytes to be written to the card.pDataBuffer - Pointer to the buffer that contains the data to be written to the card.public int AT88SC102Cmd_OpBytesComp(int intCompLen,
byte[] pDataBuffer)
intCompLen - Number of bytes to be compared in the card.pDataBuffer - Pointer to the buffer that contains the data to be compared in the card.