nRF Connect SDK API 0.1.0
|
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | nfc_t4t_apdu_data |
APDU data field descriptor. More... | |
struct | nfc_t4t_apdu_comm |
Command Application Protocol Data Unit (C-APDU) descriptor. More... | |
struct | nfc_t4t_apdu_resp |
Response Application Protocol Data Unit (R-APDU) descriptor. More... | |
Macros | |
#define | NFC_T4T_APDU_CLASS_BYTE_NO_SECURE_MSG 0x00 |
#define | NFC_T4T_APDU_SELECT_BY_FILE_ID 0x000C |
#define | NFC_T4T_APDU_SELECT_BY_NAME 0x0400 |
#define | NFC_T4T_APDU_RAPDU_STATUS_CMD_COMPLETED 0x9000 |
#define | NFC_T4T_APDU_RAPDU_STATUS_SEL_ITEM_NOT_FOUND 0x6A82 |
Enumerations | |
enum | nfc_t4t_apdu_comm_ins { NFC_T4T_APDU_COMM_INS_SELECT = 0xA4 , NFC_T4T_APDU_COMM_INS_READ = 0xB0 , NFC_T4T_APDU_COMM_INS_UPDATE = 0xD6 } |
Possible instruction codes in C-APDU. More... | |
Functions | |
static void | nfc_t4t_apdu_comm_clear (struct nfc_t4t_apdu_comm *cmd_apdu) |
Clear a C-APDU descriptor and restore its default values. | |
static void | nfc_t4t_apdu_resp_clear (struct nfc_t4t_apdu_resp *resp_apdu) |
Clearing an R-APDU descriptor and restore its default values. | |
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. | |
void | nfc_t4t_apdu_resp_printout (const struct nfc_t4t_apdu_resp *resp_apdu) |
Print an R-APDU descriptor. | |