OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
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 
46 #include "optiga_lib_types.h"
47 #include "ifx_i2c_config.h"
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 
optiga_lib_status_t ifx_i2c_close(ifx_i2c_context_t *p_ctx)
Closes the IFX I2C protocol stack for a given context.
Definition: ifx_i2c.c:168
enum ifx_i2c_reset_type ifx_i2c_reset_type_t
IFX I2C Reset types.
optiga_lib_status_t ifx_i2c_reset(ifx_i2c_context_t *p_ctx, ifx_i2c_reset_type_t reset_type)
Resets the I2C slave.
Definition: ifx_i2c.c:108
optiga_lib_status_t ifx_i2c_open(ifx_i2c_context_t *p_ctx)
Initializes the IFX I2C protocol stack for a given context.
Definition: ifx_i2c.c:78
This file contains the type definitions for the fundamental data types.
ifx_i2c_reset_type
IFX I2C Reset types.
Definition: ifx_i2c.h:50
Cold reset. Both reset pin and VDD pin are toggled low and then high.
Definition: ifx_i2c.h:53
This file defines the structures and macros for the Infineon I2C Protocol.
Soft reset. 0x0000 is written to IFX-I2C Soft reset register.
Definition: ifx_i2c.h:55
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.
Definition: ifx_i2c.c:206
IFX I2C context structure.
Definition: ifx_i2c_config.h:416
Warm reset. Only reset pin is toggled low and then high.
Definition: ifx_i2c.h:57
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.
Definition: ifx_i2c.c:130
uint16_t optiga_lib_status_t
typedef for OPTIGA host library status
Definition: optiga_lib_types.h:97