S32 SDK
lpi2c_master_user_config_t Struct Reference

Master configuration structure. More...

#include <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
 
lpi2c_master_callback_t masterCallback
 
void * callbackParam
 

Detailed Description

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 132 of file lpi2c_driver.h.

Field Documentation

uint32_t baudRate

The baud rate in hertz to use with current slave device

Definition at line 137 of file lpi2c_driver.h.

void* callbackParam

Parameter for the master callback function

Definition at line 148 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 143 of file lpi2c_driver.h.

bool is10bitAddr

Selects 7-bit or 10-bit slave address

Definition at line 135 of file lpi2c_driver.h.

lpi2c_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 144 of file lpi2c_driver.h.

lpi2c_mode_t operatingMode

I2C Operating mode

Definition at line 136 of file lpi2c_driver.h.

uint16_t slaveAddress

Slave address, 7-bit or 10-bit

Definition at line 134 of file lpi2c_driver.h.

lpi2c_transfer_type_t transferType

Type of LPI2C transfer

Definition at line 142 of file lpi2c_driver.h.


The documentation for this struct was generated from the following file: