com.pax.dal.memorycard
Interface ICardAT88SC102
-
- All Superinterfaces:
- IMemoryCard
public interface ICardAT88SC102 extends IMemoryCard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidblockErWrite(int erOrWr)仅使用安全级别1,擦除或写整个存储区(包括FZ,MTZ,MFZ)。Only use in security level 1, to erase or write the whole storage zone(including FZ,MTZ,MFZ).voideraseAZSL2(int az, byte[] pEZ)擦除应用程序区。Erase the application zone.voidfusePGM(int fuseType)烧写三种熔断器。Burn and write the three type of fuse.voidpowerOff()AT88SC102模块下电Power the AT88SC102 module off.voidpowerOn()AT88SC102模块上电Power the AT88SC102 module on.byte[]readString(int addr, int num)读取指定地址n字节的数据。Read the specified address n bytes of data.voidreset()AT88SC102模块地址计数器复位Reset the AT88SC102 module address counter.voidupdateSC(byte[] psw)更新密码Update password.voidverifySC(byte[] psw)验证密码Verify password.voidwriteAZSL1(int az, int offset, byte[] pBuf)在安全级别1中擦除和写入应用程序区。Erase and write in application zone in security level 1.voidwriteAZSL2(int az, int offset, byte[] pBuf)在安全级别2中写入应用程序区。Write in application zone in security level 2.voidwriteCPZ(byte[] pBuf)判断卡当前的安全级别并更新用户的代码区。Judge the card current security level and update the code zone of users.voidwriteEC2(byte[] pBuf)判断卡当前安全级别并更新应用程序2区的擦除计数器。Judge the card current security level and update the erasing counter of application 2 zone.voidwriteEZ1(byte[] pBuf)判断卡当前安全级别并更新应用程序1区的擦除密码。Judge the card current security level and update the erasing password of application 1 zone.voidwriteEZ2(byte[] pBuf)判断卡当前安全级别并更新应用程序2区的擦除密码。Judge the card current security level and update the erasing password of application 2 zone.voidwriteIZ(byte[] pBuf)判断卡当前安全级别并更新发行者代码区。Judge the card current security level and update the code zone of issuers.voidwriteMTZ(byte[] pBuf)写测试区Write the test zone.-
Methods inherited from interface com.pax.dal.memorycard.IMemoryCard
setSlot
-
-
-
-
Method Detail
-
powerOn
void powerOn() throws AT88SC102DevException
AT88SC102模块上电Power the AT88SC102 module on.- Throws:
AT88SC102DevException
-
reset
void reset() throws AT88SC102DevException
AT88SC102模块地址计数器复位Reset the AT88SC102 module address counter.- Throws:
AT88SC102DevException
-
powerOff
void powerOff() throws AT88SC102DevException
AT88SC102模块下电Power the AT88SC102 module off.- Throws:
AT88SC102DevException
-
readString
byte[] readString(int addr, int num) throws AT88SC102DevException
读取指定地址n字节的数据。Read the specified address n bytes of data.- Parameters:
addr-读取起始位置address where read starting atnum-读取多少字节数据number of bytes data to read- Returns:
- Throws:
AT88SC102DevException
-
verifySC
void verifySC(byte[] psw) throws AT88SC102DevException
验证密码Verify password.- Parameters:
psw-密码,2字节password, 2 bytes- Throws:
AT88SC102DevException
-
updateSC
void updateSC(byte[] psw) throws AT88SC102DevException
更新密码Update password.- Parameters:
psw-新密码,2字节new password, 2 bytes- Throws:
AT88SC102DevException
-
writeIZ
void writeIZ(byte[] pBuf) throws AT88SC102DevException
判断卡当前安全级别并更新发行者代码区。Judge the card current security level and update the code zone of issuers.- Parameters:
pBuf-发行代码区,8字节issuers code zone, 8 bytes- Throws:
AT88SC102DevException
-
writeCPZ
void writeCPZ(byte[] pBuf) throws AT88SC102DevException
判断卡当前的安全级别并更新用户的代码区。Judge the card current security level and update the code zone of users.- Parameters:
pBuf-用户的代码区,8字节users code zone, 8 bytes- Throws:
AT88SC102DevException
-
writeEZ1
void writeEZ1(byte[] pBuf) throws AT88SC102DevException
判断卡当前安全级别并更新应用程序1区的擦除密码。Judge the card current security level and update the erasing password of application 1 zone.- Parameters:
pBuf-用户代码区,6字节users code zone, 6 bytes- Throws:
AT88SC102DevException
-
writeEZ2
void writeEZ2(byte[] pBuf) throws AT88SC102DevException
判断卡当前安全级别并更新应用程序2区的擦除密码。Judge the card current security level and update the erasing password of application 2 zone.- Parameters:
pBuf-用户代码区,4字节users code zone, 4 bytes- Throws:
AT88SC102DevException
-
writeEC2
void writeEC2(byte[] pBuf) throws AT88SC102DevException
判断卡当前安全级别并更新应用程序2区的擦除计数器。Judge the card current security level and update the erasing counter of application 2 zone.- Parameters:
pBuf-用户代码区,16字节users code zone, 16 bytes- Throws:
AT88SC102DevException
-
writeMTZ
void writeMTZ(byte[] pBuf) throws AT88SC102DevException
写测试区Write the test zone.- Parameters:
pBuf-数据字节数,2字节number bytes of data, 2 bytes- Throws:
AT88SC102DevException
-
blockErWrite
void blockErWrite(int erOrWr) throws AT88SC102DevException
仅使用安全级别1,擦除或写整个存储区(包括FZ,MTZ,MFZ)。Only use in security level 1, to erase or write the whole storage zone(including FZ,MTZ,MFZ).- Parameters:
erOrWr-- 0 - 写
- 1 - 擦除
- 0 - write
- 1 - erase
- Throws:
AT88SC102DevException
-
fusePGM
void fusePGM(int fuseType) throws AT88SC102DevException
烧写三种熔断器。Burn and write the three type of fuse.- Parameters:
fuseType-- 0 - 厂家熔断器
- 1 - EC2使能熔断器
- 2 - 发行熔断器
- 0 - Manufacturers fuse
- 1 - EC2 enable fuse
- 2 - Issuers fuse
- Throws:
AT88SC102DevException
-
writeAZSL1
void writeAZSL1(int az, int offset, byte[] pBuf) throws AT88SC102DevException
在安全级别1中擦除和写入应用程序区。Erase and write in application zone in security level 1.- Parameters:
az-0 - 应用第一区 1 - 应用第二区0 - application 1st zone 1 - application 2nd zoneoffset-按字节偏移地址offset address by bytepBuf-数据字节数number bytes of data- Throws:
AT88SC102DevException
-
eraseAZSL2
void eraseAZSL2(int az, byte[] pEZ) throws AT88SC102DevException
擦除应用程序区。Erase the application zone.- Parameters:
az-0 - 应用第一区 1 - 应用第二区0 - application 1st zone 1 - application 2nd zonepEZ-密码,6字节在应用程序第一区,和4字节的应用程序第二区。password, 6 bytes in application 1st zone, and 4 bytes in application 2nd zone.- Throws:
AT88SC102DevException
-
writeAZSL2
void writeAZSL2(int az, int offset, byte[] pBuf) throws AT88SC102DevException
在安全级别2中写入应用程序区。Write in application zone in security level 2.- Parameters:
az-0 - 应用第一区 1 - 应用第二区0 - application 1st zone 1 - application 2nd zoneoffset-按字节偏移地址offset address by bytepBuf-数据字节数number bytes of data- Throws:
AT88SC102DevException
-
-