STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions

Initialization and Configuration functions. More...

+ Collaboration diagram for Initialization and de-initialization functions:

Functions

HAL_StatusTypeDef HAL_SMBUS_Init (SMBUS_HandleTypeDef *hsmbus)
 Initializes the SMBUS according to the specified parameters in the SMBUS_InitTypeDef and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_SMBUS_DeInit (SMBUS_HandleTypeDef *hsmbus)
 DeInitializes the SMBUS peripheral. More...
 
void HAL_SMBUS_MspInit (SMBUS_HandleTypeDef *hsmbus)
 Initialize the SMBUS MSP. More...
 
void HAL_SMBUS_MspDeInit (SMBUS_HandleTypeDef *hsmbus)
 DeInitialize the SMBUS MSP. More...
 
HAL_StatusTypeDef HAL_SMBUS_RegisterCallback (SMBUS_HandleTypeDef *hsmbus, HAL_SMBUS_CallbackIDTypeDef CallbackID, pSMBUS_CallbackTypeDef pCallback)
 Register a User SMBUS Callback To be used instead of the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_SMBUS_UnRegisterCallback (SMBUS_HandleTypeDef *hsmbus, HAL_SMBUS_CallbackIDTypeDef CallbackID)
 Unregister an SMBUS Callback SMBUS callback is redirected to the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_SMBUS_RegisterAddrCallback (SMBUS_HandleTypeDef *hsmbus, pSMBUS_AddrCallbackTypeDef pCallback)
 Register the Slave Address Match SMBUS Callback To be used instead of the weak HAL_SMBUS_AddrCallback() predefined callback. More...
 
HAL_StatusTypeDef HAL_SMBUS_UnRegisterAddrCallback (SMBUS_HandleTypeDef *hsmbus)
 UnRegister the Slave Address Match SMBUS Callback Info Ready SMBUS Callback is redirected to the weak HAL_SMBUS_AddrCallback() predefined callback. More...
 
HAL_StatusTypeDef HAL_SMBUS_ConfigAnalogFilter (SMBUS_HandleTypeDef *hsmbus, uint32_t AnalogFilter)
 Configures SMBUS Analog noise filter. More...
 
HAL_StatusTypeDef HAL_SMBUS_ConfigDigitalFilter (SMBUS_HandleTypeDef *hsmbus, uint32_t DigitalFilter)
 Configures SMBUS Digital noise filter. More...
 

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
              ##### Initialization and de-initialization functions #####
 ===============================================================================
    [..]  This subsection provides a set of functions allowing to initialize and
          deinitialize the SMBUSx peripheral:

      (+) User must Implement HAL_SMBUS_MspInit() function in which he configures
          all related peripherals resources (CLOCK, GPIO, IT and NVIC).

      (+) Call the function HAL_SMBUS_Init() to configure the selected device with
          the selected configuration:
        (++) Communication Speed
        (++) Addressing mode
        (++) Own Address 1
        (++) Dual Addressing mode
        (++) Own Address 2
        (++) General call mode
        (++) Nostretch mode
        (++) Packet Error Check mode
        (++) Peripheral mode

      (+) Call the function HAL_SMBUS_DeInit() to restore the default configuration
          of the selected SMBUSx peripheral.

Function Documentation

◆ HAL_SMBUS_ConfigAnalogFilter()

HAL_StatusTypeDef HAL_SMBUS_ConfigAnalogFilter ( SMBUS_HandleTypeDef hsmbus,
uint32_t  AnalogFilter 
)

Configures SMBUS Analog noise filter.

Parameters
hsmbuspointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUSx peripheral.
AnalogFilternew state of the Analog filter.
Return values
HALstatus

Definition at line 473 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_ConfigDigitalFilter()

HAL_StatusTypeDef HAL_SMBUS_ConfigDigitalFilter ( SMBUS_HandleTypeDef hsmbus,
uint32_t  DigitalFilter 
)

Configures SMBUS Digital noise filter.

Parameters
hsmbuspointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUSx peripheral.
DigitalFilterCoefficient of digital noise filter between 0x00 and 0x0F.
Return values
HALstatus

Definition at line 511 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_DeInit()

HAL_StatusTypeDef HAL_SMBUS_DeInit ( SMBUS_HandleTypeDef hsmbus)

DeInitializes the SMBUS peripheral.

Parameters
hsmbuspointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
Return values
HALstatus

Definition at line 395 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_Init()

HAL_StatusTypeDef HAL_SMBUS_Init ( SMBUS_HandleTypeDef hsmbus)

Initializes the SMBUS according to the specified parameters in the SMBUS_InitTypeDef and initialize the associated handle.

Parameters
hsmbuspointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS
Return values
HALstatus

Definition at line 282 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_MspDeInit()

__weak void HAL_SMBUS_MspDeInit ( SMBUS_HandleTypeDef hsmbus)

DeInitialize the SMBUS MSP.

Parameters
hsmbuspointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS
Return values
None

Definition at line 456 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_MspInit()

__weak void HAL_SMBUS_MspInit ( SMBUS_HandleTypeDef hsmbus)

Initialize the SMBUS MSP.

Parameters
hsmbuspointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS
Return values
None

Definition at line 441 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_RegisterAddrCallback()

HAL_StatusTypeDef HAL_SMBUS_RegisterAddrCallback ( SMBUS_HandleTypeDef hsmbus,
pSMBUS_AddrCallbackTypeDef  pCallback 
)

Register the Slave Address Match SMBUS Callback To be used instead of the weak HAL_SMBUS_AddrCallback() predefined callback.

Parameters
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
pCallbackpointer to the Address Match Callback function
Return values
HALstatus

Definition at line 786 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_RegisterCallback()

HAL_StatusTypeDef HAL_SMBUS_RegisterCallback ( SMBUS_HandleTypeDef hsmbus,
HAL_SMBUS_CallbackIDTypeDef  CallbackID,
pSMBUS_CallbackTypeDef  pCallback 
)

Register a User SMBUS Callback To be used instead of the weak predefined callback.

Parameters
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values
HALstatus

Definition at line 570 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_UnRegisterAddrCallback()

HAL_StatusTypeDef HAL_SMBUS_UnRegisterAddrCallback ( SMBUS_HandleTypeDef hsmbus)

UnRegister the Slave Address Match SMBUS Callback Info Ready SMBUS Callback is redirected to the weak HAL_SMBUS_AddrCallback() predefined callback.

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

Definition at line 822 of file stm32f4xx_hal_smbus.c.

◆ HAL_SMBUS_UnRegisterCallback()

HAL_StatusTypeDef HAL_SMBUS_UnRegisterCallback ( SMBUS_HandleTypeDef hsmbus,
HAL_SMBUS_CallbackIDTypeDef  CallbackID 
)

Unregister an SMBUS Callback SMBUS callback is redirected to the weak predefined callback.

Parameters
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
CallbackIDID of the callback to be unregistered This parameter can be one of the following values: This parameter can be one of the following values:
Return values
HALstatus

Definition at line 687 of file stm32f4xx_hal_smbus.c.