|
STM32L4xx_HAL_Driver
1.14.0
|
Functions | |
| __STATIC_INLINE void | LL_I2C_EnableAutoEndMode (I2C_TypeDef *I2Cx) |
| Enable automatic STOP condition generation (master mode). More... | |
| __STATIC_INLINE void | LL_I2C_DisableAutoEndMode (I2C_TypeDef *I2Cx) |
| Disable automatic STOP condition generation (master mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledAutoEndMode (I2C_TypeDef *I2Cx) |
| Check if automatic STOP condition is enabled or disabled. CR2 AUTOEND LL_I2C_IsEnabledAutoEndMode. More... | |
| __STATIC_INLINE void | LL_I2C_EnableReloadMode (I2C_TypeDef *I2Cx) |
| Enable reload mode (master mode). More... | |
| __STATIC_INLINE void | LL_I2C_DisableReloadMode (I2C_TypeDef *I2Cx) |
| Disable reload mode (master mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledReloadMode (I2C_TypeDef *I2Cx) |
| Check if reload mode is enabled or disabled. CR2 RELOAD LL_I2C_IsEnabledReloadMode. More... | |
| __STATIC_INLINE void | LL_I2C_SetTransferSize (I2C_TypeDef *I2Cx, uint32_t TransferSize) |
| Configure the number of bytes for transfer. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetTransferSize (I2C_TypeDef *I2Cx) |
| Get the number of bytes configured for transfer. CR2 NBYTES LL_I2C_GetTransferSize. More... | |
| __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. More... | |
| __STATIC_INLINE void | LL_I2C_GenerateStartCondition (I2C_TypeDef *I2Cx) |
| Generate a START or RESTART condition. More... | |
| __STATIC_INLINE void | LL_I2C_GenerateStopCondition (I2C_TypeDef *I2Cx) |
| Generate a STOP condition after the current byte transfer (master mode). CR2 STOP LL_I2C_GenerateStopCondition. More... | |
| __STATIC_INLINE void | LL_I2C_EnableAuto10BitRead (I2C_TypeDef *I2Cx) |
| Enable automatic RESTART Read request condition for 10bit address header (master mode). More... | |
| __STATIC_INLINE void | LL_I2C_DisableAuto10BitRead (I2C_TypeDef *I2Cx) |
| Disable automatic RESTART Read request condition for 10bit address header (master mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledAuto10BitRead (I2C_TypeDef *I2Cx) |
| Check if automatic RESTART Read request condition for 10bit address header is enabled or disabled. CR2 HEAD10R LL_I2C_IsEnabledAuto10BitRead. More... | |
| __STATIC_INLINE void | LL_I2C_SetTransferRequest (I2C_TypeDef *I2Cx, uint32_t TransferRequest) |
| Configure the transfer direction (master mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetTransferRequest (I2C_TypeDef *I2Cx) |
| Get the transfer direction requested (master mode). CR2 RD_WRN LL_I2C_GetTransferRequest. More... | |
| __STATIC_INLINE void | LL_I2C_SetSlaveAddr (I2C_TypeDef *I2Cx, uint32_t SlaveAddr) |
| Configure the slave address for transfer (master mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetSlaveAddr (I2C_TypeDef *I2Cx) |
| Get the slave address programmed for transfer. CR2 SADD LL_I2C_GetSlaveAddr. More... | |
| __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). CR2 SADD LL_I2C_HandleTransfer CR2 ADD10 LL_I2C_HandleTransfer CR2 RD_WRN LL_I2C_HandleTransfer CR2 START LL_I2C_HandleTransfer CR2 STOP LL_I2C_HandleTransfer CR2 RELOAD LL_I2C_HandleTransfer CR2 NBYTES LL_I2C_HandleTransfer CR2 AUTOEND LL_I2C_HandleTransfer CR2 HEAD10R LL_I2C_HandleTransfer. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetTransferDirection (I2C_TypeDef *I2Cx) |
| Indicate the value of transfer direction (slave mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetAddressMatchCode (I2C_TypeDef *I2Cx) |
| Return the slave matched address. ISR ADDCODE LL_I2C_GetAddressMatchCode. More... | |
| __STATIC_INLINE void | LL_I2C_EnableSMBusPECCompare (I2C_TypeDef *I2Cx) |
| Enable internal comparison of the SMBus Packet Error byte (transmission or reception mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusPECCompare (I2C_TypeDef *I2Cx) |
| Check if the SMBus Packet Error byte internal comparison is requested or not. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetSMBusPEC (I2C_TypeDef *I2Cx) |
| Get the SMBus Packet Error byte calculated. More... | |
| __STATIC_INLINE uint8_t | LL_I2C_ReceiveData8 (I2C_TypeDef *I2Cx) |
| Read Receive Data register. RXDR RXDATA LL_I2C_ReceiveData8. More... | |
| __STATIC_INLINE void | LL_I2C_TransmitData8 (I2C_TypeDef *I2Cx, uint8_t Data) |
| Write in Transmit Data Register . TXDR TXDATA LL_I2C_TransmitData8. More... | |
| __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.
| I2Cx | I2C Instance. |
| TypeAcknowledge | This parameter can be one of the following values:
|
| None |
Definition at line 1935 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableAuto10BitRead | ( | I2C_TypeDef * | I2Cx | ) |
Disable automatic RESTART Read request condition for 10bit address header (master mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 1984 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableAutoEndMode | ( | I2C_TypeDef * | I2Cx | ) |
Disable automatic STOP condition generation (master mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 1850 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableReloadMode | ( | I2C_TypeDef * | I2Cx | ) |
Disable reload mode (master mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 1885 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableAuto10BitRead | ( | I2C_TypeDef * | I2Cx | ) |
Enable automatic RESTART Read request condition for 10bit address header (master mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 1972 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableAutoEndMode | ( | I2C_TypeDef * | I2Cx | ) |
Enable automatic STOP condition generation (master mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 1838 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableReloadMode | ( | I2C_TypeDef * | I2Cx | ) |
Enable reload mode (master mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 1873 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableSMBusPECCompare | ( | I2C_TypeDef * | I2Cx | ) |
Enable internal comparison of the SMBus Packet Error byte (transmission or reception mode).
| I2Cx | I2C Instance. |
| None |
Definition at line 2135 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_GenerateStartCondition | ( | I2C_TypeDef * | I2Cx | ) |
Generate a START or RESTART condition.
| I2Cx | I2C Instance. |
| None |
Definition at line 1948 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_GenerateStopCondition | ( | I2C_TypeDef * | I2Cx | ) |
Generate a STOP condition after the current byte transfer (master mode). CR2 STOP LL_I2C_GenerateStopCondition.
| I2Cx | I2C Instance. |
| None |
Definition at line 1959 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetAddressMatchCode | ( | I2C_TypeDef * | I2Cx | ) |
Return the slave matched address. ISR ADDCODE LL_I2C_GetAddressMatchCode.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x00 and Max_Data=0x3F |
Definition at line 2119 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetSlaveAddr | ( | I2C_TypeDef * | I2Cx | ) |
Get the slave address programmed for transfer. CR2 SADD LL_I2C_GetSlaveAddr.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x0 and Max_Data=0x3F |
Definition at line 2047 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Get the SMBus Packet Error byte calculated.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 2161 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetTransferDirection | ( | I2C_TypeDef * | I2Cx | ) |
Indicate the value of transfer direction (slave mode).
| I2Cx | I2C Instance. |
| Returned | value can be one of the following values:
|
Definition at line 2108 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetTransferRequest | ( | I2C_TypeDef * | I2Cx | ) |
Get the transfer direction requested (master mode). CR2 RD_WRN LL_I2C_GetTransferRequest.
| I2Cx | I2C Instance. |
| Returned | value can be one of the following values:
|
Definition at line 2023 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetTransferSize | ( | I2C_TypeDef * | I2Cx | ) |
Get the number of bytes configured for transfer. CR2 NBYTES LL_I2C_GetTransferSize.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x0 and Max_Data=0xFF |
Definition at line 1920 of file stm32l4xx_ll_i2c.h.
| __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). CR2 SADD LL_I2C_HandleTransfer
CR2 ADD10 LL_I2C_HandleTransfer
CR2 RD_WRN LL_I2C_HandleTransfer
CR2 START LL_I2C_HandleTransfer
CR2 STOP LL_I2C_HandleTransfer
CR2 RELOAD LL_I2C_HandleTransfer
CR2 NBYTES LL_I2C_HandleTransfer
CR2 AUTOEND LL_I2C_HandleTransfer
CR2 HEAD10R LL_I2C_HandleTransfer.
| I2Cx | I2C Instance. |
| SlaveAddr | Specifies the slave address to be programmed. |
| SlaveAddrSize | This parameter can be one of the following values:
|
| TransferSize | Specifies the number of bytes to be programmed. This parameter must be a value between Min_Data=0 and Max_Data=255. |
| EndMode | This parameter can be one of the following values:
|
| Request | This parameter can be one of the following values:
|
| None |
Definition at line 2090 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledAuto10BitRead | ( | I2C_TypeDef * | I2Cx | ) |
Check if automatic RESTART Read request condition for 10bit address header is enabled or disabled. CR2 HEAD10R LL_I2C_IsEnabledAuto10BitRead.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 1995 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledAutoEndMode | ( | I2C_TypeDef * | I2Cx | ) |
Check if automatic STOP condition is enabled or disabled. CR2 AUTOEND LL_I2C_IsEnabledAutoEndMode.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 1861 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledReloadMode | ( | I2C_TypeDef * | I2Cx | ) |
Check if reload mode is enabled or disabled. CR2 RELOAD LL_I2C_IsEnabledReloadMode.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 1896 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusPECCompare | ( | I2C_TypeDef * | I2Cx | ) |
Check if the SMBus Packet Error byte internal comparison is requested or not.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 2148 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint8_t LL_I2C_ReceiveData8 | ( | I2C_TypeDef * | I2Cx | ) |
Read Receive Data register. RXDR RXDATA LL_I2C_ReceiveData8.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 2172 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetSlaveAddr | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | SlaveAddr | ||
| ) |
Configure the slave address for transfer (master mode).
| I2Cx | I2C Instance. |
| SlaveAddr | This parameter must be a value between Min_Data=0x00 and Max_Data=0x3F. |
| None |
Definition at line 2036 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetTransferRequest | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | TransferRequest | ||
| ) |
Configure the transfer direction (master mode).
| I2Cx | I2C Instance. |
| TransferRequest | This parameter can be one of the following values:
|
| None |
Definition at line 2010 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetTransferSize | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | TransferSize | ||
| ) |
Configure the number of bytes for transfer.
| I2Cx | I2C Instance. |
| TransferSize | This parameter must be a value between Min_Data=0x00 and Max_Data=0xFF. |
| None |
Definition at line 1909 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_TransmitData8 | ( | I2C_TypeDef * | I2Cx, |
| uint8_t | Data | ||
| ) |
Write in Transmit Data Register . TXDR TXDATA LL_I2C_TransmitData8.
| I2Cx | I2C Instance. |
| Data | Value between Min_Data=0x00 and Max_Data=0xFF |
| None |
Definition at line 2184 of file stm32l4xx_ll_i2c.h.