Synergy Software Package User's Manual
sci_i2c_instance_ctrl_t Struct Reference

#include <r_sci_i2c.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.
 
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.
 
IRQn_Type rxi_irq
 Receive IRQ number.
 
IRQn_Type txi_irq
 Transmit IRQ number.
 
IRQn_Type tei_irq
 Transmit end 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 transaction_completed
 
volatile bool activation_on_rxi
 
volatile bool activation_on_txi
 

Detailed Description

I2C control structure. DO NOT INITIALIZE.

Field Documentation

◆ activation_on_rxi

volatile bool sci_i2c_instance_ctrl_t::activation_on_rxi

<< Tracks whether a dummy read is issued on the first RX < Tracks whether the transfer is activated on RXI interrupt

◆ activation_on_txi

volatile bool sci_i2c_instance_ctrl_t::activation_on_txi

< Tracks whether the transfer is activated on TXI interrupt

◆ addr_high

uint8_t sci_i2c_instance_ctrl_t::addr_high

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

◆ addr_loaded

uint8_t sci_i2c_instance_ctrl_t::addr_loaded

Tracks the number of address bytes written to the register

◆ addr_low

uint8_t sci_i2c_instance_ctrl_t::addr_low

Holds the last address byte to issue

◆ addr_remain

uint8_t sci_i2c_instance_ctrl_t::addr_remain

Tracks the remaining address bytes to transfer

◆ addr_total

uint8_t sci_i2c_instance_ctrl_t::addr_total

Holds the total number of address bytes to transfer

◆ err

volatile bool sci_i2c_instance_ctrl_t::err

Tracks whether or not an error occurred during processing

◆ loaded

uint32_t sci_i2c_instance_ctrl_t::loaded

Tracks the number of data bytes written to the register

◆ p_buff

uint8_t* sci_i2c_instance_ctrl_t::p_buff

Holds the data associated with the transfer

◆ p_transfer_tx

transfer_instance_t const* sci_i2c_instance_ctrl_t::p_transfer_tx

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

DTC/DMA support

◆ read

volatile bool sci_i2c_instance_ctrl_t::read

Holds the direction of the data byte transfer

◆ remain

uint32_t sci_i2c_instance_ctrl_t::remain

Tracks the remaining data bytes to transfer

◆ restart

volatile bool sci_i2c_instance_ctrl_t::restart

Holds whether or not the restart should be issued when done

◆ restarted

volatile bool sci_i2c_instance_ctrl_t::restarted

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

◆ total

uint32_t sci_i2c_instance_ctrl_t::total

Holds the total number of data bytes to transfer

◆ transaction_completed

volatile bool sci_i2c_instance_ctrl_t::transaction_completed

Tracks if the transaction started earlier was completed


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