STM32F479xx HAL User Manual
Functions
SMBUS Private Functions
SMBUS Exported Functions | SMBUS

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)

Function Documentation

static void SMBUS_ITError ( SMBUS_HandleTypeDef hsmbus) [static]
static HAL_StatusTypeDef SMBUS_Master_ADD10 ( SMBUS_HandleTypeDef hsmbus) [static]

Handle ADD10 flag for Master.

Parameters:
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module
Return values:
HALstatus

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]
static HAL_StatusTypeDef SMBUS_Master_SB ( SMBUS_HandleTypeDef hsmbus) [static]

Handle SB flag for Master.

Parameters:
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module
Return values:
HALstatus

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]
static HAL_StatusTypeDef SMBUS_MasterReceive_RXNE ( SMBUS_HandleTypeDef hsmbus) [static]
static HAL_StatusTypeDef SMBUS_MasterTransmit_BTF ( SMBUS_HandleTypeDef hsmbus) [static]
static HAL_StatusTypeDef SMBUS_MasterTransmit_TXE ( SMBUS_HandleTypeDef hsmbus) [static]
static HAL_StatusTypeDef SMBUS_Slave_ADDR ( SMBUS_HandleTypeDef hsmbus) [static]

Handle ADD flag for Slave.

Parameters:
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module
Return values:
HALstatus

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]
static HAL_StatusTypeDef SMBUS_Slave_STOPF ( SMBUS_HandleTypeDef hsmbus) [static]
static HAL_StatusTypeDef SMBUS_SlaveReceive_BTF ( SMBUS_HandleTypeDef hsmbus) [static]

Handle BTF flag for Slave receiver.

Parameters:
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module
Return values:
HALstatus

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]
static HAL_StatusTypeDef SMBUS_SlaveTransmit_BTF ( SMBUS_HandleTypeDef hsmbus) [static]

Handle BTF flag for Slave transmitter.

Parameters:
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module
Return values:
HALstatus

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]
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.

Parameters:
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for SMBUS module
Flagspecifies the SMBUS flag to check.
StatusThe new Flag status (SET or RESET).
TimeoutTimeout duration
TickstartTick start value
Return values:
HALstatus

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().