|
SmartSnippets DA1459x SDK
|
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 |
I2C configuration.
| HW_I2C_ADDRESSING i2c_config::addr_mode |
addressing mode
| uint16_t i2c_config::address |
target slave address in master mode or controller address in slave mode
| struct { ... } i2c_config::clock_cfg |
I2C clock (SCL) settings, refer to datasheet for details. Set to 0 for default values to be used.
| hw_i2c_dma_prio_t i2c_config::dma_prio |
DMA channel priority
| hw_i2c_event_cb i2c_config::event_cb |
slave event callback (only valid in slave mode)
| uint16_t i2c_config::fs_hcnt |
fast speed I2C clock (SCL) high count
| uint16_t i2c_config::fs_lcnt |
fast speed I2C clock (SCL) low count
| uint16_t i2c_config::hs_hcnt |
high speed I2C clock (SCL) high count
| uint16_t i2c_config::hs_lcnt |
high speed I2C clock (SCL) low count
| HW_I2C_MODE i2c_config::mode |
mode of operation
| HW_I2C_SPEED i2c_config::speed |
bus speed
| uint16_t i2c_config::ss_hcnt |
standard speed I2C clock (SCL) high count
| uint16_t i2c_config::ss_lcnt |
standard speed I2C clock (SCL) low count
1.8.16