STM32F479xx HAL User Manual
|
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 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 void SMBUS_ITError | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
SMBUS interrupts error process.
hsmbus | SMBUS handle. |
None |
Definition at line 2652 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::AbortCpltCallback, __SMBUS_HandleTypeDef::ErrorCallback, __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::ListenCpltCallback, __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 HAL_StatusTypeDef SMBUS_Master_ADD10 | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2252 of file stm32f4xx_hal_smbus.c.
References __SMBUS_HandleTypeDef::Devaddress, __SMBUS_HandleTypeDef::Instance, and SMBUS_10BIT_ADDRESS.
Referenced by HAL_SMBUS_EV_IRQHandler().
static HAL_StatusTypeDef SMBUS_Master_ADDR | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2266 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_ADDRFLAG, SMBUS_InitTypeDef::AddressingMode, __SMBUS_HandleTypeDef::EventCount, 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 HAL_StatusTypeDef SMBUS_Master_SB | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2216 of file stm32f4xx_hal_smbus.c.
References SMBUS_InitTypeDef::AddressingMode, __SMBUS_HandleTypeDef::Devaddress, __SMBUS_HandleTypeDef::EventCount, 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 HAL_StatusTypeDef SMBUS_MasterReceive_BTF | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2134 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_MasterRxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::MasterRxCpltCallback, __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 HAL_StatusTypeDef SMBUS_MasterReceive_RXNE | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2060 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_MasterRxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_RX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::MasterRxCpltCallback, __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, USE_HAL_SMBUS_REGISTER_CALLBACKS, __SMBUS_HandleTypeDef::XferCount, __SMBUS_HandleTypeDef::XferOptions, and __SMBUS_HandleTypeDef::XferPEC.
Referenced by HAL_SMBUS_EV_IRQHandler().
static HAL_StatusTypeDef SMBUS_MasterTransmit_BTF | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2002 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_MasterTxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_TX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::MasterTxCpltCallback, __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_HandleTypeDef::State, __SMBUS_HandleTypeDef::XferCount, and __SMBUS_HandleTypeDef::XferOptions.
Referenced by HAL_SMBUS_EV_IRQHandler().
static HAL_StatusTypeDef SMBUS_MasterTransmit_TXE | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 1924 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_MasterTxCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_BUSY_TX, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::MasterTxCpltCallback, __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 HAL_StatusTypeDef SMBUS_Slave_ADDR | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2500 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::AddrCallback, 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 HAL_StatusTypeDef SMBUS_Slave_AF | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module |
HAL | status |
Definition at line 2610 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_ListenCpltCallback(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_LISTEN, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::ListenCpltCallback, __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().
static HAL_StatusTypeDef SMBUS_Slave_STOPF | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2536 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_STOPFLAG, __HAL_SMBUS_DISABLE_IT, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::ErrorCode, 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::ListenCpltCallback, __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 HAL_StatusTypeDef SMBUS_SlaveReceive_BTF | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2482 of file stm32f4xx_hal_smbus.c.
References __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, and __SMBUS_HandleTypeDef::XferCount.
Referenced by HAL_SMBUS_EV_IRQHandler().
static HAL_StatusTypeDef SMBUS_SlaveReceive_RXNE | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2440 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_SlaveRxCpltCallback(), HAL_SMBUS_STATE_BUSY_RX_LISTEN, HAL_SMBUS_STATE_LISTEN, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, __SMBUS_HandleTypeDef::SlaveRxCpltCallback, 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 HAL_StatusTypeDef SMBUS_SlaveTransmit_BTF | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2416 of file stm32f4xx_hal_smbus.c.
References __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 HAL_StatusTypeDef SMBUS_SlaveTransmit_TXE | ( | SMBUS_HandleTypeDef * | hsmbus | ) | [static] |
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 2374 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_DISABLE_IT, HAL_SMBUS_SlaveTxCpltCallback(), HAL_SMBUS_STATE_BUSY_TX_LISTEN, HAL_SMBUS_STATE_LISTEN, __SMBUS_HandleTypeDef::Instance, __SMBUS_HandleTypeDef::pBuffPtr, __SMBUS_HandleTypeDef::PreviousState, __SMBUS_HandleTypeDef::SlaveTxCpltCallback, 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 HAL_StatusTypeDef SMBUS_WaitOnFlagUntilTimeout | ( | SMBUS_HandleTypeDef * | hsmbus, |
uint32_t | Flag, | ||
FlagStatus | Status, | ||
uint32_t | Timeout, | ||
uint32_t | Tickstart | ||
) | [static] |
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 2745 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_GET_FLAG, HAL_GetTick(), HAL_SMBUS_MODE_NONE, HAL_SMBUS_STATE_READY, __SMBUS_HandleTypeDef::Mode, __SMBUS_HandleTypeDef::PreviousState, SMBUS_STATE_NONE, and __SMBUS_HandleTypeDef::State.
Referenced by HAL_SMBUS_IsDeviceReady().