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_FMPI2C_Init (FMPI2C_HandleTypeDef *hfmpi2c)
 Initializes the FMPI2C according to the specified parameters in the FMPI2C_InitTypeDef and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_FMPI2C_DeInit (FMPI2C_HandleTypeDef *hfmpi2c)
 DeInitialize the FMPI2C peripheral. More...
 
void HAL_FMPI2C_MspInit (FMPI2C_HandleTypeDef *hfmpi2c)
 Initialize the FMPI2C MSP. More...
 
void HAL_FMPI2C_MspDeInit (FMPI2C_HandleTypeDef *hfmpi2c)
 DeInitialize the FMPI2C MSP. More...
 
HAL_StatusTypeDef HAL_FMPI2C_RegisterCallback (FMPI2C_HandleTypeDef *hfmpi2c, HAL_FMPI2C_CallbackIDTypeDef CallbackID, pFMPI2C_CallbackTypeDef pCallback)
 Register a User FMPI2C Callback To be used instead of the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_FMPI2C_UnRegisterCallback (FMPI2C_HandleTypeDef *hfmpi2c, HAL_FMPI2C_CallbackIDTypeDef CallbackID)
 Unregister an FMPI2C Callback FMPI2C callback is redirected to the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_FMPI2C_RegisterAddrCallback (FMPI2C_HandleTypeDef *hfmpi2c, pFMPI2C_AddrCallbackTypeDef pCallback)
 Register the Slave Address Match FMPI2C Callback To be used instead of the weak HAL_FMPI2C_AddrCallback() predefined callback. More...
 
HAL_StatusTypeDef HAL_FMPI2C_UnRegisterAddrCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 UnRegister the Slave Address Match FMPI2C Callback Info Ready FMPI2C Callback is redirected to the weak HAL_FMPI2C_AddrCallback() predefined callback. 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 FMPI2Cx peripheral:

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

      (+) Call the function HAL_FMPI2C_Init() to configure the selected device with
          the selected configuration:
        (++) Clock Timing
        (++) Own Address 1
        (++) Addressing mode (Master, Slave)
        (++) Dual Addressing mode
        (++) Own Address 2
        (++) Own Address 2 Mask
        (++) General call mode
        (++) Nostretch mode

      (+) Call the function HAL_FMPI2C_DeInit() to restore the default configuration
          of the selected FMPI2Cx peripheral.

Function Documentation

◆ HAL_FMPI2C_DeInit()

HAL_StatusTypeDef HAL_FMPI2C_DeInit ( FMPI2C_HandleTypeDef hfmpi2c)

DeInitialize the FMPI2C peripheral.

Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
Return values
HALstatus

Definition at line 659 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_Init()

HAL_StatusTypeDef HAL_FMPI2C_Init ( FMPI2C_HandleTypeDef hfmpi2c)

Initializes the FMPI2C according to the specified parameters in the FMPI2C_InitTypeDef and initialize the associated handle.

Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
Return values
HALstatus

Definition at line 544 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_MspDeInit()

__weak void HAL_FMPI2C_MspDeInit ( FMPI2C_HandleTypeDef hfmpi2c)

DeInitialize the FMPI2C MSP.

Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
Return values
None

Definition at line 721 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_MspInit()

__weak void HAL_FMPI2C_MspInit ( FMPI2C_HandleTypeDef hfmpi2c)

Initialize the FMPI2C MSP.

Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
Return values
None

Definition at line 705 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_RegisterAddrCallback()

HAL_StatusTypeDef HAL_FMPI2C_RegisterAddrCallback ( FMPI2C_HandleTypeDef hfmpi2c,
pFMPI2C_AddrCallbackTypeDef  pCallback 
)

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

Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
pCallbackpointer to the Address Match Callback function
Return values
HALstatus

Definition at line 983 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_RegisterCallback()

HAL_StatusTypeDef HAL_FMPI2C_RegisterCallback ( FMPI2C_HandleTypeDef hfmpi2c,
HAL_FMPI2C_CallbackIDTypeDef  CallbackID,
pFMPI2C_CallbackTypeDef  pCallback 
)

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

Note
The HAL_FMPI2C_RegisterCallback() may be called before HAL_FMPI2C_Init() in HAL_FMPI2C_STATE_RESET to register callbacks for HAL_FMPI2C_MSPINIT_CB_ID and HAL_FMPI2C_MSPDEINIT_CB_ID.
Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
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 755 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_UnRegisterAddrCallback()

HAL_StatusTypeDef HAL_FMPI2C_UnRegisterAddrCallback ( FMPI2C_HandleTypeDef hfmpi2c)

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

Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
Return values
HALstatus

Definition at line 1018 of file stm32f4xx_hal_fmpi2c.c.

◆ HAL_FMPI2C_UnRegisterCallback()

HAL_StatusTypeDef HAL_FMPI2C_UnRegisterCallback ( FMPI2C_HandleTypeDef hfmpi2c,
HAL_FMPI2C_CallbackIDTypeDef  CallbackID 
)

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

Note
The HAL_FMPI2C_UnRegisterCallback() may be called before HAL_FMPI2C_Init() in HAL_FMPI2C_STATE_RESET to un-register callbacks for HAL_FMPI2C_MSPINIT_CB_ID and HAL_FMPI2C_MSPDEINIT_CB_ID.
Parameters
hfmpi2cPointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C.
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 881 of file stm32f4xx_hal_fmpi2c.c.