ATR class.
|
|
__init__(self,
bytes)
Construct a new atr from bytes. |
source code
|
|
|
|
__checksyncbyte__(self)
Check validity of TS. |
source code
|
|
|
|
__initInstance__(self)
Parse ATR and initialize members:
TS: initial character
T0: format character
TA[n], TB[n], TC[n], TD[n], for n=0,1,...: protocol parameters
note: protocol parameters indices start at 0, e.g. |
source code
|
|
|
|
|
|
|
getHistoricalBytes(self)
Return historical bytes. |
source code
|
|
|
|
getHistoricalBytesCount(self)
Return count of historical bytes. |
source code
|
|
|
|
getInterfaceBytesCount(self)
Return count of interface bytes. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getBitRateFactor(self)
Return bit rate factor. |
source code
|
|
|
|
getClockRateConversion(self)
Return clock rate conversion. |
source code
|
|
|
|
getProgrammingCurrent(self)
Return maximum programming current. |
source code
|
|
|
|
getProgrammingVoltage(self)
Return programming voltage. |
source code
|
|
|
|
getGuardTime(self)
Return extra guard time. |
source code
|
|
|
|
getSupportedProtocols(self)
Returns a dictionnary of supported protocols. |
source code
|
|
|
|
isT0Supported(self)
Return True if T=0 is supported. |
source code
|
|
|
|
isT1Supported(self)
Return True if T=1 is supported. |
source code
|
|
|
|
isT15Supported(self)
Return True if T=15 is supported. |
source code
|
|
|
|
|
|
|
__str__(self)
Returns a string representation of the ATR as a strem of bytes. |
source code
|
|
|
|
clockrateconversion = [372, 372, 558, 744, 1116, 1488, 1860, '...
|
|
|
bitratefactor = ['RFU', 1, 2, 4, 8, 16, 32, 'RFU', 12, 20, 'RF...
|
|
|
currenttable = [25, 50, 100, 'RFU']
|