STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Functions | |
static HAL_StatusTypeDef | SMBUS_WaitOnFlagUntilTimeout (SMBUS_HandleTypeDef *hsmbus, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) |
This function handles SMBUS Communication Timeout. | |
static void | SMBUS_ITError (SMBUS_HandleTypeDef *hsmbus) |
SMBUS interrupts error process. | |
static void | SMBUS_Flush_DR (SMBUS_HandleTypeDef *hsmbus) |
SMBUS data register flush process. | |
static HAL_StatusTypeDef | SMBUS_MasterTransmit_TXE (SMBUS_HandleTypeDef *hsmbus) |
Handle TXE flag for Master. | |
static HAL_StatusTypeDef | SMBUS_MasterTransmit_BTF (SMBUS_HandleTypeDef *hsmbus) |
Handle BTF flag for Master transmitter. | |
static HAL_StatusTypeDef | SMBUS_MasterReceive_RXNE (SMBUS_HandleTypeDef *hsmbus) |
Handle RXNE flag for Master. | |
static HAL_StatusTypeDef | SMBUS_MasterReceive_BTF (SMBUS_HandleTypeDef *hsmbus) |
Handle BTF flag for Master receiver. | |
static HAL_StatusTypeDef | SMBUS_Master_SB (SMBUS_HandleTypeDef *hsmbus) |
Handle SB flag for Master. | |
static HAL_StatusTypeDef | SMBUS_Master_ADD10 (SMBUS_HandleTypeDef *hsmbus) |
Handle ADD10 flag for Master. | |
static HAL_StatusTypeDef | SMBUS_Master_ADDR (SMBUS_HandleTypeDef *hsmbus) |
Handle ADDR flag for Master. | |
static HAL_StatusTypeDef | SMBUS_SlaveTransmit_TXE (SMBUS_HandleTypeDef *hsmbus) |
Handle TXE flag for Slave. | |
static HAL_StatusTypeDef | SMBUS_SlaveTransmit_BTF (SMBUS_HandleTypeDef *hsmbus) |
Handle BTF flag for Slave transmitter. | |
static HAL_StatusTypeDef | SMBUS_SlaveReceive_RXNE (SMBUS_HandleTypeDef *hsmbus) |
Handle RXNE flag for Slave. | |
static HAL_StatusTypeDef | SMBUS_SlaveReceive_BTF (SMBUS_HandleTypeDef *hsmbus) |
Handle BTF flag for Slave receiver. | |
static HAL_StatusTypeDef | SMBUS_Slave_ADDR (SMBUS_HandleTypeDef *hsmbus) |
Handle ADD flag for Slave. | |
static HAL_StatusTypeDef | SMBUS_Slave_STOPF (SMBUS_HandleTypeDef *hsmbus) |
Handle STOPF flag for Slave. | |
static HAL_StatusTypeDef | SMBUS_Slave_AF (SMBUS_HandleTypeDef *hsmbus) |
|
static |
#include <stm32f4xx_hal_smbus.c>
This function handles SMBUS Communication Timeout.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
Flag | specifies the SMBUS flag to check. |
Status | The new Flag status (SET or RESET). |
Timeout | Timeout duration |
Tickstart | Tick start value |
HAL | status |
Definition at line 2762 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_GET_FLAG, __HAL_UNLOCK, HAL_GetTick(), HAL_MAX_DELAY, HAL_OK, HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_READY, HAL_TIMEOUT, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::PreviousState, SMBUS_STATE_NONE, and __SMBUS_HandleTypeDef::State.
Referenced by HAL_SMBUS_IsDeviceReady().
|
static |
#include <stm32f4xx_hal_smbus.c>
SMBUS interrupts error process.
hsmbus | SMBUS handle. |
None |
Definition at line 2669 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::ErrorCode, HAL_SMBUS_AbortCpltCallback(), HAL_SMBUS_ERROR_AF, HAL_SMBUS_ERROR_NONE, HAL_SMBUS_ErrorCallback(), HAL_SMBUS_ListenCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_ABORT, HAL_SMBUS_STATE_BUSY_RX_LISTEN, HAL_SMBUS_STATE_BUSY_TX_LISTEN, HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FLAG_RXNE, SMBUS_NO_OPTION_FRAME, SMBUS_STATE_NONE, __SMBUS_HandleTypeDef::State, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_ER_IRQHandler(), HAL_SMBUS_Master_Abort_IT(), and SMBUS_Slave_STOPF().
|
static |
#include <stm32f4xx_hal_smbus.c>
SMBUS data register flush process.
hsmbus | SMBUS handle. |
None |
Definition at line 854 of file stm32f4xx_hal_smbus.c.
References __SMBUS_HandleTypeDef::Instance.
Referenced by HAL_SMBUS_ER_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle TXE flag for Master.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 1941 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_MasterTxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_TX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_FIRST_FRAME, SMBUS_GET_PEC_MODE, SMBUS_IT_BUF, SMBUS_IT_ERR, SMBUS_IT_EVT, SMBUS_LAST_FRAME_WITH_PEC, SMBUS_NEXT_FRAME, SMBUS_NO_OPTION_FRAME, SMBUS_PEC_ENABLE, SMBUS_STATE_MASTER_BUSY_TX, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferSize.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle BTF flag for Master transmitter.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2019 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_MasterTxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_TX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_FRAME, SMBUS_IT_BUF, SMBUS_IT_ERR, SMBUS_IT_EVT, SMBUS_NEXT_FRAME, SMBUS_NO_OPTION_FRAME, SMBUS_STATE_MASTER_BUSY_TX, SMBUS_STATE_NONE, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle RXNE flag for Master.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2077 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_MasterRxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_RX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_GET_PEC, SMBUS_IT_BUF, SMBUS_IT_ERR, SMBUS_IT_EVT, SMBUS_LAST_FRAME_WITH_PEC, SMBUS_STATE_NONE, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferPEC.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle BTF flag for Master receiver.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2151 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_MasterRxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_FRAME, SMBUS_GET_PEC, SMBUS_IT_BUF, SMBUS_IT_ERR, SMBUS_IT_EVT, SMBUS_NEXT_FRAME, SMBUS_STATE_NONE, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferPEC.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle SB flag for Master.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2233 of file stm32f4xx_hal_smbus.c.
References SMBUS_InitTypeDef::AddressingMode, __SMBUS_HandleTypeDef::Devaddress, __SMBUS_HandleTypeDef::EventCount, HAL_OK, HAL_SMBUS_STATE_BUSY_TX, __SMBUS_HandleTypeDef::Init, __SMBUS_HandleTypeDef::Instance, SMBUS_10BIT_HEADER_READ, SMBUS_10BIT_HEADER_WRITE, SMBUS_7BIT_ADD_READ, SMBUS_7BIT_ADD_WRITE, SMBUS_ADDRESSINGMODE_7BIT, and __SMBUS_HandleTypeDef::State.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle ADD10 flag for Master.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2269 of file stm32f4xx_hal_smbus.c.
References __SMBUS_HandleTypeDef::Devaddress, HAL_OK, __SMBUS_HandleTypeDef::Instance, and SMBUS_10BIT_ADDRESS.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle ADDR flag for Master.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2283 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_ADDRFLAG, SMBUS_InitTypeDef::AddressingMode, __SMBUS_HandleTypeDef::EventCount, HAL_OK, HAL_SMBUS_STATE_BUSY_RX, __SMBUS_HandleTypeDef::Init, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::PreviousState, SMBUS_ADDRESSINGMODE_10BIT, SMBUS_FIRST_FRAME, SMBUS_NEXT_FRAME, SMBUS_STATE_MASTER_BUSY_RX, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle TXE flag for Slave.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2391 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_SlaveTxCpltCallback(), HAL_SMBUS_STATE_BUSY_TX_LISTEN, HAL_SMBUS_STATE_LISTEN, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_GET_PEC_MODE, SMBUS_IT_BUF, SMBUS_LAST_FRAME_WITH_PEC, SMBUS_PEC_ENABLE, SMBUS_STATE_SLAVE_BUSY_TX, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle BTF flag for Slave transmitter.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2433 of file stm32f4xx_hal_smbus.c.
References HAL_OK, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_GET_PEC_MODE, SMBUS_LAST_FRAME_WITH_PEC, SMBUS_PEC_ENABLE, __SMBUS_HandleTypeDef::XferCount, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle RXNE flag for Slave.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2457 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_SlaveRxCpltCallback(), HAL_SMBUS_STATE_BUSY_RX_LISTEN, HAL_SMBUS_STATE_LISTEN, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_GET_PEC, SMBUS_GET_PEC_MODE, SMBUS_IT_BUF, SMBUS_LAST_FRAME_WITH_PEC, SMBUS_PEC_ENABLE, SMBUS_STATE_SLAVE_BUSY_RX, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferPEC.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle BTF flag for Slave receiver.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2499 of file stm32f4xx_hal_smbus.c.
References HAL_OK, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, and __SMBUS_HandleTypeDef::XferCount.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle ADD flag for Slave.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2517 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_GET_FLAG, HAL_OK, HAL_SMBUS_AddrCallback(), __SMBUS_HandleTypeDef::Init, SMBUS_InitTypeDef::OwnAddress1, SMBUS_InitTypeDef::OwnAddress2, SMBUS_DIRECTION_RECEIVE, SMBUS_DIRECTION_TRANSMIT, SMBUS_FLAG_DUALF, and SMBUS_FLAG_TRA.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
Handle STOPF flag for Slave.
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2553 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_STOPFLAG, __HAL_SMBUS_DISABLE_IT, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::ErrorCode, HAL_OK, HAL_SMBUS_ERROR_NONE, HAL_SMBUS_ListenCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_RX_LISTEN, HAL_SMBUS_STATE_BUSY_TX_LISTEN, HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FLAG_BTF, SMBUS_FLAG_RXNE, SMBUS_IT_BUF, SMBUS_IT_ERR, SMBUS_IT_EVT, SMBUS_ITError(), SMBUS_NO_OPTION_FRAME, __SMBUS_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferSize.
Referenced by HAL_SMBUS_EV_IRQHandler().
|
static |
#include <stm32f4xx_hal_smbus.c>
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2627 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_DISABLE_IT, HAL_OK, HAL_SMBUS_ListenCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::PreviousState, SMBUS_FIRST_AND_LAST_FRAME_NO_PEC, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC, SMBUS_FLAG_AF, SMBUS_IT_BUF, SMBUS_IT_ERR, SMBUS_IT_EVT, SMBUS_LAST_FRAME_NO_PEC, SMBUS_LAST_FRAME_WITH_PEC, SMBUS_NO_OPTION_FRAME, __SMBUS_HandleTypeDef::State, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_ER_IRQHandler().