com.pax.dal.memorycard
Interface ICardSle4428
-
- All Superinterfaces:
- IMemoryCard
public interface ICardSle4428 extends IMemoryCard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()下电 Sle4428 模块.voideditPin(byte[] pinBuf)修改Sle4428密码Modify password of Sle4428.voideditPinCounter(byte counter)修改Sle4428密码重试次数Modify password of Sle4428 retry counts.byte[]iccInit()复位 Sle4428 模块,并阅读卡片信息及确认卡片类型为Sle4428.voidopen()上电 Sle4428 模块.bytereadPinCounter()读取Sle4428密码的重复次数Read password of Sle4428 retry counts.byte[]readWithoutPB(short addr, short dataLen)从Sle4428卡片读取数据没有保护位Read the data from Sle4428 without protected bit.byte[]readWithPB(short addr, short dataLen)从Sle4428卡片读取数据有保护位Read the data from Sle4428 with protected bit.byte[]reset()复位 Sle4428 模块.voidsetPB(short addr, short dataLen, byte[] dataIn)设置Sle4428保护位Set the Sle4428 protected bit.voidverifyPin(byte[] pinBuf)验证Sle4428密码Verify password of Sle4428.voidwriteWithoutPB(short addr, short dataLen, byte[] dataIn)写数据,无保护位Write data without protected bit.voidwriteWithPB(short addr, short dataLen, byte[] dataIn)写入数据无保护位Write data with protected bit.-
Methods inherited from interface com.pax.dal.memorycard.IMemoryCard
setSlot
-
-
-
-
Method Detail
-
open
void open() throws Sle4428DevException
上电 Sle4428 模块.Power on Sle4428 module.- Throws:
Sle4428DevException
-
close
void close() throws Sle4428DevException
下电 Sle4428 模块.Power off Sle4428 module.- Throws:
Sle4428DevException
-
reset
byte[] reset() throws Sle4428DevException
复位 Sle4428 模块.Reset Sle4428 module.- Returns:
- 复位信息, 4 bytesdataOut, 4 bytes
- Throws:
Sle4428DevException
-
iccInit
byte[] iccInit() throws Sle4428DevException
复位 Sle4428 模块,并阅读卡片信息及确认卡片类型为Sle4428.Reset Sle4428 module, and read identity information about the card, and ensure the card type is Sle4428.- Returns:
- 卡片身份信息,4字节identity information about the card, 4 bytes.
- Throws:
Sle4428DevException
-
readWithoutPB
byte[] readWithoutPB(short addr, short dataLen) throws Sle4428DevException
从Sle4428卡片读取数据没有保护位Read the data from Sle4428 without protected bit.- Parameters:
addr-起始字节the begin addressdataLen-数据长度the data length- Returns:
- dataOut
- Throws:
Sle4428DevException
-
readWithPB
byte[] readWithPB(short addr, short dataLen) throws Sle4428DevException
从Sle4428卡片读取数据有保护位Read the data from Sle4428 with protected bit.- Parameters:
addr-起始地址the begin addressdataLen-数据长度the data length- Returns:
- dataOut 返回数据格式: byte+byte_property+byte+byte_property+...
- byte_property is 0 - 字节受保护
- byte_property is 1 - 字节不受保护
dataOut format: byte+byte_property+byte+byte_property+...- byte_property is 0 - the byte is protected
- byte_property is 1 - the byte isn't protected
- Throws:
Sle4428DevException
-
readPinCounter
byte readPinCounter() throws Sle4428DevException
读取Sle4428密码的重复次数Read password of Sle4428 retry counts.- Returns:
- 重复次数(0-8)retry counts(0~8).
- Throws:
Sle4428DevException
-
editPinCounter
void editPinCounter(byte counter) throws Sle4428DevException
修改Sle4428密码重试次数Modify password of Sle4428 retry counts.- Parameters:
counter-重试次数(0-8)retry counts(0~8)- Throws:
Sle4428DevException
-
verifyPin
void verifyPin(byte[] pinBuf) throws Sle4428DevException
验证Sle4428密码Verify password of Sle4428.- Parameters:
pinBuf-密码,2字节passwords buffer, 2 bytes.- Throws:
Sle4428DevException
-
editPin
void editPin(byte[] pinBuf) throws Sle4428DevException
修改Sle4428密码Modify password of Sle4428.- Parameters:
pinBuf-密码,2字节passwords buffer, 2 bytes.- Throws:
Sle4428DevException
-
writeWithoutPB
void writeWithoutPB(short addr, short dataLen, byte[] dataIn) throws Sle4428DevException
写数据,无保护位Write data without protected bit.- Parameters:
addr-起始地址begin addressdataLen-数据长度data lengthdataIn-输入数据input data- Throws:
Sle4428DevException
-
writeWithPB
void writeWithPB(short addr, short dataLen, byte[] dataIn) throws Sle4428DevException
写入数据无保护位Write data with protected bit.- Parameters:
addr-起始地址begin addressdataLen-数据长度data lengthdataIn-输入数据input data- Throws:
Sle4428DevException
-
setPB
void setPB(short addr, short dataLen, byte[] dataIn) throws Sle4428DevException
设置Sle4428保护位Set the Sle4428 protected bit.- Parameters:
addr-起始地址begin addressdataLen-数据长度data lengthdataIn-输入数据input data- Throws:
Sle4428DevException
-
-