|
STM32L443xx HAL User Manual
|
Data transfers Private functions. More...
Functions | |
| static HAL_StatusTypeDef | SMBUS_WaitOnFlagUntilTimeout (SMBUS_HandleTypeDef *hsmbus, uint32_t Flag, FlagStatus Status, uint32_t Timeout) |
| Handle SMBUS Communication Timeout. | |
| static HAL_StatusTypeDef | SMBUS_Master_ISR (SMBUS_HandleTypeDef *hsmbus, uint32_t StatusFlags) |
| Interrupt Sub-Routine which handle the Interrupt Flags Master Mode. | |
| static HAL_StatusTypeDef | SMBUS_Slave_ISR (SMBUS_HandleTypeDef *hsmbus, uint32_t StatusFlags) |
| Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode. | |
| static void | SMBUS_ITErrorHandler (SMBUS_HandleTypeDef *hsmbus) |
| SMBUS interrupts error handler. | |
| static void | SMBUS_Enable_IRQ (SMBUS_HandleTypeDef *hsmbus, uint32_t InterruptRequest) |
| Manage the enabling of Interrupts. | |
| static void | SMBUS_Disable_IRQ (SMBUS_HandleTypeDef *hsmbus, uint32_t InterruptRequest) |
| Manage the disabling of Interrupts. | |
| static void | SMBUS_Flush_TXDR (SMBUS_HandleTypeDef *hsmbus) |
| SMBUS Tx data register flush process. | |
| static void | SMBUS_TransferConfig (SMBUS_HandleTypeDef *hsmbus, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) |
| Handle SMBUSx communication when starting transfer or during transfer (TC or TCR flag are set). | |
| static void | SMBUS_ConvertOtherXferOptions (SMBUS_HandleTypeDef *hsmbus) |
| Convert SMBUSx OTHER_xxx XferOptions to functional XferOptions. | |
Data transfers Private functions.
| static void SMBUS_ConvertOtherXferOptions | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
Convert SMBUSx OTHER_xxx XferOptions to functional XferOptions.
| hsmbus | SMBUS handle. |
| None |
Definition at line 2740 of file stm32l4xx_hal_smbus.c.
References SMBUS_FIRST_AND_LAST_FRAME_NO_PEC, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_FIRST_FRAME, SMBUS_OTHER_AND_LAST_FRAME_NO_PEC, SMBUS_OTHER_AND_LAST_FRAME_WITH_PEC, SMBUS_OTHER_FRAME_NO_PEC, SMBUS_OTHER_FRAME_WITH_PEC, SMBUS_SENDPEC_MODE, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_Master_Receive_IT(), HAL_SMBUS_Master_Transmit_IT(), HAL_SMBUS_Slave_Receive_IT(), and HAL_SMBUS_Slave_Transmit_IT().
| static void SMBUS_Disable_IRQ | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | InterruptRequest | ||
| ) | [static] |
Manage the disabling of Interrupts.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| InterruptRequest | Value of SMBUS Interrupt configuration definition. |
| HAL | status |
Definition at line 2464 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, SMBUS_GET_ALERT_ENABLED, SMBUS_IT_ADDR, SMBUS_IT_ADDRI, SMBUS_IT_ALERT, SMBUS_IT_ERRI, SMBUS_IT_NACKI, SMBUS_IT_RX, SMBUS_IT_RXI, SMBUS_IT_STOPI, SMBUS_IT_TCI, SMBUS_IT_TX, SMBUS_IT_TXI, and __SMBUS_HandleTypeDef::State.
Referenced by HAL_SMBUS_DisableAlert_IT(), HAL_SMBUS_DisableListen_IT(), HAL_SMBUS_Slave_Receive_IT(), HAL_SMBUS_Slave_Transmit_IT(), SMBUS_Master_ISR(), and SMBUS_Slave_ISR().
| static void SMBUS_Enable_IRQ | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | InterruptRequest | ||
| ) | [static] |
Manage the enabling of Interrupts.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| InterruptRequest | Value of SMBUS Interrupt configuration definition. |
| HAL | status |
Definition at line 2424 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_ENABLE_IT, SMBUS_IT_ADDR, SMBUS_IT_ADDRI, SMBUS_IT_ALERT, SMBUS_IT_ERRI, SMBUS_IT_NACKI, SMBUS_IT_RX, SMBUS_IT_RXI, SMBUS_IT_STOPI, SMBUS_IT_TCI, SMBUS_IT_TX, and SMBUS_IT_TXI.
Referenced by HAL_SMBUS_EnableAlert_IT(), HAL_SMBUS_EnableListen_IT(), HAL_SMBUS_Master_Abort_IT(), HAL_SMBUS_Master_Receive_IT(), HAL_SMBUS_Master_Transmit_IT(), HAL_SMBUS_Slave_Receive_IT(), and HAL_SMBUS_Slave_Transmit_IT().
| static void SMBUS_Flush_TXDR | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
SMBUS Tx data register flush process.
| hsmbus | SMBUS handle. |
| None |
Definition at line 2681 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::Instance, SMBUS_FLAG_TXE, and SMBUS_FLAG_TXIS.
Referenced by SMBUS_ITErrorHandler(), SMBUS_Master_ISR(), and SMBUS_Slave_ISR().
| static void SMBUS_ITErrorHandler | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
SMBUS interrupts error handler.
| hsmbus | SMBUS handle. |
| None |
Definition at line 2536 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_FLAG, __SMBUS_HandleTypeDef::ErrorCallback, __SMBUS_HandleTypeDef::ErrorCode, HAL_SMBUS_ERROR_ACKF, HAL_SMBUS_ERROR_ALERT, HAL_SMBUS_ERROR_ARLO, HAL_SMBUS_ERROR_BERR, HAL_SMBUS_ERROR_BUSTIMEOUT, HAL_SMBUS_ERROR_NONE, HAL_SMBUS_ERROR_OVR, HAL_SMBUS_ERROR_PECERR, HAL_SMBUS_ErrorCallback(), HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, HAL_SMBUS_STATE_SLAVE_BUSY_RX, HAL_SMBUS_STATE_SLAVE_BUSY_TX, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FLAG_ALERT, SMBUS_FLAG_ARLO, SMBUS_FLAG_BERR, SMBUS_FLAG_OVR, SMBUS_FLAG_PECERR, SMBUS_FLAG_TIMEOUT, SMBUS_Flush_TXDR(), SMBUS_IT_ERRI, and __SMBUS_HandleTypeDef::State.
Referenced by HAL_SMBUS_ER_IRQHandler(), and SMBUS_Master_ISR().
| static HAL_StatusTypeDef SMBUS_Master_ISR | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | StatusFlags | ||
| ) | [static] |
Interrupt Sub-Routine which handle the Interrupt Flags Master Mode.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| StatusFlags | Value of Interrupt Flags. |
| HAL | status |
Definition at line 1866 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_DISABLE, __HAL_SMBUS_ENABLE, __SMBUS_HandleTypeDef::ErrorCallback, __SMBUS_HandleTypeDef::ErrorCode, HAL_SMBUS_ERROR_ACKF, HAL_SMBUS_ErrorCallback(), HAL_SMBUS_MasterRxCpltCallback(), HAL_SMBUS_MasterTxCpltCallback(), HAL_SMBUS_STATE_MASTER_BUSY_RX, HAL_SMBUS_STATE_MASTER_BUSY_TX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::MasterRxCpltCallback, __SMBUS_HandleTypeDef::MasterTxCpltCallback, MAX_NBYTE_SIZE, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_AUTOEND_MODE, SMBUS_CHECK_FLAG, SMBUS_Disable_IRQ(), SMBUS_FLAG_AF, SMBUS_FLAG_RXNE, SMBUS_FLAG_STOPF, SMBUS_FLAG_TC, SMBUS_FLAG_TCR, SMBUS_FLAG_TXIS, SMBUS_Flush_TXDR(), SMBUS_GET_PEC_MODE, SMBUS_GET_STOP_MODE, SMBUS_IT_RX, SMBUS_IT_TX, SMBUS_ITErrorHandler(), SMBUS_NO_STARTSTOP, SMBUS_RELOAD_MODE, SMBUS_RESET_CR2, SMBUS_SENDPEC_MODE, SMBUS_TransferConfig(), __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferSize.
Referenced by HAL_SMBUS_EV_IRQHandler().
| static HAL_StatusTypeDef SMBUS_Slave_ISR | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | StatusFlags | ||
| ) | [static] |
Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| StatusFlags | Value of Interrupt Flags. |
| HAL | status |
Definition at line 2156 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_DISABLE_IT, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::AddrCallback, __SMBUS_HandleTypeDef::ErrorCallback, __SMBUS_HandleTypeDef::ErrorCode, HAL_SMBUS_AddrCallback(), HAL_SMBUS_ERROR_ACKF, HAL_SMBUS_ErrorCallback(), HAL_SMBUS_ListenCpltCallback(), HAL_SMBUS_SlaveRxCpltCallback(), HAL_SMBUS_SlaveTxCpltCallback(), HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, HAL_SMBUS_STATE_SLAVE_BUSY_RX, HAL_SMBUS_STATE_SLAVE_BUSY_TX, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::ListenCpltCallback, MAX_NBYTE_SIZE, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, __SMBUS_HandleTypeDef::SlaveRxCpltCallback, __SMBUS_HandleTypeDef::SlaveTxCpltCallback, SMBUS_CHECK_FLAG, SMBUS_Disable_IRQ(), SMBUS_FLAG_ADDR, SMBUS_FLAG_AF, SMBUS_FLAG_RXNE, SMBUS_FLAG_STOPF, SMBUS_FLAG_TCR, SMBUS_FLAG_TXIS, SMBUS_Flush_TXDR(), SMBUS_GET_ADDR_MATCH, SMBUS_GET_DIR, SMBUS_GET_PEC_MODE, SMBUS_IT_ADDR, SMBUS_IT_ADDRI, SMBUS_IT_RX, SMBUS_IT_TX, SMBUS_NO_STARTSTOP, SMBUS_RELOAD_MODE, SMBUS_RESET_CR2, SMBUS_SENDPEC_MODE, SMBUS_TransferConfig(), __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferSize.
Referenced by HAL_SMBUS_EV_IRQHandler().
| static void SMBUS_TransferConfig | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint16_t | DevAddress, | ||
| uint8_t | Size, | ||
| uint32_t | Mode, | ||
| uint32_t | Request | ||
| ) | [static] |
Handle SMBUSx communication when starting transfer or during transfer (TC or TCR flag are set).
| hsmbus | SMBUS handle. |
| DevAddress | specifies the slave address to be programmed. |
| Size | specifies the number of bytes to be programmed. This parameter must be a value between 0 and 255. |
| Mode | New state of the SMBUS START condition generation. This parameter can be one or a combination of the following values:
|
| Request | New state of the SMBUS START condition generation. This parameter can be one of the following values:
|
| None |
Definition at line 2717 of file stm32l4xx_hal_smbus.c.
References assert_param, __SMBUS_HandleTypeDef::Instance, IS_SMBUS_TRANSFER_MODE, and IS_SMBUS_TRANSFER_REQUEST.
Referenced by HAL_SMBUS_Master_Abort_IT(), HAL_SMBUS_Master_Receive_IT(), HAL_SMBUS_Master_Transmit_IT(), HAL_SMBUS_Slave_Receive_IT(), HAL_SMBUS_Slave_Transmit_IT(), SMBUS_Master_ISR(), and SMBUS_Slave_ISR().
| static HAL_StatusTypeDef SMBUS_WaitOnFlagUntilTimeout | ( | SMBUS_HandleTypeDef * | hsmbus, |
| uint32_t | Flag, | ||
| FlagStatus | Status, | ||
| uint32_t | Timeout | ||
| ) | [static] |
Handle SMBUS Communication Timeout.
| hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
| Flag | Specifies the SMBUS flag to check. |
| Status | The new Flag status (SET or RESET). |
| Timeout | Timeout duration |
| HAL | status |
Definition at line 2646 of file stm32l4xx_hal_smbus.c.
References __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_SMBUS_ERROR_HALTIMEOUT, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::PreviousState, and __SMBUS_HandleTypeDef::State.
Referenced by HAL_SMBUS_IsDeviceReady().
1.7.6.1