OPTIGA™ Trust M
Host Library Documentation
ifx_i2c_context Struct Reference

IFX I2C context structure. More...

#include <ifx_i2c_config.h>

Collaboration diagram for ifx_i2c_context:

Data Fields

uint8_t slave_address
 I2C Slave address. More...
 
uint16_t frequency
 Frequency of i2c master. More...
 
uint16_t frame_size
 Data link layer frame size. More...
 
pal_gpio_tp_slave_vdd_pin
 Pointer to pal gpio context for vdd. More...
 
pal_gpio_tp_slave_reset_pin
 Pointer to pal gpio context for reset. More...
 
pal_i2c_tp_pal_i2c_ctx
 Pointer to pal i2c context. More...
 
upper_layer_callback_t upper_layer_event_handler
 Upper layer event handler. More...
 
void * p_upper_layer_ctx
 Upper layer context. More...
 
uint8_t * p_upper_layer_rx_buffer
 Pointer to upper layer rx buffer. More...
 
uint16_t * p_upper_layer_rx_buffer_len
 Pointer to length of upper layer rx buffer. More...
 
uint8_t state
 
uint8_t status
 ifx i2c wrapper api status More...
 
uint8_t reset_state
 reset states More...
 
optiga_lib_status_t close_state
 Close states. More...
 
uint8_t reset_type
 type of reset More...
 
uint8_t do_pal_init
 init pal More...
 
ifx_i2c_tl_t tl
 Transport layer context. More...
 
ifx_i2c_dl_t dl
 Datalink layer context. More...
 
ifx_i2c_pl_t pl
 Physical layer context. More...
 
uint8_t tx_frame_buffer [IFX_I2C_FRAME_SIZE+1]
 IFX I2C tx frame of max length. More...
 
uint8_t rx_frame_buffer [IFX_I2C_FRAME_SIZE+1]
 IFX I2C rx frame of max length. More...
 
void * pal_os_event_ctx
 

Detailed Description

IFX I2C context structure.

Definition at line 407 of file ifx_i2c_config.h.

Field Documentation

◆ close_state

optiga_lib_status_t ifx_i2c_context::close_state

Close states.

Definition at line 442 of file ifx_i2c_config.h.

◆ dl

ifx_i2c_dl_t ifx_i2c_context::dl

Datalink layer context.

Definition at line 461 of file ifx_i2c_config.h.

◆ do_pal_init

uint8_t ifx_i2c_context::do_pal_init

init pal

Definition at line 446 of file ifx_i2c_config.h.

◆ frame_size

uint16_t ifx_i2c_context::frame_size

Data link layer frame size.

Definition at line 414 of file ifx_i2c_config.h.

◆ frequency

uint16_t ifx_i2c_context::frequency

Frequency of i2c master.

Definition at line 412 of file ifx_i2c_config.h.

◆ p_pal_i2c_ctx

pal_i2c_t* ifx_i2c_context::p_pal_i2c_ctx

Pointer to pal i2c context.

Definition at line 420 of file ifx_i2c_config.h.

◆ p_slave_reset_pin

pal_gpio_t* ifx_i2c_context::p_slave_reset_pin

Pointer to pal gpio context for reset.

Definition at line 418 of file ifx_i2c_config.h.

◆ p_slave_vdd_pin

pal_gpio_t* ifx_i2c_context::p_slave_vdd_pin

Pointer to pal gpio context for vdd.

Definition at line 416 of file ifx_i2c_config.h.

◆ p_upper_layer_ctx

void* ifx_i2c_context::p_upper_layer_ctx

Upper layer context.

Definition at line 428 of file ifx_i2c_config.h.

◆ p_upper_layer_rx_buffer

uint8_t* ifx_i2c_context::p_upper_layer_rx_buffer

Pointer to upper layer rx buffer.

Definition at line 430 of file ifx_i2c_config.h.

◆ p_upper_layer_rx_buffer_len

uint16_t* ifx_i2c_context::p_upper_layer_rx_buffer_len

Pointer to length of upper layer rx buffer.

Definition at line 432 of file ifx_i2c_config.h.

◆ pal_os_event_ctx

void* ifx_i2c_context::pal_os_event_ctx

Definition at line 472 of file ifx_i2c_config.h.

◆ pl

ifx_i2c_pl_t ifx_i2c_context::pl

Physical layer context.

Definition at line 463 of file ifx_i2c_config.h.

◆ reset_state

uint8_t ifx_i2c_context::reset_state

reset states

Definition at line 440 of file ifx_i2c_config.h.

◆ reset_type

uint8_t ifx_i2c_context::reset_type

type of reset

Definition at line 444 of file ifx_i2c_config.h.

◆ rx_frame_buffer

uint8_t ifx_i2c_context::rx_frame_buffer[IFX_I2C_FRAME_SIZE+1]

IFX I2C rx frame of max length.

Definition at line 471 of file ifx_i2c_config.h.

◆ slave_address

uint8_t ifx_i2c_context::slave_address

I2C Slave address.

Definition at line 410 of file ifx_i2c_config.h.

◆ state

uint8_t ifx_i2c_context::state

Protocol variables ifx i2c wrapper apis state

Definition at line 436 of file ifx_i2c_config.h.

◆ status

uint8_t ifx_i2c_context::status

ifx i2c wrapper api status

Definition at line 438 of file ifx_i2c_config.h.

◆ tl

ifx_i2c_tl_t ifx_i2c_context::tl

Transport layer context.

Definition at line 459 of file ifx_i2c_config.h.

◆ tx_frame_buffer

uint8_t ifx_i2c_context::tx_frame_buffer[IFX_I2C_FRAME_SIZE+1]

IFX I2C tx frame of max length.

Definition at line 469 of file ifx_i2c_config.h.

◆ upper_layer_event_handler

upper_layer_callback_t ifx_i2c_context::upper_layer_event_handler

Upper layer event handler.

Definition at line 426 of file ifx_i2c_config.h.