Slave configuration structure. More...
#include <platform/drivers/inc/lpi2c_driver.h>
Data Fields | |
uint16_t | slaveAddress |
bool | is10bitAddr |
lpi2c_mode_t | operatingMode |
bool | slaveListening |
lpi2c_transfer_type_t | transferType |
uint8_t | dmaChannel |
i2c_slave_callback_t | slaveCallback |
void * | callbackParam |
Slave configuration structure.
This structure is used to provide configuration parameters for the LPI2C slave at initialization time. Implements : lpi2c_slave_user_config_t_Class
Definition at line 139 of file lpi2c_driver.h.
void* callbackParam |
Parameter for the slave callback function
Definition at line 152 of file lpi2c_driver.h.
uint8_t dmaChannel |
Channel number for DMA rx channel. If DMA mode isn't used this field will be ignored.
Definition at line 146 of file lpi2c_driver.h.
bool is10bitAddr |
Selects 7-bit or 10-bit slave address
Definition at line 142 of file lpi2c_driver.h.
lpi2c_mode_t operatingMode |
I2C Operating mode
Definition at line 143 of file lpi2c_driver.h.
uint16_t slaveAddress |
Slave address, 7-bit or 10-bit
Definition at line 141 of file lpi2c_driver.h.
i2c_slave_callback_t slaveCallback |
Slave callback function. Note that this function will be called from the interrupt service routine, so its execution time should be as small as possible. It can be NULL if the slave is not in listening mode (slaveListening = false)
Definition at line 147 of file lpi2c_driver.h.
bool slaveListening |
Slave mode (always listening or on demand only)
Definition at line 144 of file lpi2c_driver.h.
lpi2c_transfer_type_t transferType |
Type of LPI2C transfer
Definition at line 145 of file lpi2c_driver.h.