mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
NFC: Refactor common NXP Native command handling
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "mf_desfire.h"
|
||||
|
||||
#include <lib/nfc/protocols/iso14443_4a/iso14443_4a_poller.h>
|
||||
#include <lib/nfc/helpers/nxp_native_command_mode.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -39,24 +40,14 @@ typedef struct {
|
||||
} 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.
|
||||
* @brief Change 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);
|
||||
NxpNativeCommandMode command_mode);
|
||||
|
||||
/**
|
||||
* @brief Transmit and receive MfDesfire chunks in poller mode.
|
||||
|
||||
Reference in New Issue
Block a user