8#ifndef IFX_APDU_PROTOCOL_H
9#define IFX_APDU_PROTOCOL_H
49#ifdef IFX_APDU_PROTOCOL_LOG_ENABLE
50#define IFX_APDU_PROTOCOL_LOG(logger_object, source_information, logger_level, \
52 ifx_logger_log(logger_object, source_information, logger_level, formatter, \
54#define IFX_APDU_PROTOCOL_LOG_BYTES(logger_object, source_information, \
55 logger_level, delimeter_1, data, data_len, \
57 ifx_logger_log_bytes(logger_object, source_information, logger_level, \
58 delimeter_1, data, data_len, delimeter_2)
60#define IFX_APDU_PROTOCOL_LOG(logger_object, source_information, logger_level, \
63#define IFX_APDU_PROTOCOL_LOG_BYTES(logger_object, source_information, \
64 logger_level, delimeter_1, data, data_len, \
76#define LIB_APDU_PROTOCOL UINT8_C(0x28)
81#define IFX_APDU_PROTOCOL_LOG_TAG "APDU-PROTOCOL"
87#define IFX_SW_ERROR UINT8_C(0xB0)
162 const ifx_logger_t *logger,
const char *source,
ifx_log_level level,
APDU (response) en-/decoding utility.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
ifx_log_level
Log level for filtering messages to actually be logged.
Generic protocol API (ISO/OSI stack).
Data storage struct for APDU response information.
Data storage for APDU fields.
ifx_status_t ifx_apdu_protocol_log_response(const ifx_logger_t *logger, const char *source, ifx_log_level level, const char *msg, const ifx_apdu_response_t *response)
Extension of ifx_logger_log() for logging APDU response objects.
ifx_status_t ifx_apdu_protocol_log(const ifx_logger_t *logger, const char *source, ifx_log_level level, const char *msg, const ifx_apdu_t *apdu)
Extension of ifx_logger_log() for logging APDU objects.
ifx_status_t ifx_apdu_protocol_transceive(ifx_protocol_t *self, const ifx_apdu_t *apdu, ifx_apdu_response_t *response)
Sends APDU to secure element reads back APDU response.