Defines the configuration structure for I2C master Implements : i2c_master_t_Class. More...

#include <platform/pal/i2c/inc/i2c_pal.h>

Data Fields

uint16_t slaveAddress
 
bool is10bitAddr
 
uint32_t baudRate
 
uint8_t dmaChannel1
 
uint8_t dmaChannel2
 
i2c_pal_transfer_type_t transferType
 
i2c_operating_mode_t operatingMode
 
i2c_master_callback_t callback
 
void * callbackParam
 
void * extension
 

Detailed Description

Defines the configuration structure for I2C master Implements : i2c_master_t_Class.

Definition at line 104 of file i2c_pal.h.

Field Documentation

uint32_t baudRate

Baud rate in hertz

Definition at line 108 of file i2c_pal.h.

User 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 it is not needed

Definition at line 114 of file i2c_pal.h.

void* callbackParam

Parameter for the callback function

Definition at line 118 of file i2c_pal.h.

uint8_t dmaChannel1

DMA channel number. Only used in DMA mode

Definition at line 109 of file i2c_pal.h.

uint8_t dmaChannel2

DMA channel used only by Flexio I2C which needs two DMA channels, one for receiving and one for transmitting.

Definition at line 110 of file i2c_pal.h.

void* extension

This field will be used to add extra settings to the basic configuration like FlexIO pins

Definition at line 119 of file i2c_pal.h.

bool is10bitAddr

Selects 7-bit or 10-bit slave address

Definition at line 107 of file i2c_pal.h.

i2c_operating_mode_t operatingMode

I2C Operating mode

Definition at line 113 of file i2c_pal.h.

uint16_t slaveAddress

Slave address, 7-bit or 10-bit

Definition at line 106 of file i2c_pal.h.

Type of I2C transfer (interrupts or DMA)

Definition at line 112 of file i2c_pal.h.


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