Infineon I2C Protocol Stack: Configuration

nRF5 SDK v14.1.0

Module for the configuration of the Infineon I2C Protocol Stack library. More...

Macros

#define IFX_I2C_BASE_ADDR 0x30
I2C slave address of the Infineon device.
#define PL_POLLING_INVERVAL_US 10000
Physical Layer: polling interval in microseconds.
#define PL_GUARD_TIME_INTERVAL_US 50
Physical Layer: guard time interval in microseconds.
#define PL_POLLING_MAX_CNT 200
Physical layer: maximal attempts.
#define DL_MAX_FRAME_SIZE 0xFF
Data link layer: maximum frame size.
#define DL_MAX_RETRIES 3
Data link layer: maximum number of retries in case of transmission error.
#define DL_HEADER_SIZE 5
Data link layer: header size (constant)
#define TL_MAX_FRAGMENT_SIZE ( DL_MAX_FRAME_SIZE - DL_HEADER_SIZE )
Transport layer: maximum fragment size.
#define TL_BUFFER_SIZE 0x40A
Transport layer: size of internal buffer. More...
#define IFX_I2C_STACK_SUCCESS 0x00
Protocol Stack status codes for success.
#define IFX_I2C_STACK_ERROR 0x01
Protocol Stack status codes for error.
#define IFX_I2C_LOG_PL 0
Protocol Stack debug switch for physical layer (set to 0 or 1)
#define IFX_I2C_LOG_DL 0
Protocol Stack debug switch for data link layer (set to 0 or 1)
#define IFX_I2C_LOG_TL 0
Protocol Stack debug switch for transport layer (set to 0 or 1)
#define IFX_I2C_LOG (...)

Typedefs

typedef void(* ifx_i2c_event_handler_t )(uint8_t event, uint8_t *data, uint16_t data_len)
Event handler function prototype.

Detailed Description

Module for the configuration of the Infineon I2C Protocol Stack library.

Macro Definition Documentation

#define TL_BUFFER_SIZE   0x40A

Transport layer: size of internal buffer.

Note
Should be large enough to store an X.509 certificate