|
Internal Interface Wrap
API reference
|
Platform-agnostic I2C bus configuration for STM32. Users pass their CubeMX-generated I2C_HandleTypeDef* here. More...
#include <StmTypes.h>
Public Member Functions | |
| hf_i2c_bus_config_t () noexcept | |
| hf_i2c_bus_config_t (I2C_HandleTypeDef *handle, hf_u32_t timeout_ms=1000, bool dma=false) noexcept | |
Public Attributes | |
| I2C_HandleTypeDef * | hal_handle |
| Pointer to CubeMX-generated I2C handle. | |
| hf_u32_t | default_timeout_ms |
| Default timeout for all operations (ms) | |
| bool | use_dma |
| Use DMA transfers when available. | |
Platform-agnostic I2C bus configuration for STM32. Users pass their CubeMX-generated I2C_HandleTypeDef* here.
|
inlinenoexcept |
|
inlineexplicitnoexcept |
| hf_u32_t hf_i2c_bus_config_t::default_timeout_ms |
Default timeout for all operations (ms)
| I2C_HandleTypeDef* hf_i2c_bus_config_t::hal_handle |
Pointer to CubeMX-generated I2C handle.
| bool hf_i2c_bus_config_t::use_dma |
Use DMA transfers when available.