![]() |
Synergy Software Package User's Manual
|
#include <r_riic_slave.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 | eri_irq |
| Error IRQ number. | |
| IRQn_Type | tei_irq |
| Transmit end IRQ number. | |
| uint8_t * | p_buff |
| uint32_t | total |
| uint32_t | remain |
| uint32_t | loaded |
| uint32_t | transaction_count |
| volatile bool | notify_request |
| volatile bool | read |
| volatile bool | err |
| volatile bool | slave_busy |
| volatile bool | start_interrupt_enabled |
I2C control structure. DO NOT INITIALIZE.
| volatile bool riic_slave_instance_ctrl_t::err |
Tracks whether or not an error occurred during processing
| uint32_t riic_slave_instance_ctrl_t::loaded |
Tracks the number of data bytes written to the register
| volatile bool riic_slave_instance_ctrl_t::notify_request |
Track whether the master request is notified to the application
| uint8_t* riic_slave_instance_ctrl_t::p_buff |
Holds the data associated with the transfer
| volatile bool riic_slave_instance_ctrl_t::read |
Holds the direction of the data byte transfer
| uint32_t riic_slave_instance_ctrl_t::remain |
Tracks the remaining data bytes to transfer
| volatile bool riic_slave_instance_ctrl_t::slave_busy |
Tracks if the slave is busy performing a transaction
| volatile bool riic_slave_instance_ctrl_t::start_interrupt_enabled |
<< Tracks whether a dummy read is issued on the first RX < Tracks whether the start interrupt is enabled
| uint32_t riic_slave_instance_ctrl_t::total |
Holds the total number of data bytes to transfer
| uint32_t riic_slave_instance_ctrl_t::transaction_count |
Tracks the actual number of transactions