mikroSDK Reference Manual
|
I2C Master initialization configuration structure, consisted of the following fields : More...
Data Fields | |
uint8_t | addr |
pin_name_t | sda |
pin_name_t | scl |
uint32_t | speed |
uint16_t | timeout_pass_count |
User needs to specify values herein.
Example
uint8_t i2c_master_config_t::addr |
Slave address.
pin_name_t i2c_master_config_t::sda |
SDA pin.
pin_name_t i2c_master_config_t::scl |
SCL pin.
uint32_t i2c_master_config_t::speed |
I2C transmission rate.
uint16_t i2c_master_config_t::timeout_pass_count |
I2C timeout value ( number of retries for each operation )