![]() |
Synergy Software Package User's Manual
|
#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 |
I2C control structure. DO NOT INITIALIZE.
| 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
| volatile bool sci_i2c_instance_ctrl_t::activation_on_txi |
< Tracks whether the transfer is activated on TXI interrupt
| uint8_t sci_i2c_instance_ctrl_t::addr_high |
Holds the first address byte to issue in 10-bit mode
| uint8_t sci_i2c_instance_ctrl_t::addr_loaded |
Tracks the number of address bytes written to the register
| uint8_t sci_i2c_instance_ctrl_t::addr_low |
Holds the last address byte to issue
| uint8_t sci_i2c_instance_ctrl_t::addr_remain |
Tracks the remaining address bytes to transfer
| uint8_t sci_i2c_instance_ctrl_t::addr_total |
Holds the total number of address bytes to transfer
| volatile bool sci_i2c_instance_ctrl_t::err |
Tracks whether or not an error occurred during processing
| uint32_t sci_i2c_instance_ctrl_t::loaded |
Tracks the number of data bytes written to the register
| uint8_t* sci_i2c_instance_ctrl_t::p_buff |
Holds the data associated with the transfer
| 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
| volatile bool sci_i2c_instance_ctrl_t::read |
Holds the direction of the data byte transfer
| uint32_t sci_i2c_instance_ctrl_t::remain |
Tracks the remaining data bytes to transfer
| volatile bool sci_i2c_instance_ctrl_t::restart |
Holds whether or not the restart should be issued when done
| volatile bool sci_i2c_instance_ctrl_t::restarted |
Tracks whether or not a restart was issued during the previous transfer
| uint32_t sci_i2c_instance_ctrl_t::total |
Holds the total number of data bytes to transfer
| volatile bool sci_i2c_instance_ctrl_t::transaction_completed |
Tracks if the transaction started earlier was completed