OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
ifx_i2c_transport_layer.h
Go to the documentation of this file.
1 
39 #ifndef _IFX_I2C_TRANSPORT_LAYER_H_
40 #define _IFX_I2C_TRANSPORT_LAYER_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include "ifx_i2c_config.h"
47 #include "pal_os_timer.h"
48 
68 
92  uint8_t * p_packet,
93  uint16_t packet_len,
94  uint8_t * p_recv_packet,
95  uint16_t * p_recv_packet_len);
96 
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 #endif /* _IFX_I2C_TRANSPORT_LAYER_H_ */
102 
This file defines the structures and macros for the Infineon I2C Protocol.
optiga_lib_status_t ifx_i2c_tl_init(ifx_i2c_context_t *p_ctx, ifx_i2c_event_handler_t handler)
Function for initializing the module.
Definition: ifx_i2c_transport_layer.c:95
optiga_lib_status_t ifx_i2c_tl_transceive(ifx_i2c_context_t *p_ctx, uint8_t *p_packet, uint16_t packet_len, uint8_t *p_recv_packet, uint16_t *p_recv_packet_len)
Function to transmit and receive a packet.
Definition: ifx_i2c_transport_layer.c:115
IFX I2C context structure.
Definition: ifx_i2c_config.h:416
This file provides the prototype declarations of PAL OS timer functionalities.
void(* ifx_i2c_event_handler_t)(struct ifx_i2c_context *p_ctx, optiga_lib_status_t event, const uint8_t *data, uint16_t data_len)
Event handler function prototype.
Definition: ifx_i2c_config.h:195
uint16_t optiga_lib_status_t
typedef for OPTIGA host library status
Definition: optiga_lib_types.h:97