Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
stm32l4xx_ll_i2c.h File Reference
Header file of I2C LL module. More...
Go to the source code of this file.
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_SetDigitalFilter (I2C_TypeDef *I2Cx, uint32_t DigitalFilter) |
Configure Digital Noise Filter. | |
__STATIC_INLINE uint32_t | LL_I2C_GetDigitalFilter (I2C_TypeDef *I2Cx) |
Get the current Digital Noise Filter configuration. | |
__STATIC_INLINE void | LL_I2C_EnableAnalogFilter (I2C_TypeDef *I2Cx) |
Enable Analog Noise Filter. | |
__STATIC_INLINE void | LL_I2C_DisableAnalogFilter (I2C_TypeDef *I2Cx) |
Disable Analog Noise Filter. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledAnalogFilter (I2C_TypeDef *I2Cx) |
Check if Analog Noise Filter 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, uint32_t Direction) |
Get the data register address used for DMA transfer TXDR TXDATA LL_I2C_DMA_GetRegAddr RXDR RXDATA LL_I2C_DMA_GetRegAddr. | |
__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_EnableWakeUpFromStop (I2C_TypeDef *I2Cx) |
Enable Wakeup from STOP. | |
__STATIC_INLINE void | LL_I2C_DisableWakeUpFromStop (I2C_TypeDef *I2Cx) |
Disable Wakeup from STOP. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledWakeUpFromStop (I2C_TypeDef *I2Cx) |
Check if Wakeup from STOP 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_SetMasterAddressingMode (I2C_TypeDef *I2Cx, uint32_t AddressingMode) |
Configure the Master to operate in 7-bit or 10-bit addressing mode. | |
__STATIC_INLINE uint32_t | LL_I2C_GetMasterAddressingMode (I2C_TypeDef *I2Cx) |
Get the Master addressing mode. | |
__STATIC_INLINE void | LL_I2C_SetOwnAddress1 (I2C_TypeDef *I2Cx, uint32_t OwnAddr, uint32_t OwnAddrSize) |
Set the Own Address1. | |
__STATIC_INLINE void | LL_I2C_EnableOwnAddress1 (I2C_TypeDef *I2Cx) |
Enable acknowledge on Own Address1 match address. | |
__STATIC_INLINE void | LL_I2C_DisableOwnAddress1 (I2C_TypeDef *I2Cx) |
Disable acknowledge on Own Address1 match address. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledOwnAddress1 (I2C_TypeDef *I2Cx) |
Check if Own Address1 acknowledge is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_SetOwnAddress2 (I2C_TypeDef *I2Cx, uint32_t OwnAddr, uint32_t OwnAddrMask) |
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_SetTiming (I2C_TypeDef *I2Cx, uint32_t TimingValue) |
Configure the SDA setup, hold time and the SCL high, low period. | |
__STATIC_INLINE uint32_t | LL_I2C_GetTimingPrescaler (I2C_TypeDef *I2Cx) |
Get the Timing Prescaler setting. | |
__STATIC_INLINE uint32_t | LL_I2C_GetClockLowPeriod (I2C_TypeDef *I2Cx) |
Get the SCL low period setting. | |
__STATIC_INLINE uint32_t | LL_I2C_GetClockHighPeriod (I2C_TypeDef *I2Cx) |
Get the SCL high period setting. | |
__STATIC_INLINE uint32_t | LL_I2C_GetDataHoldTime (I2C_TypeDef *I2Cx) |
Get the SDA hold time. | |
__STATIC_INLINE uint32_t | LL_I2C_GetDataSetupTime (I2C_TypeDef *I2Cx) |
Get the SDA setup time. | |
__STATIC_INLINE void | LL_I2C_EnableIT_TX (I2C_TypeDef *I2Cx) |
Enable TXIS interrupt. | |
__STATIC_INLINE void | LL_I2C_DisableIT_TX (I2C_TypeDef *I2Cx) |
Disable TXIS interrupt. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_TX (I2C_TypeDef *I2Cx) |
Check if the TXIS Interrupt is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableIT_RX (I2C_TypeDef *I2Cx) |
Enable RXNE interrupt. | |
__STATIC_INLINE void | LL_I2C_DisableIT_RX (I2C_TypeDef *I2Cx) |
Disable RXNE interrupt. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_RX (I2C_TypeDef *I2Cx) |
Check if the RXNE Interrupt is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableIT_ADDR (I2C_TypeDef *I2Cx) |
Enable Address match interrupt (slave mode only). | |
__STATIC_INLINE void | LL_I2C_DisableIT_ADDR (I2C_TypeDef *I2Cx) |
Disable Address match interrupt (slave mode only). | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_ADDR (I2C_TypeDef *I2Cx) |
Check if Address match interrupt is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableIT_NACK (I2C_TypeDef *I2Cx) |
Enable Not acknowledge received interrupt. | |
__STATIC_INLINE void | LL_I2C_DisableIT_NACK (I2C_TypeDef *I2Cx) |
Disable Not acknowledge received interrupt. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_NACK (I2C_TypeDef *I2Cx) |
Check if Not acknowledge received interrupt is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableIT_STOP (I2C_TypeDef *I2Cx) |
Enable STOP detection interrupt. | |
__STATIC_INLINE void | LL_I2C_DisableIT_STOP (I2C_TypeDef *I2Cx) |
Disable STOP detection interrupt. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_STOP (I2C_TypeDef *I2Cx) |
Check if STOP detection interrupt is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableIT_TC (I2C_TypeDef *I2Cx) |
Enable Transfer Complete interrupt. | |
__STATIC_INLINE void | LL_I2C_DisableIT_TC (I2C_TypeDef *I2Cx) |
Disable Transfer Complete interrupt. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_TC (I2C_TypeDef *I2Cx) |
Check if Transfer Complete interrupt is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableIT_ERR (I2C_TypeDef *I2Cx) |
Enable Error interrupts. | |
__STATIC_INLINE void | LL_I2C_DisableIT_ERR (I2C_TypeDef *I2Cx) |
Disable Error interrupts. | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledIT_ERR (I2C_TypeDef *I2Cx) |
Check if Error interrupts is enabled of disabled. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_TXE (I2C_TypeDef *I2Cx) |
Indicate the status of Transmit data register empty flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_TXIS (I2C_TypeDef *I2Cx) |
Indicate the status of Transmit interrupt flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_RXNE (I2C_TypeDef *I2Cx) |
Indicate the status of Receive data register not empty flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_ADDR (I2C_TypeDef *I2Cx) |
Indicate the status of Address matched flag (slave mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_NACK (I2C_TypeDef *I2Cx) |
Indicate the status of Not Acknowledge received flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_STOP (I2C_TypeDef *I2Cx) |
Indicate the status of Stop detection flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_TC (I2C_TypeDef *I2Cx) |
Indicate the status of Transfer complete flag (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_TCR (I2C_TypeDef *I2Cx) |
Indicate the status of Transfer complete flag (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_BERR (I2C_TypeDef *I2Cx) |
Indicate the status of Bus error flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_ARLO (I2C_TypeDef *I2Cx) |
Indicate the status of Arbitration lost flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_OVR (I2C_TypeDef *I2Cx) |
Indicate the status of Overrun/Underrun flag (slave mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_BUSY (I2C_TypeDef *I2Cx) |
Indicate the status of Bus Busy flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_ADDR (I2C_TypeDef *I2Cx) |
Clear Address Matched flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_NACK (I2C_TypeDef *I2Cx) |
Clear Not Acknowledge flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_STOP (I2C_TypeDef *I2Cx) |
Clear Stop detection flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_TXE (I2C_TypeDef *I2Cx) |
Clear Transmit data register empty flag (TXE). | |
__STATIC_INLINE void | LL_I2C_ClearFlag_BERR (I2C_TypeDef *I2Cx) |
Clear Bus error flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_ARLO (I2C_TypeDef *I2Cx) |
Clear Arbitration lost flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_OVR (I2C_TypeDef *I2Cx) |
Clear Overrun/Underrun flag. | |
__STATIC_INLINE void | LL_I2C_AcknowledgeNextData (I2C_TypeDef *I2Cx, uint32_t TypeAcknowledge) |
Prepare the generation of a ACKnowledge or Non ACKnowledge condition after the address receive match code or next received byte. | |
__STATIC_INLINE void | LL_I2C_HandleTransfer (I2C_TypeDef *I2Cx, uint32_t SlaveAddr, uint32_t SlaveAddrSize, uint32_t TransferSize, uint32_t EndMode, uint32_t Request) |
Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag are set). | |
__STATIC_INLINE uint32_t | LL_I2C_GetTransferDirection (I2C_TypeDef *I2Cx) |
Indicate the value of transfer direction (slave mode). | |
__STATIC_INLINE uint32_t | LL_I2C_GetAddressMatchCode (I2C_TypeDef *I2Cx) |
Return the slave matched address. | |
__STATIC_INLINE uint8_t | LL_I2C_ReceiveData8 (I2C_TypeDef *I2Cx) |
Read Receive Data register. | |
__STATIC_INLINE void | LL_I2C_TransmitData8 (I2C_TypeDef *I2Cx, uint8_t Data) |
Write in Transmit Data Register . |
Detailed Description
Header file of I2C LL module.
- Version:
- V1.1.0
- Date:
- 16-September-2015
- Attention:
© COPYRIGHT(c) 2015 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32l4xx_ll_i2c.h.
Generated on Tue Jul 12 2022 11:35:19 by
