Defines the configuration structure for I2C slave Implements: i2c_slave_t_Class. More...

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

Data Fields

uint16_t slaveAddress
 
bool is10bitAddr
 
bool slaveListening
 
i2c_operating_mode_t operatingMode
 
i2c_pal_transfer_type_t transferType
 
uint8_t dmaChannel
 
i2c_slave_callback_t callback
 
void * callbackParam
 

Detailed Description

Defines the configuration structure for I2C slave Implements: i2c_slave_t_Class.

Definition at line 127 of file i2c_pal.h.

Field Documentation

Callback function.

Definition at line 136 of file i2c_pal.h.

void* callbackParam

Parameter for the slave callback function

Definition at line 137 of file i2c_pal.h.

uint8_t dmaChannel

Channel number for DMA channel. If DMA mode is not supported or is not used this field will be ignored.

Definition at line 134 of file i2c_pal.h.

bool is10bitAddr

Selects 7-bit or 10-bit slave address

Definition at line 130 of file i2c_pal.h.

i2c_operating_mode_t operatingMode

I2C Operating mode

Definition at line 132 of file i2c_pal.h.

uint16_t slaveAddress

Slave address, 7-bit or 10-bit

Definition at line 129 of file i2c_pal.h.

bool slaveListening

Slave mode (always listening or on demand only)

Definition at line 131 of file i2c_pal.h.

Type of the I2C transfer

Definition at line 133 of file i2c_pal.h.


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