STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Collaboration diagram for Blocking mode Polling:

Functions

HAL_StatusTypeDef HAL_FMPSMBUS_IsDeviceReady (FMPSMBUS_HandleTypeDef *hfmpsmbus, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout)
 Check if target device is ready for communication.
 
HAL_StatusTypeDef HAL_SMBUS_IsDeviceReady (SMBUS_HandleTypeDef *hsmbus, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout)
 Check if target device is ready for communication.
 

Detailed Description

Function Documentation

◆ HAL_FMPSMBUS_IsDeviceReady()

HAL_StatusTypeDef HAL_FMPSMBUS_IsDeviceReady ( FMPSMBUS_HandleTypeDef * hfmpsmbus,
uint16_t DevAddress,
uint32_t Trials,
uint32_t Timeout )

#include <stm32f4xx_hal_fmpsmbus.h>

Check if target device is ready for communication.

Parameters
hfmpsmbusPointer to a FMPSMBUS_HandleTypeDef structure that contains the configuration information for the specified FMPSMBUS.
DevAddressTarget device address: The device 7 bits address value in datasheet must be shifted to the left before calling the interface
TrialsNumber of trials
TimeoutTimeout duration
Return values
HALstatus

Definition at line 1484 of file stm32f4xx_hal_fmpsmbus.c.

References __HAL_FMPSMBUS_CLEAR_FLAG, __HAL_FMPSMBUS_GET_FLAG, __HAL_LOCK, __HAL_UNLOCK, FMPSMBUS_InitTypeDef::AddressingMode, FMPSMBUS_HandleTypeDef::ErrorCode, FMPSMBUS_FLAG_AF, FMPSMBUS_FLAG_BUSY, FMPSMBUS_FLAG_STOPF, FMPSMBUS_GENERATE_START, FMPSMBUS_WaitOnFlagUntilTimeout(), HAL_BUSY, HAL_ERROR, HAL_FMPSMBUS_ERROR_HALTIMEOUT, HAL_FMPSMBUS_ERROR_NONE, HAL_FMPSMBUS_STATE_BUSY, HAL_FMPSMBUS_STATE_READY, HAL_GetTick(), HAL_MAX_DELAY, HAL_OK, FMPSMBUS_HandleTypeDef::Init, FMPSMBUS_HandleTypeDef::Instance, and FMPSMBUS_HandleTypeDef::State.

◆ HAL_SMBUS_IsDeviceReady()

HAL_StatusTypeDef HAL_SMBUS_IsDeviceReady ( SMBUS_HandleTypeDef * hsmbus,
uint16_t DevAddress,
uint32_t Trials,
uint32_t Timeout )

#include <stm32f4xx_hal_smbus.h>

Check if target device is ready for communication.

Parameters
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
DevAddressTarget device address The device 7 bits address value in datasheet must be shifted to the left before calling the interface
TrialsNumber of trials
TimeoutTimeout duration
Return values
HALstatus

Definition at line 1404 of file stm32f4xx_hal_smbus.c.

References __HAL_LOCK, __HAL_SMBUS_CLEAR_ADDRFLAG, __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_ENABLE, __HAL_SMBUS_GET_FLAG, __HAL_UNLOCK, __SMBUS_HandleTypeDef::ErrorCode, HAL_BUSY, HAL_ERROR, HAL_GetTick(), HAL_OK, HAL_SMBUS_ERROR_NONE, HAL_SMBUS_STATE_BUSY, HAL_SMBUS_STATE_READY, HAL_SMBUS_STATE_TIMEOUT, HAL_TIMEOUT, __SMBUS_HandleTypeDef::Instance, SMBUS_7BIT_ADD_WRITE, SMBUS_FLAG_ADDR, SMBUS_FLAG_AF, SMBUS_FLAG_BUSY, SMBUS_FLAG_SB, SMBUS_NO_OPTION_FRAME, SMBUS_TIMEOUT_BUSY_FLAG, SMBUS_WaitOnFlagUntilTimeout(), __SMBUS_HandleTypeDef::State, and __SMBUS_HandleTypeDef::XferOptions.