|
Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
I2C Master HAL init configuration structure, consisted of the following fields : More...
#include <baremetal/mikrosdk-lib/hal/include/hal_i2c_master.h>
Public Attributes | |
| uint8_t | addr |
| Slave address. More... | |
| hal_pin_name_t | sda |
| SDA pin. More... | |
| hal_pin_name_t | scl |
| SCL pin. More... | |
| uint32_t | speed |
| I2C transmission rate. More... | |
| uint16_t | timeout_pass_count |
| I2C timeout value ( number of retries for each operation ). More... | |
I2C Master HAL init configuration structure, consisted of the following fields :
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::scl |
SCL pin.
| hal_pin_name_t hal_i2c_master_config_t::sda |
SDA 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.