SmartSnippets DA1459x SDK
Data Fields
i2c_config Struct Reference

I2C configuration. More...

#include <hw_i2c.h>

Data Fields

struct {
   uint16_t   ss_hcnt
 
   uint16_t   ss_lcnt
 
   uint16_t   fs_hcnt
 
   uint16_t   fs_lcnt
 
   uint16_t   hs_hcnt
 
   uint16_t   hs_lcnt
 
clock_cfg
 
HW_I2C_SPEED speed
 
HW_I2C_MODE mode
 
HW_I2C_ADDRESSING addr_mode
 
uint16_t address
 
hw_i2c_event_cb event_cb
 
hw_i2c_dma_prio_t dma_prio
 

Detailed Description

I2C configuration.

Field Documentation

◆ addr_mode

HW_I2C_ADDRESSING i2c_config::addr_mode

addressing mode

◆ address

uint16_t i2c_config::address

target slave address in master mode or controller address in slave mode

◆ clock_cfg

struct { ... } i2c_config::clock_cfg

I2C clock (SCL) settings, refer to datasheet for details. Set to 0 for default values to be used.

◆ dma_prio

hw_i2c_dma_prio_t i2c_config::dma_prio

DMA channel priority

◆ event_cb

hw_i2c_event_cb i2c_config::event_cb

slave event callback (only valid in slave mode)

◆ fs_hcnt

uint16_t i2c_config::fs_hcnt

fast speed I2C clock (SCL) high count

◆ fs_lcnt

uint16_t i2c_config::fs_lcnt

fast speed I2C clock (SCL) low count

◆ hs_hcnt

uint16_t i2c_config::hs_hcnt

high speed I2C clock (SCL) high count

◆ hs_lcnt

uint16_t i2c_config::hs_lcnt

high speed I2C clock (SCL) low count

◆ mode

HW_I2C_MODE i2c_config::mode

mode of operation

◆ speed

HW_I2C_SPEED i2c_config::speed

bus speed

◆ ss_hcnt

uint16_t i2c_config::ss_hcnt

standard speed I2C clock (SCL) high count

◆ ss_lcnt

uint16_t i2c_config::ss_lcnt

standard speed I2C clock (SCL) low count


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