STM32F439xx HAL User Manual
Modules | Functions
IrDA Exported Functions
IRDA

Modules

 IrDA Initialization and de-initialization functions
 

Initialization and Configuration functions.


 IO operation functions
 

IRDA Transmit/Receive functions.


 Peripheral State and Errors functions
 

IRDA State and Errors functions.


Functions

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 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 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_SetConfig (IRDA_HandleTypeDef *hirda)
 Configures the IRDA peripheral.

Function Documentation

static void IRDA_DMAError ( DMA_HandleTypeDef hdma) [static]
static void IRDA_DMAReceiveCplt ( DMA_HandleTypeDef hdma) [static]

DMA IRDA receive process complete callback.

Parameters:
hdmaDMA handle
Return values:
None

Definition at line 1801 of file stm32f4xx_hal_irda.c.

References HAL_IRDA_RxCpltCallback(), HAL_IRDA_STATE_READY, IRDA_HandleTypeDef::Instance, __DMA_HandleTypeDef::Instance, IRDA_HandleTypeDef::RxState, and IRDA_HandleTypeDef::RxXferCount.

Referenced by HAL_IRDA_Receive_DMA().

static void IRDA_DMAReceiveHalfCplt ( DMA_HandleTypeDef hdma) [static]

DMA IRDA receive process half complete callback.

Parameters:
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 1830 of file stm32f4xx_hal_irda.c.

References HAL_IRDA_RxHalfCpltCallback().

Referenced by HAL_IRDA_Receive_DMA().

static void IRDA_DMATransmitCplt ( DMA_HandleTypeDef hdma) [static]

DMA IRDA transmit process complete callback.

Parameters:
hdmaDMA handle
Return values:
None

Definition at line 1761 of file stm32f4xx_hal_irda.c.

References HAL_IRDA_TxCpltCallback(), IRDA_HandleTypeDef::Instance, __DMA_HandleTypeDef::Instance, and IRDA_HandleTypeDef::TxXferCount.

Referenced by HAL_IRDA_Transmit_DMA().

static void IRDA_DMATransmitHalfCplt ( DMA_HandleTypeDef hdma) [static]

DMA IRDA receive process half complete callback.

Parameters:
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 1789 of file stm32f4xx_hal_irda.c.

References HAL_IRDA_TxHalfCpltCallback().

Referenced by HAL_IRDA_Transmit_DMA().

static HAL_StatusTypeDef IRDA_EndTransmit_IT ( IRDA_HandleTypeDef hirda) [static]

Wraps up transmission in non blocking mode.

Parameters:
hirdapointer to a IRDA_HandleTypeDef structure that contains the configuration information for the specified IRDA module.
Return values:
HALstatus

Definition at line 1958 of file stm32f4xx_hal_irda.c.

References IRDA_HandleTypeDef::gState, HAL_IRDA_STATE_READY, HAL_IRDA_TxCpltCallback(), and IRDA_HandleTypeDef::Instance.

Referenced by HAL_IRDA_IRQHandler().

static HAL_StatusTypeDef IRDA_Receive_IT ( IRDA_HandleTypeDef hirda) [static]

Receives an amount of data in non blocking mode.

Parameters:
hirdapointer to a IRDA_HandleTypeDef structure that contains the configuration information for the specified IRDA module.
Return values:
HALstatus

Definition at line 1980 of file stm32f4xx_hal_irda.c.

References HAL_IRDA_RxCpltCallback(), HAL_IRDA_STATE_BUSY_RX, HAL_IRDA_STATE_READY, IRDA_HandleTypeDef::Init, IRDA_HandleTypeDef::Instance, IRDA_PARITY_NONE, IRDA_WORDLENGTH_9B, IRDA_InitTypeDef::Parity, IRDA_HandleTypeDef::pRxBuffPtr, IRDA_HandleTypeDef::RxState, IRDA_HandleTypeDef::RxXferCount, and IRDA_InitTypeDef::WordLength.

Referenced by HAL_IRDA_IRQHandler().

static void IRDA_SetConfig ( IRDA_HandleTypeDef hirda) [static]

Configures the IRDA peripheral.

Parameters:
hirdapointer to a IRDA_HandleTypeDef structure that contains the configuration information for the specified IRDA module.
Return values:
None

Definition at line 2047 of file stm32f4xx_hal_irda.c.

References assert_param, IRDA_InitTypeDef::BaudRate, HAL_RCC_GetPCLK1Freq(), HAL_RCC_GetPCLK2Freq(), IRDA_HandleTypeDef::Init, IRDA_HandleTypeDef::Instance, IRDA_BRR, IS_IRDA_BAUDRATE, IS_IRDA_MODE, IS_IRDA_PARITY, IS_IRDA_WORD_LENGTH, IRDA_InitTypeDef::Mode, IRDA_InitTypeDef::Parity, and IRDA_InitTypeDef::WordLength.

Referenced by HAL_IRDA_Init().

static HAL_StatusTypeDef IRDA_Transmit_IT ( IRDA_HandleTypeDef hirda) [static]

Send an amount of data in non blocking mode.

Parameters:
hirdapointer to a IRDA_HandleTypeDef structure that contains the configuration information for the specified IRDA module.
Return values:
HALstatus

Definition at line 1910 of file stm32f4xx_hal_irda.c.

References IRDA_HandleTypeDef::gState, HAL_IRDA_STATE_BUSY_TX, IRDA_HandleTypeDef::Init, IRDA_HandleTypeDef::Instance, IRDA_PARITY_NONE, IRDA_WORDLENGTH_9B, IRDA_InitTypeDef::Parity, IRDA_HandleTypeDef::pTxBuffPtr, IRDA_HandleTypeDef::TxXferCount, and IRDA_InitTypeDef::WordLength.

Referenced by HAL_IRDA_IRQHandler().

static HAL_StatusTypeDef IRDA_WaitOnFlagUntilTimeout ( IRDA_HandleTypeDef hirda,
uint32_t  Flag,
FlagStatus  Status,
uint32_t  Tickstart,
uint32_t  Timeout 
) [static]

This function handles IRDA Communication Timeout.

Parameters:
hirdapointer to a IRDA_HandleTypeDef structure that contains the configuration information for the specified IRDA module.
Flagspecifies the IRDA flag to check.
StatusThe new Flag status (SET or RESET).
TickstartTick start value
TimeoutTimeout duration
Return values:
HALstatus

Definition at line 1877 of file stm32f4xx_hal_irda.c.

References __HAL_IRDA_GET_FLAG, IRDA_HandleTypeDef::gState, HAL_GetTick(), HAL_IRDA_STATE_READY, IRDA_HandleTypeDef::Instance, and IRDA_HandleTypeDef::RxState.

Referenced by HAL_IRDA_Receive(), and HAL_IRDA_Transmit().