STM32F4xx_HAL_Driver  1.8.3
stm32f4xx_hal_fmpi2c.h File Reference

Header file of FMPI2C HAL module. More...

Go to the source code of this file.

Data Structures

struct  FMPI2C_InitTypeDef
 
struct  __FMPI2C_HandleTypeDef
 

Typedefs

typedef struct __FMPI2C_HandleTypeDef FMPI2C_HandleTypeDef
 
typedef void(* pFMPI2C_CallbackTypeDef) (FMPI2C_HandleTypeDef *hfmpi2c)
 HAL FMPI2C Callback pointer definition. More...
 
typedef void(* pFMPI2C_AddrCallbackTypeDef) (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t TransferDirection, uint16_t AddrMatchCode)
 

Enumerations

enum  HAL_FMPI2C_StateTypeDef {
  HAL_FMPI2C_STATE_RESET = 0x00U , HAL_FMPI2C_STATE_READY = 0x20U , HAL_FMPI2C_STATE_BUSY = 0x24U , HAL_FMPI2C_STATE_BUSY_TX = 0x21U ,
  HAL_FMPI2C_STATE_BUSY_RX = 0x22U , HAL_FMPI2C_STATE_LISTEN = 0x28U , HAL_FMPI2C_STATE_BUSY_TX_LISTEN = 0x29U , HAL_FMPI2C_STATE_BUSY_RX_LISTEN = 0x2AU ,
  HAL_FMPI2C_STATE_ABORT = 0x60U
}
 
enum  HAL_FMPI2C_ModeTypeDef { HAL_FMPI2C_MODE_NONE = 0x00U , HAL_FMPI2C_MODE_MASTER = 0x10U , HAL_FMPI2C_MODE_SLAVE = 0x20U , HAL_FMPI2C_MODE_MEM = 0x40U }
 
enum  HAL_FMPI2C_CallbackIDTypeDef {
  HAL_FMPI2C_MASTER_TX_COMPLETE_CB_ID = 0x00U , HAL_FMPI2C_MASTER_RX_COMPLETE_CB_ID = 0x01U , HAL_FMPI2C_SLAVE_TX_COMPLETE_CB_ID = 0x02U , HAL_FMPI2C_SLAVE_RX_COMPLETE_CB_ID = 0x03U ,
  HAL_FMPI2C_LISTEN_COMPLETE_CB_ID = 0x04U , HAL_FMPI2C_MEM_TX_COMPLETE_CB_ID = 0x05U , HAL_FMPI2C_MEM_RX_COMPLETE_CB_ID = 0x06U , HAL_FMPI2C_ERROR_CB_ID = 0x07U ,
  HAL_FMPI2C_ABORT_CB_ID = 0x08U , HAL_FMPI2C_MSPINIT_CB_ID = 0x09U , HAL_FMPI2C_MSPDEINIT_CB_ID = 0x0AU
}
 HAL FMPI2C Callback ID enumeration definition. 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. 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...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Transmit (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 Transmits in master mode an amount of data in blocking mode. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Receive (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 Receives in master mode an amount of data in blocking mode. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Transmit (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 Transmits in slave mode an amount of data in blocking mode. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Receive (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 Receive in slave mode an amount of data in blocking mode. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Mem_Write (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 Write an amount of data in blocking mode to a specific memory address. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Mem_Read (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 Read an amount of data in blocking mode from a specific memory address. More...
 
HAL_StatusTypeDef HAL_FMPI2C_IsDeviceReady (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout)
 Checks if target device is ready for communication. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Transmit_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size)
 Transmit in master mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Receive_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size)
 Receive in master mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Transmit_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size)
 Transmit in slave mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Receive_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size)
 Receive in slave mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Mem_Write_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size)
 Write an amount of data in non-blocking mode with Interrupt to a specific memory address. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Mem_Read_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size)
 Read an amount of data in non-blocking mode with Interrupt from a specific memory address. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Seq_Transmit_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential transmit in master FMPI2C mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Seq_Receive_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential receive in master FMPI2C mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Seq_Transmit_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential transmit in slave/device FMPI2C mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Seq_Receive_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential receive in slave/device FMPI2C mode an amount of data in non-blocking mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_EnableListen_IT (FMPI2C_HandleTypeDef *hfmpi2c)
 Enable the Address listen mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_DisableListen_IT (FMPI2C_HandleTypeDef *hfmpi2c)
 Disable the Address listen mode with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Abort_IT (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress)
 Abort a master FMPI2C IT or DMA process communication with Interrupt. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Transmit_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size)
 Transmit in master mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Receive_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size)
 Receive in master mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Transmit_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size)
 Transmit in slave mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Receive_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size)
 Receive in slave mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Mem_Write_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size)
 Write an amount of data in non-blocking mode with DMA to a specific memory address. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Mem_Read_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size)
 Reads an amount of data in non-blocking mode with DMA from a specific memory address. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Seq_Transmit_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential transmit in master FMPI2C mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Master_Seq_Receive_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential receive in master FMPI2C mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Seq_Transmit_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential transmit in slave/device FMPI2C mode an amount of data in non-blocking mode with DMA. More...
 
HAL_StatusTypeDef HAL_FMPI2C_Slave_Seq_Receive_DMA (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions)
 Sequential receive in slave/device FMPI2C mode an amount of data in non-blocking mode with DMA. More...
 
void HAL_FMPI2C_EV_IRQHandler (FMPI2C_HandleTypeDef *hfmpi2c)
 This function handles FMPI2C event interrupt request. More...
 
void HAL_FMPI2C_ER_IRQHandler (FMPI2C_HandleTypeDef *hfmpi2c)
 This function handles FMPI2C error interrupt request. More...
 
void HAL_FMPI2C_MasterTxCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Master Tx Transfer completed callback. More...
 
void HAL_FMPI2C_MasterRxCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Master Rx Transfer completed callback. More...
 
void HAL_FMPI2C_SlaveTxCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Slave Tx Transfer completed callback. More...
 
void HAL_FMPI2C_SlaveRxCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Slave Rx Transfer completed callback. More...
 
void HAL_FMPI2C_AddrCallback (FMPI2C_HandleTypeDef *hfmpi2c, uint8_t TransferDirection, uint16_t AddrMatchCode)
 Slave Address Match callback. More...
 
void HAL_FMPI2C_ListenCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Listen Complete callback. More...
 
void HAL_FMPI2C_MemTxCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Memory Tx Transfer completed callback. More...
 
void HAL_FMPI2C_MemRxCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 Memory Rx Transfer completed callback. More...
 
void HAL_FMPI2C_ErrorCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 FMPI2C error callback. More...
 
void HAL_FMPI2C_AbortCpltCallback (FMPI2C_HandleTypeDef *hfmpi2c)
 FMPI2C abort callback. More...
 
HAL_FMPI2C_StateTypeDef HAL_FMPI2C_GetState (const FMPI2C_HandleTypeDef *hfmpi2c)
 Return the FMPI2C handle state. More...
 
HAL_FMPI2C_ModeTypeDef HAL_FMPI2C_GetMode (const FMPI2C_HandleTypeDef *hfmpi2c)
 Returns the FMPI2C Master, Slave, Memory or no mode. More...
 
uint32_t HAL_FMPI2C_GetError (const FMPI2C_HandleTypeDef *hfmpi2c)
 Return the FMPI2C error code. More...
 

Detailed Description

Header file of FMPI2C HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_hal_fmpi2c.h.