STM32F4xx_HAL_Driver
1.8.3
|
Header file of FMPI2C LL module. More...
Go to the source code of this file.
Data Structures | |
struct | LL_FMPI2C_InitTypeDef |
Functions | |
__STATIC_INLINE void | LL_FMPI2C_Enable (FMPI2C_TypeDef *FMPI2Cx) |
Enable FMPI2C peripheral (PE = 1). @rmtoll CR1 PE LL_FMPI2C_Enable. More... | |
__STATIC_INLINE void | LL_FMPI2C_Disable (FMPI2C_TypeDef *FMPI2Cx) |
Disable FMPI2C peripheral (PE = 0). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabled (const FMPI2C_TypeDef *FMPI2Cx) |
Check if the FMPI2C peripheral is enabled or disabled. @rmtoll CR1 PE LL_FMPI2C_IsEnabled. More... | |
__STATIC_INLINE void | LL_FMPI2C_ConfigFilters (FMPI2C_TypeDef *FMPI2Cx, uint32_t AnalogFilter, uint32_t DigitalFilter) |
Configure Noise Filters (Analog and Digital). More... | |
__STATIC_INLINE void | LL_FMPI2C_SetDigitalFilter (FMPI2C_TypeDef *FMPI2Cx, uint32_t DigitalFilter) |
Configure Digital Noise Filter. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetDigitalFilter (const FMPI2C_TypeDef *FMPI2Cx) |
Get the current Digital Noise Filter configuration. @rmtoll CR1 DNF LL_FMPI2C_GetDigitalFilter. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableAnalogFilter (FMPI2C_TypeDef *FMPI2Cx) |
Enable Analog Noise Filter. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableAnalogFilter (FMPI2C_TypeDef *FMPI2Cx) |
Disable Analog Noise Filter. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledAnalogFilter (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Analog Noise Filter is enabled or disabled. @rmtoll CR1 ANFOFF LL_FMPI2C_IsEnabledAnalogFilter. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableDMAReq_TX (FMPI2C_TypeDef *FMPI2Cx) |
Enable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_EnableDMAReq_TX. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableDMAReq_TX (FMPI2C_TypeDef *FMPI2Cx) |
Disable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_DisableDMAReq_TX. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledDMAReq_TX (const FMPI2C_TypeDef *FMPI2Cx) |
Check if DMA transmission requests are enabled or disabled. @rmtoll CR1 TXDMAEN LL_FMPI2C_IsEnabledDMAReq_TX. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableDMAReq_RX (FMPI2C_TypeDef *FMPI2Cx) |
Enable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_EnableDMAReq_RX. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableDMAReq_RX (FMPI2C_TypeDef *FMPI2Cx) |
Disable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_DisableDMAReq_RX. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledDMAReq_RX (const FMPI2C_TypeDef *FMPI2Cx) |
Check if DMA reception requests are enabled or disabled. @rmtoll CR1 RXDMAEN LL_FMPI2C_IsEnabledDMAReq_RX. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_DMA_GetRegAddr (const FMPI2C_TypeDef *FMPI2Cx, uint32_t Direction) |
Get the data register address used for DMA transfer @rmtoll TXDR TXDATA LL_FMPI2C_DMA_GetRegAddr RXDR RXDATA LL_FMPI2C_DMA_GetRegAddr. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableClockStretching (FMPI2C_TypeDef *FMPI2Cx) |
Enable Clock stretching. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableClockStretching (FMPI2C_TypeDef *FMPI2Cx) |
Disable Clock stretching. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledClockStretching (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Clock stretching is enabled or disabled. @rmtoll CR1 NOSTRETCH LL_FMPI2C_IsEnabledClockStretching. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableSlaveByteControl (FMPI2C_TypeDef *FMPI2Cx) |
Enable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_EnableSlaveByteControl. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableSlaveByteControl (FMPI2C_TypeDef *FMPI2Cx) |
Disable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_DisableSlaveByteControl. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledSlaveByteControl (const FMPI2C_TypeDef *FMPI2Cx) |
Check if hardware byte control in slave mode is enabled or disabled. @rmtoll CR1 SBC LL_FMPI2C_IsEnabledSlaveByteControl. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableGeneralCall (FMPI2C_TypeDef *FMPI2Cx) |
Enable General Call. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableGeneralCall (FMPI2C_TypeDef *FMPI2Cx) |
Disable General Call. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledGeneralCall (const FMPI2C_TypeDef *FMPI2Cx) |
Check if General Call is enabled or disabled. @rmtoll CR1 GCEN LL_FMPI2C_IsEnabledGeneralCall. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetMasterAddressingMode (FMPI2C_TypeDef *FMPI2Cx, uint32_t AddressingMode) |
Configure the Master to operate in 7-bit or 10-bit addressing mode. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetMasterAddressingMode (const FMPI2C_TypeDef *FMPI2Cx) |
Get the Master addressing mode. @rmtoll CR2 ADD10 LL_FMPI2C_GetMasterAddressingMode. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetOwnAddress1 (FMPI2C_TypeDef *FMPI2Cx, uint32_t OwnAddress1, uint32_t OwnAddrSize) |
Set the Own Address1. @rmtoll OAR1 OA1 LL_FMPI2C_SetOwnAddress1 OAR1 OA1MODE LL_FMPI2C_SetOwnAddress1. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableOwnAddress1 (FMPI2C_TypeDef *FMPI2Cx) |
Enable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_EnableOwnAddress1. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableOwnAddress1 (FMPI2C_TypeDef *FMPI2Cx) |
Disable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_DisableOwnAddress1. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledOwnAddress1 (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Own Address1 acknowledge is enabled or disabled. @rmtoll OAR1 OA1EN LL_FMPI2C_IsEnabledOwnAddress1. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetOwnAddress2 (FMPI2C_TypeDef *FMPI2Cx, uint32_t OwnAddress2, uint32_t OwnAddrMask) |
Set the 7bits Own Address2. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableOwnAddress2 (FMPI2C_TypeDef *FMPI2Cx) |
Enable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_EnableOwnAddress2. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableOwnAddress2 (FMPI2C_TypeDef *FMPI2Cx) |
Disable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_DisableOwnAddress2. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledOwnAddress2 (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Own Address1 acknowledge is enabled or disabled. @rmtoll OAR2 OA2EN LL_FMPI2C_IsEnabledOwnAddress2. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetTiming (FMPI2C_TypeDef *FMPI2Cx, uint32_t Timing) |
Configure the SDA setup, hold time and the SCL high, low period. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetTimingPrescaler (const FMPI2C_TypeDef *FMPI2Cx) |
Get the Timing Prescaler setting. @rmtoll TIMINGR PRESC LL_FMPI2C_GetTimingPrescaler. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetClockLowPeriod (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SCL low period setting. @rmtoll TIMINGR SCLL LL_FMPI2C_GetClockLowPeriod. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetClockHighPeriod (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SCL high period setting. @rmtoll TIMINGR SCLH LL_FMPI2C_GetClockHighPeriod. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetDataHoldTime (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SDA hold time. @rmtoll TIMINGR SDADEL LL_FMPI2C_GetDataHoldTime. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetDataSetupTime (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SDA setup time. @rmtoll TIMINGR SCLDEL LL_FMPI2C_GetDataSetupTime. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetMode (FMPI2C_TypeDef *FMPI2Cx, uint32_t PeripheralMode) |
Configure peripheral mode. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetMode (const FMPI2C_TypeDef *FMPI2Cx) |
Get peripheral mode. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableSMBusAlert (FMPI2C_TypeDef *FMPI2Cx) |
Enable SMBus alert (Host or Device mode) More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableSMBusAlert (FMPI2C_TypeDef *FMPI2Cx) |
Disable SMBus alert (Host or Device mode) More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledSMBusAlert (const FMPI2C_TypeDef *FMPI2Cx) |
Check if SMBus alert (Host or Device mode) is enabled or disabled. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableSMBusPEC (FMPI2C_TypeDef *FMPI2Cx) |
Enable SMBus Packet Error Calculation (PEC). More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableSMBusPEC (FMPI2C_TypeDef *FMPI2Cx) |
Disable SMBus Packet Error Calculation (PEC). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledSMBusPEC (const FMPI2C_TypeDef *FMPI2Cx) |
Check if SMBus Packet Error Calculation (PEC) is enabled or disabled. More... | |
__STATIC_INLINE void | LL_FMPI2C_ConfigSMBusTimeout (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutA, uint32_t TimeoutAMode, uint32_t TimeoutB) |
Configure the SMBus Clock Timeout. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetSMBusTimeoutA (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutA) |
Configure the SMBus Clock TimeoutA (SCL low timeout or SCL and SDA high timeout depends on TimeoutA mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetSMBusTimeoutA (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SMBus Clock TimeoutA setting. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetSMBusTimeoutAMode (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutAMode) |
Set the SMBus Clock TimeoutA mode. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetSMBusTimeoutAMode (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SMBus Clock TimeoutA mode. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetSMBusTimeoutB (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutB) |
Configure the SMBus Extended Cumulative Clock TimeoutB (Master or Slave mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetSMBusTimeoutB (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SMBus Extended Cumulative Clock TimeoutB setting. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableSMBusTimeout (FMPI2C_TypeDef *FMPI2Cx, uint32_t ClockTimeout) |
Enable the SMBus Clock Timeout. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableSMBusTimeout (FMPI2C_TypeDef *FMPI2Cx, uint32_t ClockTimeout) |
Disable the SMBus Clock Timeout. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledSMBusTimeout (const FMPI2C_TypeDef *FMPI2Cx, uint32_t ClockTimeout) |
Check if the SMBus Clock Timeout is enabled or disabled. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_TX (FMPI2C_TypeDef *FMPI2Cx) |
Enable TXIS interrupt. @rmtoll CR1 TXIE LL_FMPI2C_EnableIT_TX. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_TX (FMPI2C_TypeDef *FMPI2Cx) |
Disable TXIS interrupt. @rmtoll CR1 TXIE LL_FMPI2C_DisableIT_TX. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_TX (const FMPI2C_TypeDef *FMPI2Cx) |
Check if the TXIS Interrupt is enabled or disabled. @rmtoll CR1 TXIE LL_FMPI2C_IsEnabledIT_TX. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_RX (FMPI2C_TypeDef *FMPI2Cx) |
Enable RXNE interrupt. @rmtoll CR1 RXIE LL_FMPI2C_EnableIT_RX. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_RX (FMPI2C_TypeDef *FMPI2Cx) |
Disable RXNE interrupt. @rmtoll CR1 RXIE LL_FMPI2C_DisableIT_RX. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_RX (const FMPI2C_TypeDef *FMPI2Cx) |
Check if the RXNE Interrupt is enabled or disabled. @rmtoll CR1 RXIE LL_FMPI2C_IsEnabledIT_RX. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_ADDR (FMPI2C_TypeDef *FMPI2Cx) |
Enable Address match interrupt (slave mode only). @rmtoll CR1 ADDRIE LL_FMPI2C_EnableIT_ADDR. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_ADDR (FMPI2C_TypeDef *FMPI2Cx) |
Disable Address match interrupt (slave mode only). @rmtoll CR1 ADDRIE LL_FMPI2C_DisableIT_ADDR. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_ADDR (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Address match interrupt is enabled or disabled. @rmtoll CR1 ADDRIE LL_FMPI2C_IsEnabledIT_ADDR. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_NACK (FMPI2C_TypeDef *FMPI2Cx) |
Enable Not acknowledge received interrupt. @rmtoll CR1 NACKIE LL_FMPI2C_EnableIT_NACK. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_NACK (FMPI2C_TypeDef *FMPI2Cx) |
Disable Not acknowledge received interrupt. @rmtoll CR1 NACKIE LL_FMPI2C_DisableIT_NACK. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_NACK (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Not acknowledge received interrupt is enabled or disabled. @rmtoll CR1 NACKIE LL_FMPI2C_IsEnabledIT_NACK. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_STOP (FMPI2C_TypeDef *FMPI2Cx) |
Enable STOP detection interrupt. @rmtoll CR1 STOPIE LL_FMPI2C_EnableIT_STOP. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_STOP (FMPI2C_TypeDef *FMPI2Cx) |
Disable STOP detection interrupt. @rmtoll CR1 STOPIE LL_FMPI2C_DisableIT_STOP. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_STOP (const FMPI2C_TypeDef *FMPI2Cx) |
Check if STOP detection interrupt is enabled or disabled. @rmtoll CR1 STOPIE LL_FMPI2C_IsEnabledIT_STOP. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_TC (FMPI2C_TypeDef *FMPI2Cx) |
Enable Transfer Complete interrupt. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_TC (FMPI2C_TypeDef *FMPI2Cx) |
Disable Transfer Complete interrupt. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_TC (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Transfer Complete interrupt is enabled or disabled. @rmtoll CR1 TCIE LL_FMPI2C_IsEnabledIT_TC. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableIT_ERR (FMPI2C_TypeDef *FMPI2Cx) |
Enable Error interrupts. More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableIT_ERR (FMPI2C_TypeDef *FMPI2Cx) |
Disable Error interrupts. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledIT_ERR (const FMPI2C_TypeDef *FMPI2Cx) |
Check if Error interrupts are enabled or disabled. @rmtoll CR1 ERRIE LL_FMPI2C_IsEnabledIT_ERR. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_TXE (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Transmit data register empty flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_TXIS (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Transmit interrupt flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_RXNE (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Receive data register not empty flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_ADDR (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Address matched flag (slave mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_NACK (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Not Acknowledge received flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_STOP (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Stop detection flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_TC (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Transfer complete flag (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_TCR (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Transfer complete flag (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_BERR (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Bus error flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_ARLO (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Arbitration lost flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_OVR (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Overrun/Underrun flag (slave mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveSMBusFlag_PECERR (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of SMBus PEC error flag in reception. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveSMBusFlag_TIMEOUT (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of SMBus Timeout detection flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveSMBusFlag_ALERT (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of SMBus alert flag. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsActiveFlag_BUSY (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the status of Bus Busy flag. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_ADDR (FMPI2C_TypeDef *FMPI2Cx) |
Clear Address Matched flag. @rmtoll ICR ADDRCF LL_FMPI2C_ClearFlag_ADDR. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_NACK (FMPI2C_TypeDef *FMPI2Cx) |
Clear Not Acknowledge flag. @rmtoll ICR NACKCF LL_FMPI2C_ClearFlag_NACK. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_STOP (FMPI2C_TypeDef *FMPI2Cx) |
Clear Stop detection flag. @rmtoll ICR STOPCF LL_FMPI2C_ClearFlag_STOP. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_TXE (FMPI2C_TypeDef *FMPI2Cx) |
Clear Transmit data register empty flag (TXE). More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_BERR (FMPI2C_TypeDef *FMPI2Cx) |
Clear Bus error flag. @rmtoll ICR BERRCF LL_FMPI2C_ClearFlag_BERR. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_ARLO (FMPI2C_TypeDef *FMPI2Cx) |
Clear Arbitration lost flag. @rmtoll ICR ARLOCF LL_FMPI2C_ClearFlag_ARLO. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearFlag_OVR (FMPI2C_TypeDef *FMPI2Cx) |
Clear Overrun/Underrun flag. @rmtoll ICR OVRCF LL_FMPI2C_ClearFlag_OVR. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearSMBusFlag_PECERR (FMPI2C_TypeDef *FMPI2Cx) |
Clear SMBus PEC error flag. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearSMBusFlag_TIMEOUT (FMPI2C_TypeDef *FMPI2Cx) |
Clear SMBus Timeout detection flag. More... | |
__STATIC_INLINE void | LL_FMPI2C_ClearSMBusFlag_ALERT (FMPI2C_TypeDef *FMPI2Cx) |
Clear SMBus Alert flag. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableAutoEndMode (FMPI2C_TypeDef *FMPI2Cx) |
Enable automatic STOP condition generation (master mode). More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableAutoEndMode (FMPI2C_TypeDef *FMPI2Cx) |
Disable automatic STOP condition generation (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledAutoEndMode (const FMPI2C_TypeDef *FMPI2Cx) |
Check if automatic STOP condition is enabled or disabled. @rmtoll CR2 AUTOEND LL_FMPI2C_IsEnabledAutoEndMode. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableReloadMode (FMPI2C_TypeDef *FMPI2Cx) |
Enable reload mode (master mode). More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableReloadMode (FMPI2C_TypeDef *FMPI2Cx) |
Disable reload mode (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledReloadMode (const FMPI2C_TypeDef *FMPI2Cx) |
Check if reload mode is enabled or disabled. @rmtoll CR2 RELOAD LL_FMPI2C_IsEnabledReloadMode. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetTransferSize (FMPI2C_TypeDef *FMPI2Cx, uint32_t TransferSize) |
Configure the number of bytes for transfer. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetTransferSize (const FMPI2C_TypeDef *FMPI2Cx) |
Get the number of bytes configured for transfer. @rmtoll CR2 NBYTES LL_FMPI2C_GetTransferSize. More... | |
__STATIC_INLINE void | LL_FMPI2C_AcknowledgeNextData (FMPI2C_TypeDef *FMPI2Cx, uint32_t TypeAcknowledge) |
Prepare the generation of a ACKnowledge or Non ACKnowledge condition after the address receive match code or next received byte. More... | |
__STATIC_INLINE void | LL_FMPI2C_GenerateStartCondition (FMPI2C_TypeDef *FMPI2Cx) |
Generate a START or RESTART condition. More... | |
__STATIC_INLINE void | LL_FMPI2C_GenerateStopCondition (FMPI2C_TypeDef *FMPI2Cx) |
Generate a STOP condition after the current byte transfer (master mode). @rmtoll CR2 STOP LL_FMPI2C_GenerateStopCondition. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableAuto10BitRead (FMPI2C_TypeDef *FMPI2Cx) |
Enable automatic RESTART Read request condition for 10bit address header (master mode). More... | |
__STATIC_INLINE void | LL_FMPI2C_DisableAuto10BitRead (FMPI2C_TypeDef *FMPI2Cx) |
Disable automatic RESTART Read request condition for 10bit address header (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledAuto10BitRead (const FMPI2C_TypeDef *FMPI2Cx) |
Check if automatic RESTART Read request condition for 10bit address header is enabled or disabled. @rmtoll CR2 HEAD10R LL_FMPI2C_IsEnabledAuto10BitRead. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetTransferRequest (FMPI2C_TypeDef *FMPI2Cx, uint32_t TransferRequest) |
Configure the transfer direction (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetTransferRequest (const FMPI2C_TypeDef *FMPI2Cx) |
Get the transfer direction requested (master mode). @rmtoll CR2 RD_WRN LL_FMPI2C_GetTransferRequest. More... | |
__STATIC_INLINE void | LL_FMPI2C_SetSlaveAddr (FMPI2C_TypeDef *FMPI2Cx, uint32_t SlaveAddr) |
Configure the slave address for transfer (master mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetSlaveAddr (const FMPI2C_TypeDef *FMPI2Cx) |
Get the slave address programmed for transfer. @rmtoll CR2 SADD LL_FMPI2C_GetSlaveAddr. More... | |
__STATIC_INLINE void | LL_FMPI2C_HandleTransfer (FMPI2C_TypeDef *FMPI2Cx, uint32_t SlaveAddr, uint32_t SlaveAddrSize, uint32_t TransferSize, uint32_t EndMode, uint32_t Request) |
Handles FMPI2Cx communication when starting transfer or during transfer (TC or TCR flag are set). @rmtoll CR2 SADD LL_FMPI2C_HandleTransfer CR2 ADD10 LL_FMPI2C_HandleTransfer CR2 RD_WRN LL_FMPI2C_HandleTransfer CR2 START LL_FMPI2C_HandleTransfer CR2 STOP LL_FMPI2C_HandleTransfer CR2 RELOAD LL_FMPI2C_HandleTransfer CR2 NBYTES LL_FMPI2C_HandleTransfer CR2 AUTOEND LL_FMPI2C_HandleTransfer CR2 HEAD10R LL_FMPI2C_HandleTransfer. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetTransferDirection (const FMPI2C_TypeDef *FMPI2Cx) |
Indicate the value of transfer direction (slave mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetAddressMatchCode (const FMPI2C_TypeDef *FMPI2Cx) |
Return the slave matched address. @rmtoll ISR ADDCODE LL_FMPI2C_GetAddressMatchCode. More... | |
__STATIC_INLINE void | LL_FMPI2C_EnableSMBusPECCompare (FMPI2C_TypeDef *FMPI2Cx) |
Enable internal comparison of the SMBus Packet Error byte (transmission or reception mode). More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_IsEnabledSMBusPECCompare (const FMPI2C_TypeDef *FMPI2Cx) |
Check if the SMBus Packet Error byte internal comparison is requested or not. More... | |
__STATIC_INLINE uint32_t | LL_FMPI2C_GetSMBusPEC (const FMPI2C_TypeDef *FMPI2Cx) |
Get the SMBus Packet Error byte calculated. More... | |
__STATIC_INLINE uint8_t | LL_FMPI2C_ReceiveData8 (const FMPI2C_TypeDef *FMPI2Cx) |
Read Receive Data register. @rmtoll RXDR RXDATA LL_FMPI2C_ReceiveData8. More... | |
__STATIC_INLINE void | LL_FMPI2C_TransmitData8 (FMPI2C_TypeDef *FMPI2Cx, uint8_t Data) |
Write in Transmit Data Register . @rmtoll TXDR TXDATA LL_FMPI2C_TransmitData8. More... | |
ErrorStatus | LL_FMPI2C_Init (FMPI2C_TypeDef *FMPI2Cx, const LL_FMPI2C_InitTypeDef *FMPI2C_InitStruct) |
Initialize the FMPI2C registers according to the specified parameters in FMPI2C_InitStruct. More... | |
ErrorStatus | LL_FMPI2C_DeInit (const FMPI2C_TypeDef *FMPI2Cx) |
De-initialize the FMPI2C registers to their default reset values. More... | |
void | LL_FMPI2C_StructInit (LL_FMPI2C_InitTypeDef *FMPI2C_InitStruct) |
Set each LL_FMPI2C_InitTypeDef field to default value. More... | |
Header file of FMPI2C LL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_ll_fmpi2c.h.