|
| constexpr bool | IsIBlock (std::uint8_t pcb) noexcept |
| |
| constexpr bool | IsRBlock (std::uint8_t pcb) noexcept |
| |
| constexpr bool | IsSBlock (std::uint8_t pcb) noexcept |
| |
| constexpr bool | IBlockMore (std::uint8_t pcb) noexcept |
| |
| constexpr std::uint8_t | IBlockPcb (std::uint8_t ns_bit, bool more) noexcept |
| |
| constexpr std::uint8_t | RBlockAckPcb (std::uint8_t nr_bit) noexcept |
| |
| constexpr std::uint8_t | IBlockSeqFromPcb (std::uint8_t pcb) noexcept |
| |
| constexpr std::uint8_t | RBlockNrFromPcb (std::uint8_t pcb) noexcept |
| | N(R) of an R-block: the sequence number of the I-block its sender expects next.
|
| |
| constexpr std::uint8_t | RBlockNackPcb (std::uint8_t nr_bit, std::uint8_t err) noexcept |
| | R-block asking for the block with sequence number nr again, with error code err.
|
| |
|
| constexpr std::uint8_t | kNadHostToSe = 0x5AU |
| | NAD value used by the host for command blocks.
|
| |
| constexpr std::uint8_t | kNadSeToHost = 0xA5U |
| | NAD value returned by the SE in response blocks.
|
| |
| constexpr std::size_t | kMaxInformationField = 254U |
| | Maximum information field size per block (ISO 7816-3 typical upper bound).
|
| |
| constexpr std::size_t | kMaxRawBlockBytes = 3U + kMaxInformationField + 2U |
| | Raw block buffer high water: prologue + INF + EDC.
|
| |
| constexpr std::uint8_t | kPcbSWarmReset = 0xC6U |
| | S-block PCB used by NXP stacks for a 7816-style warm reset request (LEN = 0 INF).
|
| |
| constexpr std::uint8_t | kPcbSGetAtr = 0xC7U |
| | S-block PCB used by NXP stacks for GET ATR / card profile read (LEN = 0 INF).
|
| |
| constexpr std::uint8_t | kPcbSResyncReq = 0xC0U |
| | S-block request/response pair for resynchronization.
|
| |
| constexpr std::uint8_t | kPcbSResyncResp = 0xE0U |
| |
| constexpr std::uint8_t | kPcbSWtxReq = 0xC3U |
| | S-block request/response pair for waiting-time extension.
|
| |
| constexpr std::uint8_t | kPcbSWtxResp = 0xE3U |
| |
| constexpr std::uint8_t | kRBlockErrEdc = 0x01U |
| | R-block error code: EDC error (ISO/IEC 7816-3 11.4.3).
|
| |
| constexpr std::uint8_t | kRBlockErrOther = 0x02U |
| | R-block error code: other error (ISO/IEC 7816-3 11.4.3).
|
| |
| constexpr std::uint8_t | kDefaultMaxRetransmissions = 3U |
| | Default number of times one block is sent again before an exchange fails.
|
| |
T=1 constants and small helpers for SE050 on I²C.