introduce nfc_dep_mode_t type instead of bool in nfc_initiator_select_dep_target()

This commit is contained in:
Romuald Conty 2010-10-13 19:59:39 +00:00
parent 124cc28bac
commit adba90684d
4 changed files with 20 additions and 10 deletions

View file

@ -167,7 +167,7 @@ typedef enum {
/**
* @struct nfc_dep_info_t
* @brief NFC tag information in D.E.P. (Data Exchange Protocol) see ISO/IEC 18092
* @brief NFC target information in D.E.P. (Data Exchange Protocol) see ISO/IEC 18092 (NFCIP-1)
*/
typedef struct {
/** NFCID3 */
@ -187,6 +187,15 @@ typedef struct {
size_t szGB;
} nfc_dep_info_t;
/**
* @enum nfc_dep_mode_t
* @brief NFC D.E.P. (Data Exchange Protocol) active/passive mode
*/
typedef enum {
NDM_PASSIVE,
NDM_ACTIVE,
} nfc_dep_mode_t;
/**
* @struct nfc_iso14443a_info_t
* @brief NFC ISO14443A tag (MIFARE) information