Synergy Software Package User's Manual

#include <r_i2c_api.h>

Data Fields

uint8_t channel
 Identifier recognizable by implementation. More...
 
i2c_rate_t rate
 Device's maximum clock rate from enum i2c_rate_t.
 
uint16_t slave
 The address of the slave device.
 
i2c_addr_mode_t addr_mode
 Indicates how slave fields should be interpreted.
 
uint16_t sda_delay
 The SDA output delay.
 
uint8_t rxi_ipl
 Receive interrupt priority.
 
uint8_t txi_ipl
 Transmit interrupt priority.
 
uint8_t tei_ipl
 Transmit end interrupt priority.
 
uint8_t eri_ipl
 Error interrupt priority.
 
transfer_instance_t const * p_transfer_tx
 DTC instance for I2C transmit.Set to NULL if unused. More...
 
transfer_instance_t const * p_transfer_rx
 DTC instance for I2C receive. Set to NULL if unused.
 
void(* p_callback )(i2c_callback_args_t *p_args)
 Pointer to callback function. More...
 
void const * p_context
 Pointer to the user-provided context.
 
void const * p_extend
 Any configuration data needed by the hardware. More...
 

Detailed Description

I2C configuration block

Field Documentation

◆ channel

uint8_t i2c_cfg_t::channel

Identifier recognizable by implementation.

Generic configuration

◆ p_callback

void(* i2c_cfg_t::p_callback) (i2c_callback_args_t *p_args)

Pointer to callback function.

Parameters to control software behavior

◆ p_extend

void const* i2c_cfg_t::p_extend

Any configuration data needed by the hardware.

Implementation-specific configuration

◆ p_transfer_tx

transfer_instance_t const* i2c_cfg_t::p_transfer_tx

DTC instance for I2C transmit.Set to NULL if unused.

DTC/DMA support


The documentation for this struct was generated from the following file: