NFC: Implement DESFire ISO 7816 command wrapping

This commit is contained in:
Willy-JL
2025-03-20 04:10:19 +00:00
parent 19ee0f4598
commit cc789115dd
5 changed files with 106 additions and 15 deletions

View File

@@ -38,6 +38,26 @@ typedef struct {
MfDesfirePollerEventData* data; /**< Pointer to event specific data. */
} MfDesfirePollerEvent;
/**
* @brief Enumeration of possible MfDesfire poller command modes.
*/
typedef enum {
MfDesfirePollerCommandModeNative, /**< Native MfDesfire commands. */
MfDesfirePollerCommandModeIsoWrapped, /**< ISO 7816-wrapped commands. */
MfDesfirePollerCommandModeMAX,
} MfDesfirePollerCommandMode;
/**
* @brief Change MfDesfire command mode used in poller mode.
*
* @param[in, out] instance pointer to the instance to affect.
* @param[in] command_mode command mode to use in further communication with the card.
*/
void mf_desfire_poller_set_command_mode(
MfDesfirePoller* instance,
MfDesfirePollerCommandMode command_mode);
/**
* @brief Transmit and receive MfDesfire chunks in poller mode.
*