STM32F439xx HAL User Manual
|
IRDA HAL module driver. This file provides firmware functions to manage the following functionalities of the IrDA SIR ENDEC block (IrDA): + Initialization and de-initialization methods + IO operation methods + Peripheral Control methods. More...
#include "stm32f4xx_hal.h"
Go to the source code of this file.
Functions | |
static void | IRDA_SetConfig (IRDA_HandleTypeDef *hirda) |
Configures the IRDA peripheral. | |
static HAL_StatusTypeDef | IRDA_Transmit_IT (IRDA_HandleTypeDef *hirda) |
Send an amount of data in non blocking mode. | |
static HAL_StatusTypeDef | IRDA_EndTransmit_IT (IRDA_HandleTypeDef *hirda) |
Wraps up transmission in non blocking mode. | |
static HAL_StatusTypeDef | IRDA_Receive_IT (IRDA_HandleTypeDef *hirda) |
Receives an amount of data in non blocking mode. | |
static void | IRDA_DMATransmitCplt (DMA_HandleTypeDef *hdma) |
DMA IRDA transmit process complete callback. | |
static void | IRDA_DMATransmitHalfCplt (DMA_HandleTypeDef *hdma) |
DMA IRDA receive process half complete callback. | |
static void | IRDA_DMAReceiveCplt (DMA_HandleTypeDef *hdma) |
DMA IRDA receive process complete callback. | |
static void | IRDA_DMAReceiveHalfCplt (DMA_HandleTypeDef *hdma) |
DMA IRDA receive process half complete callback. | |
static void | IRDA_DMAError (DMA_HandleTypeDef *hdma) |
DMA IRDA communication error callback. | |
static void | IRDA_DMAAbortOnError (DMA_HandleTypeDef *hdma) |
DMA IRDA communication abort callback, when initiated by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence). | |
static void | IRDA_DMATxAbortCallback (DMA_HandleTypeDef *hdma) |
DMA IRDA Tx communication abort callback, when initiated by user (To be called at end of DMA Tx Abort procedure following user abort request). | |
static void | IRDA_DMARxAbortCallback (DMA_HandleTypeDef *hdma) |
DMA IRDA Rx communication abort callback, when initiated by user (To be called at end of DMA Rx Abort procedure following user abort request). | |
static void | IRDA_DMATxOnlyAbortCallback (DMA_HandleTypeDef *hdma) |
DMA IRDA Tx communication abort callback, when initiated by user by a call to HAL_IRDA_AbortTransmit_IT API (Abort only Tx transfer) (This callback is executed at end of DMA Tx Abort procedure following user abort request, and leads to user Tx Abort Complete callback execution). | |
static void | IRDA_DMARxOnlyAbortCallback (DMA_HandleTypeDef *hdma) |
DMA IRDA Rx communication abort callback, when initiated by user by a call to HAL_IRDA_AbortReceive_IT API (Abort only Rx transfer) (This callback is executed at end of DMA Rx Abort procedure following user abort request, and leads to user Rx Abort Complete callback execution). | |
static HAL_StatusTypeDef | IRDA_WaitOnFlagUntilTimeout (IRDA_HandleTypeDef *hirda, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) |
This function handles IRDA Communication Timeout. | |
static void | IRDA_EndTxTransfer (IRDA_HandleTypeDef *hirda) |
End ongoing Tx transfer on IRDA peripheral (following error detection or Transmit completion). | |
static void | IRDA_EndRxTransfer (IRDA_HandleTypeDef *hirda) |
End ongoing Rx transfer on IRDA peripheral (following error detection or Reception completion). | |
HAL_StatusTypeDef | HAL_IRDA_Init (IRDA_HandleTypeDef *hirda) |
Initializes the IRDA mode according to the specified parameters in the IRDA_InitTypeDef and create the associated handle. | |
HAL_StatusTypeDef | HAL_IRDA_DeInit (IRDA_HandleTypeDef *hirda) |
DeInitializes the IRDA peripheral. | |
__weak void | HAL_IRDA_MspInit (IRDA_HandleTypeDef *hirda) |
IRDA MSP Init. | |
__weak void | HAL_IRDA_MspDeInit (IRDA_HandleTypeDef *hirda) |
IRDA MSP DeInit. | |
HAL_StatusTypeDef | HAL_IRDA_Transmit (IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout) |
Sends an amount of data in blocking mode. | |
HAL_StatusTypeDef | HAL_IRDA_Receive (IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout) |
Receive an amount of data in blocking mode. | |
HAL_StatusTypeDef | HAL_IRDA_Transmit_IT (IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size) |
Send an amount of data in non blocking mode. | |
HAL_StatusTypeDef | HAL_IRDA_Receive_IT (IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size) |
Receives an amount of data in non blocking mode. | |
HAL_StatusTypeDef | HAL_IRDA_Transmit_DMA (IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size) |
Sends an amount of data in non blocking mode. | |
HAL_StatusTypeDef | HAL_IRDA_Receive_DMA (IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size) |
Receives an amount of data in non blocking mode. | |
HAL_StatusTypeDef | HAL_IRDA_DMAPause (IRDA_HandleTypeDef *hirda) |
Pauses the DMA Transfer. | |
HAL_StatusTypeDef | HAL_IRDA_DMAResume (IRDA_HandleTypeDef *hirda) |
Resumes the DMA Transfer. | |
HAL_StatusTypeDef | HAL_IRDA_DMAStop (IRDA_HandleTypeDef *hirda) |
Stops the DMA Transfer. | |
HAL_StatusTypeDef | HAL_IRDA_Abort (IRDA_HandleTypeDef *hirda) |
Abort ongoing transfers (blocking mode). | |
HAL_StatusTypeDef | HAL_IRDA_AbortTransmit (IRDA_HandleTypeDef *hirda) |
Abort ongoing Transmit transfer (blocking mode). | |
HAL_StatusTypeDef | HAL_IRDA_AbortReceive (IRDA_HandleTypeDef *hirda) |
Abort ongoing Receive transfer (blocking mode). | |
HAL_StatusTypeDef | HAL_IRDA_Abort_IT (IRDA_HandleTypeDef *hirda) |
Abort ongoing transfers (Interrupt mode). | |
HAL_StatusTypeDef | HAL_IRDA_AbortTransmit_IT (IRDA_HandleTypeDef *hirda) |
Abort ongoing Transmit transfer (Interrupt mode). | |
HAL_StatusTypeDef | HAL_IRDA_AbortReceive_IT (IRDA_HandleTypeDef *hirda) |
Abort ongoing Receive transfer (Interrupt mode). | |
void | HAL_IRDA_IRQHandler (IRDA_HandleTypeDef *hirda) |
This function handles IRDA interrupt request. | |
__weak void | HAL_IRDA_TxCpltCallback (IRDA_HandleTypeDef *hirda) |
Tx Transfer complete callbacks. | |
__weak void | HAL_IRDA_TxHalfCpltCallback (IRDA_HandleTypeDef *hirda) |
Tx Half Transfer completed callbacks. | |
__weak void | HAL_IRDA_RxCpltCallback (IRDA_HandleTypeDef *hirda) |
Rx Transfer complete callbacks. | |
__weak void | HAL_IRDA_RxHalfCpltCallback (IRDA_HandleTypeDef *hirda) |
Rx Half Transfer complete callbacks. | |
__weak void | HAL_IRDA_ErrorCallback (IRDA_HandleTypeDef *hirda) |
IRDA error callbacks. | |
__weak void | HAL_IRDA_AbortCpltCallback (IRDA_HandleTypeDef *hirda) |
IRDA Abort Complete callback. | |
__weak void | HAL_IRDA_AbortTransmitCpltCallback (IRDA_HandleTypeDef *hirda) |
IRDA Abort Transmit Complete callback. | |
__weak void | HAL_IRDA_AbortReceiveCpltCallback (IRDA_HandleTypeDef *hirda) |
IRDA Abort ReceiveComplete callback. | |
HAL_IRDA_StateTypeDef | HAL_IRDA_GetState (IRDA_HandleTypeDef *hirda) |
Returns the IRDA state. | |
uint32_t | HAL_IRDA_GetError (IRDA_HandleTypeDef *hirda) |
Return the IARDA error code. |
IRDA HAL module driver. This file provides firmware functions to manage the following functionalities of the IrDA SIR ENDEC block (IrDA): + Initialization and de-initialization methods + IO operation methods + Peripheral Control methods.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32f4xx_hal_irda.c.