OPTIGA™ Trust M
Host Library Documentation
|
This file defines the API prototype for transport layer of the Infineon I2C Protocol Stack library. More...
Go to the source code of this file.
Functions | |
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. More... | |
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. More... | |
This file defines the API prototype for transport layer of the Infineon I2C Protocol Stack library.
Definition in file ifx_i2c_transport_layer.h.
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.
Function initializes and enables the module and registers an event handler to receive events from this module.
[in,out] | p_ctx | Pointer to ifx i2c context. |
[in] | handler | Function pointer to the event handler of the upper layer. |
IFX_I2C_STACK_SUCCESS | If initialization was successful. |
IFX_I2C_STACK_ERROR | If the module is already initialized. |
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.
[in,out] | p_ctx | Pointer to ifx i2c context. |
[in] | p_packet | Buffer containing the packet header. |
[in] | packet_len | Packet header length. |
[in] | p_recv_packet | Buffer containing the packet payload. |
[in] | p_recv_packet_len | Packet payload length. |
IFX_I2C_STACK_SUCCESS | If function was successful. |
IFX_I2C_STACK_ERROR | If the module is busy. |