mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
NFC: Implement DESFire ISO 7816 command wrapping
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user