STM32F103xB HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_I2C_Enable (I2C_TypeDef *I2Cx) |
Enable I2C peripheral (PE = 1). | |
__STATIC_INLINE void | LL_I2C_Disable (I2C_TypeDef *I2Cx) |
Disable I2C peripheral (PE = 0). | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabled (I2C_TypeDef *I2Cx) |
Check if the I2C peripheral is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableDMAReq_TX (I2C_TypeDef *I2Cx) |
Enable DMA transmission requests. | |
__STATIC_INLINE void | LL_I2C_DisableDMAReq_TX (I2C_TypeDef *I2Cx) |
Disable DMA transmission requests. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledDMAReq_TX (I2C_TypeDef *I2Cx) |
Check if DMA transmission requests are enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableDMAReq_RX (I2C_TypeDef *I2Cx) |
Enable DMA reception requests. | |
__STATIC_INLINE void | LL_I2C_DisableDMAReq_RX (I2C_TypeDef *I2Cx) |
Disable DMA reception requests. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledDMAReq_RX (I2C_TypeDef *I2Cx) |
Check if DMA reception requests are enabled or disabled. | |
__STATIC_INLINE uint32_t | LL_I2C_DMA_GetRegAddr (I2C_TypeDef *I2Cx) |
Get the data register address used for DMA transfer. | |
__STATIC_INLINE void | LL_I2C_EnableClockStretching (I2C_TypeDef *I2Cx) |
Enable Clock stretching. | |
__STATIC_INLINE void | LL_I2C_DisableClockStretching (I2C_TypeDef *I2Cx) |
Disable Clock stretching. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledClockStretching (I2C_TypeDef *I2Cx) |
Check if Clock stretching is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableGeneralCall (I2C_TypeDef *I2Cx) |
Enable General Call. | |
__STATIC_INLINE void | LL_I2C_DisableGeneralCall (I2C_TypeDef *I2Cx) |
Disable General Call. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledGeneralCall (I2C_TypeDef *I2Cx) |
Check if General Call is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_SetOwnAddress1 (I2C_TypeDef *I2Cx, uint32_t OwnAddress1, uint32_t OwnAddrSize) |
Set the Own Address1. | |
__STATIC_INLINE void | LL_I2C_SetOwnAddress2 (I2C_TypeDef *I2Cx, uint32_t OwnAddress2) |
Set the 7bits Own Address2. | |
__STATIC_INLINE void | LL_I2C_EnableOwnAddress2 (I2C_TypeDef *I2Cx) |
Enable acknowledge on Own Address2 match address. | |
__STATIC_INLINE void | LL_I2C_DisableOwnAddress2 (I2C_TypeDef *I2Cx) |
Disable acknowledge on Own Address2 match address. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledOwnAddress2 (I2C_TypeDef *I2Cx) |
Check if Own Address1 acknowledge is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_SetPeriphClock (I2C_TypeDef *I2Cx, uint32_t PeriphClock) |
Configure the Peripheral clock frequency. | |
__STATIC_INLINE uint32_t | LL_I2C_GetPeriphClock (I2C_TypeDef *I2Cx) |
Get the Peripheral clock frequency. | |
__STATIC_INLINE void | LL_I2C_SetDutyCycle (I2C_TypeDef *I2Cx, uint32_t DutyCycle) |
Configure the Duty cycle (Fast mode only). | |
__STATIC_INLINE uint32_t | LL_I2C_GetDutyCycle (I2C_TypeDef *I2Cx) |
Get the Duty cycle (Fast mode only). | |
__STATIC_INLINE void | LL_I2C_SetClockSpeedMode (I2C_TypeDef *I2Cx, uint32_t ClockSpeedMode) |
Configure the I2C master clock speed mode. | |
__STATIC_INLINE uint32_t | LL_I2C_GetClockSpeedMode (I2C_TypeDef *I2Cx) |
Get the the I2C master speed mode. | |
__STATIC_INLINE void | LL_I2C_SetRiseTime (I2C_TypeDef *I2Cx, uint32_t RiseTime) |
Configure the SCL, SDA rising time. | |
__STATIC_INLINE uint32_t | LL_I2C_GetRiseTime (I2C_TypeDef *I2Cx) |
Get the SCL, SDA rising time. | |
__STATIC_INLINE void | LL_I2C_SetClockPeriod (I2C_TypeDef *I2Cx, uint32_t ClockPeriod) |
Configure the SCL high and low period. | |
__STATIC_INLINE uint32_t | LL_I2C_GetClockPeriod (I2C_TypeDef *I2Cx) |
Get the SCL high and low period. | |
__STATIC_INLINE void | LL_I2C_ConfigSpeed (I2C_TypeDef *I2Cx, uint32_t PeriphClock, uint32_t ClockSpeed, uint32_t DutyCycle) |
Configure the SCL speed. | |
__STATIC_INLINE void | LL_I2C_SetMode (I2C_TypeDef *I2Cx, uint32_t PeripheralMode) |
Configure peripheral mode. | |
__STATIC_INLINE uint32_t | LL_I2C_GetMode (I2C_TypeDef *I2Cx) |
Get peripheral mode. | |
__STATIC_INLINE void | LL_I2C_EnableSMBusAlert (I2C_TypeDef *I2Cx) |
Enable SMBus alert (Host or Device mode) | |
__STATIC_INLINE void | LL_I2C_DisableSMBusAlert (I2C_TypeDef *I2Cx) |
Disable SMBus alert (Host or Device mode) | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusAlert (I2C_TypeDef *I2Cx) |
Check if SMBus alert (Host or Device mode) is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableSMBusPEC (I2C_TypeDef *I2Cx) |
Enable SMBus Packet Error Calculation (PEC). | |
__STATIC_INLINE void | LL_I2C_DisableSMBusPEC (I2C_TypeDef *I2Cx) |
Disable SMBus Packet Error Calculation (PEC). | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusPEC (I2C_TypeDef *I2Cx) |
Check if SMBus Packet Error Calculation (PEC) is enabled or disabled. |
__STATIC_INLINE void LL_I2C_ConfigSpeed | ( | I2C_TypeDef * | I2Cx, |
uint32_t | PeriphClock, | ||
uint32_t | ClockSpeed, | ||
uint32_t | DutyCycle | ||
) |
Configure the SCL speed.
I2Cx | I2C Instance. |
PeriphClock | Peripheral Clock (in Hz) |
ClockSpeed | This parameter must be a value lower than 400kHz (in Hz). |
DutyCycle | This parameter can be one of the following values: |
None |
Definition at line 729 of file stm32f1xx_ll_i2c.h.
References __LL_I2C_FREQ_HZ_TO_MHZ, __LL_I2C_RISE_TIME, LL_I2C_CLOCK_SPEED_FAST_MODE, LL_I2C_CLOCK_SPEED_STANDARD_MODE, and LL_I2C_MAX_SPEED_STANDARD.
Referenced by LL_I2C_Init().
__STATIC_INLINE void LL_I2C_Disable | ( | I2C_TypeDef * | I2Cx | ) |
Disable I2C peripheral (PE = 0).
I2Cx | I2C Instance. |
None |
Definition at line 360 of file stm32f1xx_ll_i2c.h.
Referenced by LL_I2C_Init().
__STATIC_INLINE void LL_I2C_DisableClockStretching | ( | I2C_TypeDef * | I2Cx | ) |
Disable Clock stretching.
I2Cx | I2C Instance. |
None |
Definition at line 473 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableDMAReq_RX | ( | I2C_TypeDef * | I2Cx | ) |
Disable DMA reception requests.
I2Cx | I2C Instance. |
None |
Definition at line 427 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableDMAReq_TX | ( | I2C_TypeDef * | I2Cx | ) |
Disable DMA transmission requests.
I2Cx | I2C Instance. |
None |
Definition at line 394 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableGeneralCall | ( | I2C_TypeDef * | I2Cx | ) |
Disable General Call.
I2Cx | I2C Instance. |
None |
Definition at line 508 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableOwnAddress2 | ( | I2C_TypeDef * | I2Cx | ) |
Disable acknowledge on Own Address2 match address.
I2Cx | I2C Instance. |
None |
Definition at line 572 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableSMBusAlert | ( | I2C_TypeDef * | I2Cx | ) |
Disable SMBus alert (Host or Device mode)
I2Cx | I2C Instance. |
None |
Definition at line 833 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Disable SMBus Packet Error Calculation (PEC).
I2Cx | I2C Instance. |
None |
Definition at line 872 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_DMA_GetRegAddr | ( | I2C_TypeDef * | I2Cx | ) |
Get the data register address used for DMA transfer.
I2Cx | I2C Instance. |
Address | of data register |
Definition at line 449 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_Enable | ( | I2C_TypeDef * | I2Cx | ) |
Enable I2C peripheral (PE = 1).
I2Cx | I2C Instance. |
None |
Definition at line 349 of file stm32f1xx_ll_i2c.h.
Referenced by LL_I2C_Init().
__STATIC_INLINE void LL_I2C_EnableClockStretching | ( | I2C_TypeDef * | I2Cx | ) |
Enable Clock stretching.
I2Cx | I2C Instance. |
None |
Definition at line 461 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableDMAReq_RX | ( | I2C_TypeDef * | I2Cx | ) |
Enable DMA reception requests.
I2Cx | I2C Instance. |
None |
Definition at line 416 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableDMAReq_TX | ( | I2C_TypeDef * | I2Cx | ) |
Enable DMA transmission requests.
I2Cx | I2C Instance. |
None |
Definition at line 383 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableGeneralCall | ( | I2C_TypeDef * | I2Cx | ) |
Enable General Call.
I2Cx | I2C Instance. |
None |
Definition at line 496 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableOwnAddress2 | ( | I2C_TypeDef * | I2Cx | ) |
Enable acknowledge on Own Address2 match address.
I2Cx | I2C Instance. |
None |
Definition at line 561 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableSMBusAlert | ( | I2C_TypeDef * | I2Cx | ) |
Enable SMBus alert (Host or Device mode)
I2Cx | I2C Instance. |
None |
Definition at line 815 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Enable SMBus Packet Error Calculation (PEC).
I2Cx | I2C Instance. |
None |
Definition at line 859 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetClockPeriod | ( | I2C_TypeDef * | I2Cx | ) |
Get the SCL high and low period.
I2Cx | I2C Instance. |
Value | between Min_Data=0x004 and Max_Data=0xFFF, except in FAST DUTY mode where Min_Data=0x001. |
Definition at line 708 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetClockSpeedMode | ( | I2C_TypeDef * | I2Cx | ) |
Get the the I2C master speed mode.
I2Cx | I2C Instance. |
Returned | value can be one of the following values: |
Definition at line 660 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetDutyCycle | ( | I2C_TypeDef * | I2Cx | ) |
Get the Duty cycle (Fast mode only).
I2Cx | I2C Instance. |
Returned | value can be one of the following values: |
Definition at line 633 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetMode | ( | I2C_TypeDef * | I2Cx | ) |
Get peripheral mode.
I2Cx | I2C Instance. |
Returned | value can be one of the following values: |
Definition at line 797 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetPeriphClock | ( | I2C_TypeDef * | I2Cx | ) |
Get the Peripheral clock frequency.
I2Cx | I2C Instance. |
Value | of Peripheral Clock (in Hz) |
Definition at line 606 of file stm32f1xx_ll_i2c.h.
References __LL_I2C_FREQ_MHZ_TO_HZ.
__STATIC_INLINE uint32_t LL_I2C_GetRiseTime | ( | I2C_TypeDef * | I2Cx | ) |
Get the SCL, SDA rising time.
I2Cx | I2C Instance. |
Value | between Min_Data=0x02 and Max_Data=0x3F |
Definition at line 684 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabled | ( | I2C_TypeDef * | I2Cx | ) |
Check if the I2C peripheral is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 371 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledClockStretching | ( | I2C_TypeDef * | I2Cx | ) |
Check if Clock stretching is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 484 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_RX | ( | I2C_TypeDef * | I2Cx | ) |
Check if DMA reception requests are enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 438 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_TX | ( | I2C_TypeDef * | I2Cx | ) |
Check if DMA transmission requests are enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 405 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledGeneralCall | ( | I2C_TypeDef * | I2Cx | ) |
Check if General Call is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 519 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledOwnAddress2 | ( | I2C_TypeDef * | I2Cx | ) |
Check if Own Address1 acknowledge is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 583 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusAlert | ( | I2C_TypeDef * | I2Cx | ) |
Check if SMBus alert (Host or Device mode) is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 846 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Check if SMBus Packet Error Calculation (PEC) is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 885 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_SetClockPeriod | ( | I2C_TypeDef * | I2Cx, |
uint32_t | ClockPeriod | ||
) |
Configure the SCL high and low period.
I2Cx | I2C Instance. |
ClockPeriod | This parameter must be a value between Min_Data=0x004 and Max_Data=0xFFF, except in FAST DUTY mode where Min_Data=0x001. |
None |
Definition at line 697 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_SetClockSpeedMode | ( | I2C_TypeDef * | I2Cx, |
uint32_t | ClockSpeedMode | ||
) |
Configure the I2C master clock speed mode.
I2Cx | I2C Instance. |
ClockSpeedMode | This parameter can be one of the following values: |
None |
Definition at line 647 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_SetDutyCycle | ( | I2C_TypeDef * | I2Cx, |
uint32_t | DutyCycle | ||
) |
Configure the Duty cycle (Fast mode only).
I2Cx | I2C Instance. |
DutyCycle | This parameter can be one of the following values: |
None |
Definition at line 620 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_SetMode | ( | I2C_TypeDef * | I2Cx, |
uint32_t | PeripheralMode | ||
) |
Configure peripheral mode.
I2Cx | I2C Instance. |
PeripheralMode | This parameter can be one of the following values: |
None |
Definition at line 778 of file stm32f1xx_ll_i2c.h.
Referenced by LL_I2C_Init().
__STATIC_INLINE void LL_I2C_SetOwnAddress1 | ( | I2C_TypeDef * | I2Cx, |
uint32_t | OwnAddress1, | ||
uint32_t | OwnAddrSize | ||
) |
Set the Own Address1.
I2Cx | I2C Instance. |
OwnAddress1 | This parameter must be a value between Min_Data=0 and Max_Data=0x3FF. |
OwnAddrSize | This parameter can be one of the following values: |
None |
Definition at line 537 of file stm32f1xx_ll_i2c.h.
Referenced by LL_I2C_Init().
__STATIC_INLINE void LL_I2C_SetOwnAddress2 | ( | I2C_TypeDef * | I2Cx, |
uint32_t | OwnAddress2 | ||
) |
Set the 7bits Own Address2.
I2Cx | I2C Instance. |
OwnAddress2 | This parameter must be a value between Min_Data=0 and Max_Data=0x7F. |
None |
Definition at line 550 of file stm32f1xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_SetPeriphClock | ( | I2C_TypeDef * | I2Cx, |
uint32_t | PeriphClock | ||
) |
Configure the Peripheral clock frequency.
I2Cx | I2C Instance. |
PeriphClock | Peripheral Clock (in Hz) |
None |
Definition at line 595 of file stm32f1xx_ll_i2c.h.
References __LL_I2C_FREQ_HZ_TO_MHZ.
__STATIC_INLINE void LL_I2C_SetRiseTime | ( | I2C_TypeDef * | I2Cx, |
uint32_t | RiseTime | ||
) |
Configure the SCL, SDA rising time.
I2Cx | I2C Instance. |
RiseTime | This parameter must be a value between Min_Data=0x02 and Max_Data=0x3F. |
None |
Definition at line 673 of file stm32f1xx_ll_i2c.h.