52#ifdef IFX_T1PRIME_LOG_ENABLE
53#define IFX_T1PRIME_LOG(logger_object, source_information, logger_level, \
55 ifx_logger_log(logger_object, source_information, logger_level, formatter, \
57#define IFX_T1PRIME_LOG_BYTES(logger_object, source_information, logger_level, \
58 delimeter_1, data, data_len, delimeter_2) \
59 ifx_logger_log_bytes(logger_object, source_information, logger_level, \
60 delimeter_1, data, data_len, delimeter_2)
62#define IFX_T1PRIME_LOG(logger_object, source_information, logger_level, \
65#define IFX_T1PRIME_LOG_BYTES(logger_object, source_information, logger_level, \
66 delimeter_1, data, data_len, delimeter_2)
76#define IFX_T1PRIME_LOG_TAG "T=1'"
81#define IFX_T1PRIME_IRQ_TRIGGERED IFX_SUCCESS
87#define IFX_T1PRIME_IRQ 0x09u
93#define IFX_T1PRIME_IRQ_NOT_TRIGGERED 0x01u
107 ifx_protocol_t *driver);
160 uint32_t timeout_us);
Infineon specific error code creation and parsing.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Generic protocol API (ISO/OSI stack).
Provides the module, method and error identifiers of the library.
ifx_status_t ifx_t1prime_s_swr(ifx_protocol_t *self)
Performs Global Platform T=1' software reset (SWR).
ifx_status_t(* ifx_t1prime_irq_handler_t)(ifx_protocol_t *self, uint32_t timeout_us)
Custom function type used to wait for T=1' data interrupt.
ifx_status_t ifx_t1prime_s_por(ifx_protocol_t *self)
Performs Global Platform T=1' power on reset (POR).
ifx_status_t ifx_t1prime_set_ifsd(ifx_protocol_t *self, size_t ifsd)
Sets maximum information field size of the host device (IFSD).
ifx_status_t ifx_t1prime_set_irq_handler(ifx_protocol_t *self, ifx_t1prime_irq_handler_t irq)
Sets T=1' interrupt handler function.
ifx_status_t ifx_t1prime_initialize(ifx_protocol_t *self, ifx_protocol_t *driver)
Initializes Protocol object for Global Platform T=1' protocol.
ifx_status_t ifx_t1prime_get_irq_handler(ifx_protocol_t *self, ifx_t1prime_irq_handler_t *irq_buffer)
Getter for T=1' interrupt handler function.
ifx_status_t ifx_t1prime_get_bwt(ifx_protocol_t *self, uint16_t *bwt_ms_buffer)
Returns current block waiting time (BWT) in [ms].
ifx_status_t ifx_t1prime_set_bwt(ifx_protocol_t *self, uint16_t bwt_ms)
Sets block waiting time (BWT) in [ms].