STM32H735xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_I2C_EnableAutoEndMode (I2C_TypeDef *I2Cx) |
Enable automatic STOP condition generation (master mode). | |
__STATIC_INLINE void | LL_I2C_DisableAutoEndMode (I2C_TypeDef *I2Cx) |
Disable automatic STOP condition generation (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledAutoEndMode (I2C_TypeDef *I2Cx) |
Check if automatic STOP condition is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_EnableReloadMode (I2C_TypeDef *I2Cx) |
Enable reload mode (master mode). | |
__STATIC_INLINE void | LL_I2C_DisableReloadMode (I2C_TypeDef *I2Cx) |
Disable reload mode (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledReloadMode (I2C_TypeDef *I2Cx) |
Check if reload mode is enabled or disabled. | |
__STATIC_INLINE void | LL_I2C_SetTransferSize (I2C_TypeDef *I2Cx, uint32_t TransferSize) |
Configure the number of bytes for transfer. | |
__STATIC_INLINE uint32_t | LL_I2C_GetTransferSize (I2C_TypeDef *I2Cx) |
Get the number of bytes configured for transfer. | |
__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_GenerateStartCondition (I2C_TypeDef *I2Cx) |
Generate a START or RESTART condition. | |
__STATIC_INLINE void | LL_I2C_GenerateStopCondition (I2C_TypeDef *I2Cx) |
Generate a STOP condition after the current byte transfer (master mode). | |
__STATIC_INLINE void | LL_I2C_EnableAuto10BitRead (I2C_TypeDef *I2Cx) |
Enable automatic RESTART Read request condition for 10bit address header (master mode). | |
__STATIC_INLINE void | LL_I2C_DisableAuto10BitRead (I2C_TypeDef *I2Cx) |
Disable automatic RESTART Read request condition for 10bit address header (master mode). | |
__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. | |
__STATIC_INLINE void | LL_I2C_SetTransferRequest (I2C_TypeDef *I2Cx, uint32_t TransferRequest) |
Configure the transfer direction (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_GetTransferRequest (I2C_TypeDef *I2Cx) |
Get the transfer direction requested (master mode). | |
__STATIC_INLINE void | LL_I2C_SetSlaveAddr (I2C_TypeDef *I2Cx, uint32_t SlaveAddr) |
Configure the slave address for transfer (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_GetSlaveAddr (I2C_TypeDef *I2Cx) |
Get the slave address programmed for transfer. | |
__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 void | LL_I2C_EnableSMBusPECCompare (I2C_TypeDef *I2Cx) |
Enable internal comparison of the SMBus Packet Error byte (transmission or reception mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusPECCompare (I2C_TypeDef *I2Cx) |
Check if the SMBus Packet Error byte internal comparison is requested or not. | |
__STATIC_INLINE uint32_t | LL_I2C_GetSMBusPEC (I2C_TypeDef *I2Cx) |
Get the SMBus Packet Error byte calculated. | |
__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 . |
__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 1977 of file stm32h7xx_ll_i2c.h.
Referenced by LL_I2C_Init().
__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 2027 of file stm32h7xx_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 1891 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableReloadMode | ( | I2C_TypeDef * | I2Cx | ) |
Disable reload mode (master mode).
I2Cx | I2C Instance. |
None |
Definition at line 1926 of file stm32h7xx_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 2015 of file stm32h7xx_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 1879 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableReloadMode | ( | I2C_TypeDef * | I2Cx | ) |
Enable reload mode (master mode).
I2Cx | I2C Instance. |
None |
Definition at line 1914 of file stm32h7xx_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 2181 of file stm32h7xx_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 1990 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_GenerateStopCondition | ( | I2C_TypeDef * | I2Cx | ) |
Generate a STOP condition after the current byte transfer (master mode).
I2Cx | I2C Instance. |
None |
Definition at line 2001 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetAddressMatchCode | ( | I2C_TypeDef * | I2Cx | ) |
Return the slave matched address.
I2Cx | I2C Instance. |
Value | between Min_Data=0x00 and Max_Data=0x3F |
Definition at line 2164 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetSlaveAddr | ( | I2C_TypeDef * | I2Cx | ) |
Get the slave address programmed for transfer.
I2Cx | I2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0x3F |
Definition at line 2090 of file stm32h7xx_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 2207 of file stm32h7xx_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 2153 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetTransferRequest | ( | I2C_TypeDef * | I2Cx | ) |
Get the transfer direction requested (master mode).
I2Cx | I2C Instance. |
Returned | value can be one of the following values: |
Definition at line 2066 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetTransferSize | ( | I2C_TypeDef * | I2Cx | ) |
Get the number of bytes configured for transfer.
I2Cx | I2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0xFF |
Definition at line 1961 of file stm32h7xx_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).
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 2133 of file stm32h7xx_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.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 2038 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledAutoEndMode | ( | I2C_TypeDef * | I2Cx | ) |
Check if automatic STOP condition is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 1902 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledReloadMode | ( | I2C_TypeDef * | I2Cx | ) |
Check if reload mode is enabled or disabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 1937 of file stm32h7xx_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 2194 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE uint8_t LL_I2C_ReceiveData8 | ( | I2C_TypeDef * | I2Cx | ) |
Read Receive Data register.
I2Cx | I2C Instance. |
Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 2218 of file stm32h7xx_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 2079 of file stm32h7xx_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 2053 of file stm32h7xx_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 1950 of file stm32h7xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_TransmitData8 | ( | I2C_TypeDef * | I2Cx, |
uint8_t | Data | ||
) |
Write in Transmit Data Register .
I2Cx | I2C Instance. |
Data | Value between Min_Data=0x00 and Max_Data=0xFF |
None |
Definition at line 2230 of file stm32h7xx_ll_i2c.h.