|
M5Unit-NFC 0.1.0 git rev:93745b5
|
ISO Data Exchange Protocol. More...
#include <isoDEP.hpp>
Public Member Functions | |
| IsoDEP (NFCLayerInterface &layer) | |
| Constructor with NFC layer. | |
| IsoDEP (NFCLayerInterface &layer, const config_t &c) | |
| Constructor with NFC layer and configuration. | |
| config_t | config () const |
| Get configuration. | |
| void | config (const config_t &cfg) |
| Set configuration. | |
| bool | transceiveINF (uint8_t *rx_inf, uint16_t &rx_inf_len, const uint8_t *tx_inf, const uint16_t tx_inf_len, RxInfo *info=nullptr, const policy_t *override_policy=nullptr) |
| Transceive INF. | |
| bool | transceiveAPDU (uint8_t *rx, uint16_t &rx_len, const uint8_t *cmd, const uint16_t cmd_len, const policy_t *override_policy=nullptr) |
| Transceive APDU. | |
| bool | transceive (uint8_t *rx, uint16_t &rx_len, const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms) |
| Transceive normal. | |
ISO Data Exchange Protocol.
|
inlineexplicit |
Constructor with NFC layer.
| layer | NFC layer interface |
|
inline |
Constructor with NFC layer and configuration.
| layer | NFC layer interface |
| c | ISO-DEP configuration |
|
inline |
Get configuration.
|
inline |
Set configuration.
| cfg | New ISO-DEP configuration |
| bool m5::nfc::isodep::IsoDEP::transceive | ( | uint8_t * | rx, |
| uint16_t & | rx_len, | ||
| const uint8_t * | tx, | ||
| const uint16_t | tx_len, | ||
| const uint32_t | timeout_ms ) |
Transceive normal.
| [out] | rx | Receive buffer |
| [in,out] | rx_len | In: capacity of rx, Out: received length |
| tx | Transmit buffer | |
| tx_len | Transmit length | |
| timeout_ms | Timeout in milliseconds |
| bool m5::nfc::isodep::IsoDEP::transceiveAPDU | ( | uint8_t * | rx, |
| uint16_t & | rx_len, | ||
| const uint8_t * | cmd, | ||
| const uint16_t | cmd_len, | ||
| const policy_t * | override_policy = nullptr ) |
Transceive APDU.
| [out] | rx | Receive buffer (response + SW) |
| [in,out] | rx_len | In: capacity of rx, Out: received length |
| cmd | Command APDU | |
| cmd_len | Command APDU length | |
| override_policy | Optional per-call timeout/retry override (nullptr uses config values) |
| bool m5::nfc::isodep::IsoDEP::transceiveINF | ( | uint8_t * | rx_inf, |
| uint16_t & | rx_inf_len, | ||
| const uint8_t * | tx_inf, | ||
| const uint16_t | tx_inf_len, | ||
| RxInfo * | info = nullptr, | ||
| const policy_t * | override_policy = nullptr ) |
Transceive INF.
| [out] | rx_inf | Receive INF buffer |
| [in,out] | rx_inf_len | In: capacity of rx_inf, Out: received INF length |
| tx_inf | Transmit INF buffer | |
| tx_inf_len | Transmit INF length | |
| [out] | info | Optional receive information (chaining/WTX) |
| override_policy | Optional per-call timeout/retry override (nullptr uses config values) |