hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
Macros
ifx-apdu-protocol.h File Reference

Generic protocol API for exchanging APDUs with secure elements. More...

#include "infineon/ifx-apdu.h"
#include "infineon/ifx-logger.h"
#include "infineon/ifx-protocol.h"

Go to the source code of this file.

Macros

#define IFX_APDU_PROTOCOL_LOG(logger_object, source_information, logger_level, formatter, ...)
 APDU PROTOCOL library data log macro.
 
#define IFX_APDU_PROTOCOL_LOG_BYTES(logger_object, source_information, logger_level, delimeter_1, data, data_len, delimeter_2)
 APDU PROTOCOL library array of bytes data log macro.
 
#define LIB_APDU_PROTOCOL   UINT8_C(0x28)
 APDU protocol library identifier ID.
 
#define IFX_APDU_PROTOCOL_LOG_TAG   "APDU-PROTOCOL"
 String used as source information for logging.
 
#define IFX_SW_ERROR   UINT8_C(0xB0)
 Reusable error reason if status word returned during ifx_apdu_protocol_transceive() indicates an error.
 

Detailed Description

Generic protocol API for exchanging APDUs with secure elements.

Definition in file ifx-apdu-protocol.h.

Macro Definition Documentation

◆ IFX_APDU_PROTOCOL_LOG

#define IFX_APDU_PROTOCOL_LOG ( logger_object,
source_information,
logger_level,
formatter,
... )

APDU PROTOCOL library data log macro.

Parameters
[in]logger_objectLogger object in which logging to be done.
[in]source_informationSource information from where logs are originated.
[in]logger_levelLog level
[in]formatterString with formatter for data passed as variable argument

It maps to the ifx_logger_log function if IFX_APDU_PROTOCOL_LOG_ENABLE macro is defined other wise it defines IFX_SUCCESS.

Definition at line 60 of file ifx-apdu-protocol.h.

◆ IFX_APDU_PROTOCOL_LOG_BYTES

#define IFX_APDU_PROTOCOL_LOG_BYTES ( logger_object,
source_information,
logger_level,
delimeter_1,
data,
data_len,
delimeter_2 )

APDU PROTOCOL library array of bytes data log macro.

Parameters
[in]logger_objectLogger object in which logging to be done.
[in]source_informationSource information from where logs are originated.
[in]logger_levelLog level
[in]delimeter_1Delimeter to differentiate log information and data.
[in]dataData to be log.
[in]data_lenLength of the data
[in]delimeter_2Delimeter to differentiate each data byte

It maps to the ifx_logger_log_bytes function if IFX_APDU_PROTOCOL_LOG_ENABLE macro is defined other wise it defines IFX_SUCCESS.

Definition at line 63 of file ifx-apdu-protocol.h.

◆ IFX_APDU_PROTOCOL_LOG_TAG

#define IFX_APDU_PROTOCOL_LOG_TAG   "APDU-PROTOCOL"

String used as source information for logging.

Definition at line 81 of file ifx-apdu-protocol.h.

◆ IFX_SW_ERROR

#define IFX_SW_ERROR   UINT8_C(0xB0)

Reusable error reason if status word returned during ifx_apdu_protocol_transceive() indicates an error.

Definition at line 87 of file ifx-apdu-protocol.h.

◆ LIB_APDU_PROTOCOL

#define LIB_APDU_PROTOCOL   UINT8_C(0x28)

APDU protocol library identifier ID.

Definition at line 76 of file ifx-apdu-protocol.h.