24#define NBT_INIT UINT8_C(0x01)
29#define NBT_CMD_LOG_TAG "NBT_COMMAND"
34#define NBT_CLA UINT8_C(0x00)
40#define NBT_CLA_PASS_THROUGH UINT8_C(0x38)
45#define NBT_INS_SELECT UINT8_C(0xA4)
51#define NBT_P1_DEFAULT UINT8_C(0x00)
57#define NBT_P2_DEFAULT UINT8_C(0x00)
63#define NBT_P1_SELECT_BY_DF UINT8_C(0x04)
69#define NBT_LE_NONE UINT8_C(0x00)
129 ifx_logger_t *logger);
APDU (response) error utility.
Generic protocol API for exchanging APDUs with secure elements.
APDU (response) en-/decoding utility.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Generic protocol API (ISO/OSI stack).
Provides the library and module identifiers code of the library.
uint8_t * nbt_error_message_get(const nbt_cmd_t *self)
Returns the error message for last command executed by NBT command set.
void nbt_destroy(nbt_cmd_t *self)
Releases the memory associated with NBT command set object (but not object itself).
ifx_status_t nbt_initialize(nbt_cmd_t *self, ifx_protocol_t *protocol, ifx_logger_t *logger)
Initializes NBT command set object by setting protocol members to valid values.
Struct that holds APDU Error's message with respective to the INS and SW.
Data storage struct for APDU response information.
Data storage for APDU fields.
Generic NBT command set structure for building and performing NBT commands.
ifx_protocol_t * protocol
Private base layer in ISO/OSI stack.
ifx_logger_t * logger
Private member for optional Logger.
ifx_apdu_error_map_t * apdu_error_map_list
Private member holds an APDU error message map.
ifx_apdu_response_t * response
Private member holds the response-APDU.
uint8_t apdu_error_map_list_length
Private member holds an APDU error message map length.
ifx_apdu_t * apdu
Private member holds the command-APDU.