PMSIS API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pi_i2c_conf_t Struct Reference

I2C master configuration structure. More...

Data Fields

pi_device_e device
 
uint8_t itf
 
uint16_t cs
 
int8_t is_10_bits
 
uint16_t wait_cycles
 
uint32_t max_baudrate
 

Description

This structure is used to pass the desired I2C configuration to the runtime when opening a device.

Field Documentation

uint16_t pi_i2c_conf_t::cs
                          i2c slave address (7 or 10 bits), the

runtime will take care of the LSB of read and write.

pi_device_e pi_i2c_conf_t::device
int8_t pi_i2c_conf_t::is_10_bits
uint8_t pi_i2c_conf_t::itf
                       Specifies on which I2C interface the device is

connected.

uint32_t pi_i2c_conf_t::max_baudrate
                        Maximum baudrate for the I2C bitstream which

can be used with the opened device .

uint16_t pi_i2c_conf_t::wait_cycles