![]() |
S32 SDK
|
Slave configuration structure. More...
#include <lpi2c_driver.h>
Data Fields | |
uint16_t | slaveAddress |
bool | is10bitAddr |
lpi2c_mode_t | operatingMode |
bool | slaveListening |
lpi2c_transfer_type_t | transferType |
uint8_t | dmaChannel |
lpi2c_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 157 of file lpi2c_driver.h.
void* callbackParam |
Parameter for the slave callback function
Definition at line 170 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 164 of file lpi2c_driver.h.
bool is10bitAddr |
Selects 7-bit or 10-bit slave address
Definition at line 160 of file lpi2c_driver.h.
lpi2c_mode_t operatingMode |
I2C Operating mode
Definition at line 161 of file lpi2c_driver.h.
uint16_t slaveAddress |
Slave address, 7-bit or 10-bit
Definition at line 159 of file lpi2c_driver.h.
lpi2c_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 165 of file lpi2c_driver.h.
bool slaveListening |
Slave mode (always listening or on demand only)
Definition at line 162 of file lpi2c_driver.h.
lpi2c_transfer_type_t transferType |
Type of LPI2C transfer
Definition at line 163 of file lpi2c_driver.h.