OPTIGA™ Trust M
Host Library Documentation
ifx_i2c.h
Go to the documentation of this file.
1 
39 #ifndef _IFXI2C_H_
40 #define _IFXI2C_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
48 
50 typedef enum ifx_i2c_reset_type
51 {
109 
138  ifx_i2c_reset_type_t reset_type);
139 
200  const uint8_t * p_tx_data,
201  uint16_t tx_data_length,
202  uint8_t * p_rx_buffer,
203  uint16_t* p_rx_buffer_len);
204 
231 
264  uint8_t slave_address,
265  uint8_t persistent);
266 
267 #ifdef __cplusplus
268 }
269 #endif
270 #endif /* _IFXI2C_H_ */
271 
ifx_i2c_open
optiga_lib_status_t ifx_i2c_open(ifx_i2c_context_t *p_ctx)
Initializes the IFX I2C protocol stack for a given context.
ifx_i2c_reset_type
ifx_i2c_reset_type
IFX I2C Reset types.
Definition: ifx_i2c.h:51
ifx_i2c_config.h
This file defines the structures and macros for the Infineon I2C Protocol.
ifx_i2c_transceive
optiga_lib_status_t ifx_i2c_transceive(ifx_i2c_context_t *p_ctx, const uint8_t *p_tx_data, uint16_t tx_data_length, uint8_t *p_rx_buffer, uint16_t *p_rx_buffer_len)
Sends a command and receives a response for the command.
IFX_I2C_COLD_RESET
@ IFX_I2C_COLD_RESET
Cold reset. Both reset pin and VDD pin are toggled low and then high.
Definition: ifx_i2c.h:53
ifx_i2c_reset_type_t
enum ifx_i2c_reset_type ifx_i2c_reset_type_t
IFX I2C Reset types.
optiga_lib_types.h
This file contains the type definitions for the fundamental data types.
IFX_I2C_SOFT_RESET
@ IFX_I2C_SOFT_RESET
Soft reset. 0x0000 is written to IFX-I2C Soft reset register.
Definition: ifx_i2c.h:55
ifx_i2c_set_slave_address
optiga_lib_status_t ifx_i2c_set_slave_address(ifx_i2c_context_t *p_ctx, uint8_t slave_address, uint8_t persistent)
Sets the slave address of the target device.
IFX_I2C_WARM_RESET
@ IFX_I2C_WARM_RESET
Warm reset. Only reset pin is toggled low and then high.
Definition: ifx_i2c.h:57
ifx_i2c_reset
optiga_lib_status_t ifx_i2c_reset(ifx_i2c_context_t *p_ctx, ifx_i2c_reset_type_t reset_type)
Resets the I2C slave.
ifx_i2c_context
IFX I2C context structure.
Definition: ifx_i2c_config.h:408
ifx_i2c_close
optiga_lib_status_t ifx_i2c_close(ifx_i2c_context_t *p_ctx)
Closes the IFX I2C protocol stack for a given context.
optiga_lib_status_t
uint16_t optiga_lib_status_t
typedef for OPTIGA host library status
Definition: optiga_lib_types.h:90