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