27#define NFC_T4T_APDU_CLASS_BYTE_NO_SECURE_MSG 0x00
36#define NFC_T4T_APDU_SELECT_BY_FILE_ID 0x000C
39#define NFC_T4T_APDU_SELECT_BY_NAME 0x0400
50#define NFC_T4T_APDU_RAPDU_STATUS_CMD_COMPLETED 0x9000
53#define NFC_T4T_APDU_RAPDU_STATUS_SEL_ITEM_NOT_FOUND 0x6A82
136 uint8_t *raw_data, uint16_t *
len);
151 const uint8_t *raw_data, uint16_t
len);
static void nfc_t4t_apdu_resp_clear(struct nfc_t4t_apdu_resp *resp_apdu)
Clearing an R-APDU descriptor and restore its default values.
Definition apdu.h:166
void nfc_t4t_apdu_resp_printout(const struct nfc_t4t_apdu_resp *resp_apdu)
Print an R-APDU descriptor.
static void nfc_t4t_apdu_comm_clear(struct nfc_t4t_apdu_comm *cmd_apdu)
Clear a C-APDU descriptor and restore its default values.
Definition apdu.h:161
nfc_t4t_apdu_comm_ins
Possible instruction codes in C-APDU.
Definition apdu.h:61
@ NFC_T4T_APDU_COMM_INS_UPDATE
Definition apdu.h:69
@ NFC_T4T_APDU_COMM_INS_READ
Definition apdu.h:66
@ NFC_T4T_APDU_COMM_INS_SELECT
Definition apdu.h:63
int nfc_t4t_apdu_comm_encode(const struct nfc_t4t_apdu_comm *cmd_apdu, uint8_t *raw_data, uint16_t *len)
Encode C-APDU.
int nfc_t4t_apdu_resp_decode(struct nfc_t4t_apdu_resp *resp_apdu, const uint8_t *raw_data, uint16_t len)
Decode R-APDU.
uint16_t resp_len
Definition apdu.h:98
uint16_t parameter
Definition apdu.h:92
uint8_t class_byte
Definition apdu.h:86
enum nfc_t4t_apdu_comm_ins instruction
Definition apdu.h:89
struct nfc_t4t_apdu_data data
Definition apdu.h:95
Command Application Protocol Data Unit (C-APDU) descriptor.
Definition apdu.h:84
uint16_t len
Definition apdu.h:76
uint8_t * buff
Definition apdu.h:79
APDU data field descriptor.
Definition apdu.h:74
uint16_t status
Definition apdu.h:105
struct nfc_t4t_apdu_data data
Definition apdu.h:108
Response Application Protocol Data Unit (R-APDU) descriptor.
Definition apdu.h:103