58 LL I2C Generic Driver
58.1 I2C Firmware driver registers structures
58.1.1 LL_I2C_InitTypeDef
Data Fields
uint32_t PeripheralMode
uint32_t ClockSpeed
uint32_t DutyCycle
uint32_t OwnAddress1
uint32_t TypeAcknowledge
uint32_t OwnAddrSize
Field Documentation
uint32_t LL_I2C_InitTypeDef::PeripheralMode
Specifies the peripheral mode. This parameter can be a value of
I2C_LL_EC_PERIPHERAL_MODEThis feature can be modified afterwards using
unitary function LL_I2C_SetMode().
uint32_t LL_I2C_InitTypeDef::ClockSpeed
Specifies the clock frequency. This parameter must be set to a value lower than
400kHz (in Hz)This feature can be modified afterwards using unitary function
LL_I2C_SetClockPeriod() or LL_I2C_SetDutyCycle() or
LL_I2C_SetClockSpeedMode() or LL_I2C_ConfigSpeed().
uint32_t LL_I2C_InitTypeDef::DutyCycle
Specifies the I2C fast mode duty cycle. This parameter can be a value of
I2C_LL_EC_DUTYCYCLEThis feature can be modified afterwards using unitary
function LL_I2C_SetDutyCycle().
uint32_t LL_I2C_InitTypeDef::OwnAddress1
Specifies the device own address 1. This parameter must be a value between
Min_Data = 0x00 and Max_Data = 0x3FFThis feature can be modified afterwards
using unitary function LL_I2C_SetOwnAddress1().
uint32_t LL_I2C_InitTypeDef::TypeAcknowledge
Specifies the ACKnowledge or Non ACKnowledge condition after the address receive
match code or next received byte. This parameter can be a value of
I2C_LL_EC_I2C_ACKNOWLEDGEThis feature can be modified afterwards using
unitary function LL_I2C_AcknowledgeNextData().
uint32_t LL_I2C_InitTypeDef::OwnAddrSize
Specifies the device own address 1 size (7-bit or 10-bit). This parameter can be a
value of I2C_LL_EC_OWNADDRESS1This feature can be modified afterwards using
unitary function LL_I2C_SetOwnAddress1().
58.2 I2C Firmware driver API description
58.2.1 Detailed description of functions
LL_I2C_Enable
__STATIC_INLINE void LL_I2C_Enable (I2C_TypeDef * I2Cx)
Enable I2C peripheral (PE = 1).