|
STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Initialization and Configuration functions. More...
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. | |
| HAL_StatusTypeDef | HAL_FMPI2C_DeInit (FMPI2C_HandleTypeDef *hfmpi2c) |
| DeInitialize the FMPI2C peripheral. | |
| void | HAL_FMPI2C_MspInit (FMPI2C_HandleTypeDef *hfmpi2c) |
| Initialize the FMPI2C MSP. | |
| void | HAL_FMPI2C_MspDeInit (FMPI2C_HandleTypeDef *hfmpi2c) |
| DeInitialize the FMPI2C MSP. | |
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.| HAL_StatusTypeDef HAL_FMPI2C_Init | ( | FMPI2C_HandleTypeDef * | hfmpi2c | ) |
#include <stm32f4xx_hal_fmpi2c.h>
Initializes the FMPI2C according to the specified parameters in the FMPI2C_InitTypeDef and initialize the associated handle.
| hfmpi2c | Pointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C. |
| HAL | status |
Definition at line 536 of file stm32f4xx_hal_fmpi2c.c.
References __HAL_FMPI2C_DISABLE, __HAL_FMPI2C_ENABLE, FMPI2C_InitTypeDef::AddressingMode, assert_param, FMPI2C_InitTypeDef::DualAddressMode, __FMPI2C_HandleTypeDef::ErrorCode, FMPI2C_ADDRESSINGMODE_10BIT, FMPI2C_ADDRESSINGMODE_7BIT, FMPI2C_STATE_NONE, FMPI2C_InitTypeDef::GeneralCallMode, HAL_ERROR, HAL_FMPI2C_AbortCpltCallback(), HAL_FMPI2C_AddrCallback(), HAL_FMPI2C_ERROR_NONE, HAL_FMPI2C_ErrorCallback(), HAL_FMPI2C_ListenCpltCallback(), HAL_FMPI2C_MasterRxCpltCallback(), HAL_FMPI2C_MasterTxCpltCallback(), HAL_FMPI2C_MemRxCpltCallback(), HAL_FMPI2C_MemTxCpltCallback(), HAL_FMPI2C_MODE_NONE, HAL_FMPI2C_MspInit(), HAL_FMPI2C_SlaveRxCpltCallback(), HAL_FMPI2C_SlaveTxCpltCallback(), HAL_FMPI2C_STATE_BUSY, HAL_FMPI2C_STATE_READY, HAL_FMPI2C_STATE_RESET, HAL_OK, HAL_UNLOCKED, __FMPI2C_HandleTypeDef::Init, __FMPI2C_HandleTypeDef::Instance, IS_FMPI2C_ADDRESSING_MODE, IS_FMPI2C_DUAL_ADDRESS, IS_FMPI2C_GENERAL_CALL, IS_FMPI2C_NO_STRETCH, IS_FMPI2C_OWN_ADDRESS1, IS_FMPI2C_OWN_ADDRESS2, IS_FMPI2C_OWN_ADDRESS2_MASK, __FMPI2C_HandleTypeDef::Lock, __FMPI2C_HandleTypeDef::Mode, FMPI2C_InitTypeDef::NoStretchMode, FMPI2C_InitTypeDef::OwnAddress1, FMPI2C_InitTypeDef::OwnAddress2, FMPI2C_InitTypeDef::OwnAddress2Masks, __FMPI2C_HandleTypeDef::PreviousState, __FMPI2C_HandleTypeDef::State, FMPI2C_InitTypeDef::Timing, and TIMING_CLEAR_MASK.
| HAL_StatusTypeDef HAL_FMPI2C_DeInit | ( | FMPI2C_HandleTypeDef * | hfmpi2c | ) |
#include <stm32f4xx_hal_fmpi2c.h>
DeInitialize the FMPI2C peripheral.
| hfmpi2c | Pointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C. |
| HAL | status |
Definition at line 651 of file stm32f4xx_hal_fmpi2c.c.
References __HAL_FMPI2C_DISABLE, __HAL_UNLOCK, assert_param, __FMPI2C_HandleTypeDef::ErrorCode, FMPI2C_STATE_NONE, HAL_ERROR, HAL_FMPI2C_ERROR_NONE, HAL_FMPI2C_MODE_NONE, HAL_FMPI2C_MspDeInit(), HAL_FMPI2C_STATE_BUSY, HAL_FMPI2C_STATE_RESET, HAL_OK, __FMPI2C_HandleTypeDef::Instance, __FMPI2C_HandleTypeDef::Mode, __FMPI2C_HandleTypeDef::PreviousState, and __FMPI2C_HandleTypeDef::State.
| __weak void HAL_FMPI2C_MspInit | ( | FMPI2C_HandleTypeDef * | hfmpi2c | ) |
#include <stm32f4xx_hal_fmpi2c.h>
Initialize the FMPI2C MSP.
| hfmpi2c | Pointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C. |
| None |
Definition at line 697 of file stm32f4xx_hal_fmpi2c.c.
References UNUSED.
Referenced by HAL_FMPI2C_Init().
| __weak void HAL_FMPI2C_MspDeInit | ( | FMPI2C_HandleTypeDef * | hfmpi2c | ) |
#include <stm32f4xx_hal_fmpi2c.h>
DeInitialize the FMPI2C MSP.
| hfmpi2c | Pointer to a FMPI2C_HandleTypeDef structure that contains the configuration information for the specified FMPI2C. |
| None |
Definition at line 713 of file stm32f4xx_hal_fmpi2c.c.
References UNUSED.
Referenced by HAL_FMPI2C_DeInit().