Defines the example structure. More...
#include <platform/drivers/inc/lpi2c_driver.h>
Data Fields | |
uint16_t | slaveAddress |
bool | is10bitAddr |
lpi2c_mode_t | operatingMode |
uint32_t | baudRate |
lpi2c_transfer_type_t | transferType |
uint8_t | dmaChannel |
i2c_master_callback_t | masterCallback |
void * | callbackParam |
Defines the example structure.
This structure is used as an example.
Master configuration structure
This structure is used to provide configuration parameters for the LPI2C master at initialization time. Implements : lpi2c_master_user_config_t_Class
Definition at line 114 of file lpi2c_driver.h.
uint32_t baudRate |
The baud rate in hertz to use with current slave device
Definition at line 119 of file lpi2c_driver.h.
void* callbackParam |
Parameter for the master callback function
Definition at line 130 of file lpi2c_driver.h.
uint8_t dmaChannel |
Channel number for DMA channel. If DMA mode isn't used this field will be ignored.
Definition at line 125 of file lpi2c_driver.h.
bool is10bitAddr |
Selects 7-bit or 10-bit slave address
Definition at line 117 of file lpi2c_driver.h.
i2c_master_callback_t masterCallback |
Master callback function. Note that this function will be called from the interrupt service routine at the end of a transfer, so its execution time should be as small as possible. It can be NULL if you want to check manually the status of the transfer.
Definition at line 126 of file lpi2c_driver.h.
lpi2c_mode_t operatingMode |
I2C Operating mode
Definition at line 118 of file lpi2c_driver.h.
uint16_t slaveAddress |
Slave address, 7-bit or 10-bit
Definition at line 116 of file lpi2c_driver.h.
lpi2c_transfer_type_t transferType |
Type of LPI2C transfer
Definition at line 124 of file lpi2c_driver.h.