Synergy Software Package User's Manual
riic_instance_ctrl_t Struct Reference

#include <r_riic.h>

Data Fields

i2c_cfg_t info
 Information describing I2C device.
 
uint32_t open
 Flag to determine if the device is open.
 
void * p_reg
 Base register for this channel.
 
IRQn_Type rxi_irq
 Receive IRQ number.
 
IRQn_Type txi_irq
 Transmit IRQ number.
 
IRQn_Type tei_irq
 Transmit end IRQ number.
 
IRQn_Type eri_irq
 Error IRQ number.
 
uint8_t * p_buff
 
uint32_t total
 
uint32_t remain
 
uint32_t loaded
 
uint8_t addr_low
 
uint8_t addr_high
 
uint8_t addr_total
 
uint8_t addr_remain
 
uint8_t addr_loaded
 
volatile bool read
 
volatile bool restart
 
volatile bool err
 
volatile bool restarted
 
volatile bool dummy_read_completed
 
volatile bool activation_on_rxi
 
volatile bool activation_on_txi
 
volatile bool address_restarted
 
volatile bsp_lock_t resource_lock_tx_rx
 
riic_timeout_mode_t timeout_mode
 
i2c_hw_err_event_t actual_hwErr_event
 

Detailed Description

I2C control structure. DO NOT INITIALIZE.

Field Documentation

◆ activation_on_rxi

volatile bool riic_instance_ctrl_t::activation_on_rxi

Tracks whether the transfer is activated on RXI interrupt

◆ activation_on_txi

volatile bool riic_instance_ctrl_t::activation_on_txi

Tracks whether the transfer is activated on TXI interrupt

◆ actual_hwErr_event

i2c_hw_err_event_t riic_instance_ctrl_t::actual_hwErr_event

Holds error event value obtained through hardware

◆ addr_high

uint8_t riic_instance_ctrl_t::addr_high

Holds the first address byte to issue in 10-bit mode

◆ addr_loaded

uint8_t riic_instance_ctrl_t::addr_loaded

Tracks the number of address bytes written to the register

◆ addr_low

uint8_t riic_instance_ctrl_t::addr_low

Holds the last address byte to issue

◆ addr_remain

uint8_t riic_instance_ctrl_t::addr_remain

Tracks the remaining address bytes to transfer

◆ addr_total

uint8_t riic_instance_ctrl_t::addr_total

Holds the total number of address bytes to transfer

◆ address_restarted

volatile bool riic_instance_ctrl_t::address_restarted

Tracks whether the restart condition is send on 10 bit read

◆ dummy_read_completed

volatile bool riic_instance_ctrl_t::dummy_read_completed

Tracks whether the dummy read is performed

◆ err

volatile bool riic_instance_ctrl_t::err

Tracks whether or not an error occurred during processing

◆ loaded

uint32_t riic_instance_ctrl_t::loaded

Tracks the number of data bytes written to the register

◆ p_buff

uint8_t* riic_instance_ctrl_t::p_buff

Holds the data associated with the transfer

◆ read

volatile bool riic_instance_ctrl_t::read

Holds the direction of the data byte transfer

◆ remain

uint32_t riic_instance_ctrl_t::remain

Tracks the remaining data bytes to transfer

◆ resource_lock_tx_rx

volatile bsp_lock_t riic_instance_ctrl_t::resource_lock_tx_rx

Resource lock for transmission/reception

◆ restart

volatile bool riic_instance_ctrl_t::restart

Holds whether or not the restart should be issued when done

◆ restarted

volatile bool riic_instance_ctrl_t::restarted

Tracks whether or not a restart was issued during the previous transfer

◆ timeout_mode

riic_timeout_mode_t riic_instance_ctrl_t::timeout_mode

Holds the timeout mode value. i.e short mode or long mode

◆ total

uint32_t riic_instance_ctrl_t::total

Holds the total number of data bytes to transfer


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