class documentation
Parse and represent Answer to Reset sequences.
Answer to Reset sequences are defined in ISO 7816-3, section 8.
| Method | __init__ |
Parse ATR and initialize members: |
| Method | __str__ |
Render the ATR as a space-separated string of uppercase hexadecimal pairs. |
| Method | dump |
Deprecated. Replace usage with `print(ATR.render())` |
| Method | get |
Return bit rate factor. |
| Method | get |
Return the checksum of the ATR. Checksum is mandatory only for T=1. |
| Method | get |
Return clock rate conversion. |
| Method | get |
Return extra guard time. |
| Method | get |
Return historical bytes. |
| Method | get |
Return count of historical bytes. |
| Method | get |
Return count of interface bytes. |
| Method | get |
Return maximum programming current. |
| Method | get |
Return programming voltage. |
| Method | get |
Returns a dictionary of supported protocols. |
| Method | get |
Return TA1 byte. |
| Method | get |
Return TB1 byte. |
| Method | get |
Return TC1 byte. |
| Method | get |
Return TD1 byte. |
| Method | is |
Return True if T=0 is supported. |
| Method | is |
Return True if T=15 is supported. |
| Method | is |
Return True if T=1 is supported. |
| Method | render |
Render the ATR to a readable format. |
| Class Variable | bitratefactor |
Undocumented |
| Class Variable | clockrateconversion |
Undocumented |
| Class Variable | currenttable |
Undocumented |
| Instance Variable | atr |
Undocumented |
| Instance Variable | checksum |
Undocumented |
| Instance Variable | DI |
Undocumented |
| Instance Variable | FI |
Undocumented |
| Instance Variable | has |
Undocumented |
| Instance Variable | historical |
Undocumented |
| Instance Variable | II |
Undocumented |
| Instance Variable | interface |
Undocumented |
| Instance Variable | K |
Undocumented |
| Instance Variable | N |
Undocumented |
| Instance Variable | PI1 |
Undocumented |
| Instance Variable | T0 |
Undocumented |
| Instance Variable | TA |
Undocumented |
| Instance Variable | TB |
Undocumented |
| Instance Variable | TC |
Undocumented |
| Instance Variable | TCK |
Undocumented |
| Instance Variable | TD |
Undocumented |
| Instance Variable | TS |
Undocumented |
| Instance Variable | Y |
Undocumented |
| Property | has |
Deprecated. Replace usage with `ATR.TA[i] is not None`. |
| Property | has |
Deprecated. Replace usage with `ATR.TB[i] is not None`. |
| Property | has |
Deprecated. Replace usage with `ATR.TC[i] is not None`. |
| Property | has |
Deprecated. Replace usage with `ATR.TD[i] is not None`. |
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. TA[0], TA[1] correspond to the ISO standard TA1, TA2 parameters
|