I2C configuration struct.
More...
#include </home/travis/build/forGGe/theCore/platform/stm32/export/aux/i2c_bus.hpp>
template<i2c_device dev, i2c_mode mode, uint32_t clock_speed, uint16_t operation_mode, uint16_t duty_cycle, uint16_t own_address, uint16_t ack, uint16_t ack_addr>
struct ecl::i2c_config< dev, mode, clock_speed, operation_mode, duty_cycle, own_address, ack, ack_addr >
I2C configuration struct.
- Template Parameters
-
dev | Device for which configuration is provided. |
mode | Mode of event handling. |
clock_speed | Specifies the clock frequency in Hz. |
operation_mode | I2C operation mode - pure I2C or SMBus. |
duty_cycle | Specifies the I2C fast mode duty cycle. |
own_address | Specifies the first device own address. This parameter can be a 7-bit or 10-bit address |
ack | Enables or disables the acknowledgement. |
ack_addr | Specifies if 7-bit or 10-bit address is acknowledged |
◆ m_init_obj
template<i2c_device dev, i2c_mode mode, uint32_t clock_speed, uint16_t operation_mode, uint16_t duty_cycle, uint16_t own_address, uint16_t ack, uint16_t ack_addr>
constexpr I2C_InitTypeDef ecl::i2c_config< dev, mode, clock_speed, operation_mode, duty_cycle, own_address, ack, ack_addr >::m_init_obj |
|
static |
Initial value:= {
clock_speed,
operation_mode,
duty_cycle,
own_address,
ack,
ack_addr
}
◆ m_dev
template<i2c_device dev, i2c_mode mode, uint32_t clock_speed, uint16_t operation_mode, uint16_t duty_cycle, uint16_t own_address, uint16_t ack, uint16_t ack_addr>
constexpr i2c_device ecl::i2c_config< dev, mode, clock_speed, operation_mode, duty_cycle, own_address, ack, ack_addr >::m_dev = dev |
|
static |
◆ m_mode
template<i2c_device dev, i2c_mode mode, uint32_t clock_speed, uint16_t operation_mode, uint16_t duty_cycle, uint16_t own_address, uint16_t ack, uint16_t ack_addr>
constexpr i2c_mode ecl::i2c_config< dev, mode, clock_speed, operation_mode, duty_cycle, own_address, ack, ack_addr >::m_mode = mode |
|
static |
The documentation for this struct was generated from the following file: