STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
SMBUS Private Functions
Collaboration diagram for SMBUS Private Functions:

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)
 

Detailed Description

Function Documentation

◆ SMBUS_WaitOnFlagUntilTimeout()

static HAL_StatusTypeDef SMBUS_WaitOnFlagUntilTimeout ( SMBUS_HandleTypeDef * hsmbus,
uint32_t Flag,
FlagStatus Status,
uint32_t Timeout,
uint32_t Tickstart )
static

#include <stm32f4xx_hal_smbus.c>

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

◆ SMBUS_ITError()

◆ SMBUS_Flush_DR()

static void SMBUS_Flush_DR ( SMBUS_HandleTypeDef * hsmbus)
static

#include <stm32f4xx_hal_smbus.c>

SMBUS data register flush process.

Parameters
hsmbusSMBUS handle.
Return values
None

Definition at line 854 of file stm32f4xx_hal_smbus.c.

References __SMBUS_HandleTypeDef::Instance.

Referenced by HAL_SMBUS_ER_IRQHandler().

◆ SMBUS_MasterTransmit_TXE()

◆ SMBUS_MasterTransmit_BTF()

◆ SMBUS_MasterReceive_RXNE()

◆ SMBUS_MasterReceive_BTF()

◆ SMBUS_Master_SB()

static HAL_StatusTypeDef SMBUS_Master_SB ( SMBUS_HandleTypeDef * hsmbus)
static

#include <stm32f4xx_hal_smbus.c>

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

◆ SMBUS_Master_ADD10()

static HAL_StatusTypeDef SMBUS_Master_ADD10 ( SMBUS_HandleTypeDef * hsmbus)
static

#include <stm32f4xx_hal_smbus.c>

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

◆ SMBUS_Master_ADDR()

◆ SMBUS_SlaveTransmit_TXE()

◆ SMBUS_SlaveTransmit_BTF()

static HAL_StatusTypeDef SMBUS_SlaveTransmit_BTF ( SMBUS_HandleTypeDef * hsmbus)
static

#include <stm32f4xx_hal_smbus.c>

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

◆ SMBUS_SlaveReceive_RXNE()

◆ SMBUS_SlaveReceive_BTF()

static HAL_StatusTypeDef SMBUS_SlaveReceive_BTF ( SMBUS_HandleTypeDef * hsmbus)
static

#include <stm32f4xx_hal_smbus.c>

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

◆ SMBUS_Slave_ADDR()

static HAL_StatusTypeDef SMBUS_Slave_ADDR ( SMBUS_HandleTypeDef * hsmbus)
static

#include <stm32f4xx_hal_smbus.c>

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

◆ SMBUS_Slave_STOPF()

◆ SMBUS_Slave_AF()