theCore C++ embedded framework
ecl::i2c_config< dev, mode, clock_speed, operation_mode, duty_cycle, own_address, ack, ack_addr > Struct Template Reference

I2C configuration struct. More...

#include </home/travis/build/forGGe/theCore/platform/stm32/export/aux/i2c_bus.hpp>

Static Public Attributes

static constexpr I2C_InitTypeDef m_init_obj
 
static constexpr i2c_device m_dev = dev
 
static constexpr i2c_mode m_mode = mode
 

Detailed Description

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
devDevice for which configuration is provided.
modeMode of event handling.
clock_speedSpecifies the clock frequency in Hz.
operation_modeI2C operation mode - pure I2C or SMBus.
duty_cycleSpecifies the I2C fast mode duty cycle.
own_addressSpecifies the first device own address. This parameter can be a 7-bit or 10-bit address
ackEnables or disables the acknowledgement.
ack_addrSpecifies if 7-bit or 10-bit address is acknowledged

Field Documentation

◆ 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: