Header file of IRDA HAL module. More...
#include "stm32f4xx_hal_def.h"
Go to the source code of this file.
Classes | |
| struct | IRDA_HandleTypeDef | 
| IRDA handle Structure definition.  More... | |
| struct | IRDA_InitTypeDef | 
| IRDA Init Structure definition.  More... | |
Macros | |
| #define | __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) | 
| Clear the IRDA FE pending flag.  More... | |
| #define | __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) | 
| Clear the specified IRDA pending flag.  More... | |
| #define | __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) | 
| Clear the IRDA IDLE pending flag.  More... | |
| #define | __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) | 
| Clear the IRDA NE pending flag.  More... | |
| #define | __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) | 
| Clear the IRDA ORE pending flag.  More... | |
| #define | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) | 
| Clear the IRDA PE pending flag.  More... | |
| #define | __HAL_IRDA_DISABLE(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE)) | 
| Disable UART/USART associated to IRDA Handle.  More... | |
| #define | __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) | 
| Disable the specified IRDA interrupt.  More... | |
| #define | __HAL_IRDA_ENABLE(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE)) | 
| Enable UART/USART associated to IRDA Handle.  More... | |
| #define | __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) | 
| Enable the specified IRDA interrupt.  More... | |
| #define | __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) ((__HANDLE__)->Instance->DR) | 
| Flush the IRDA DR register.  More... | |
| #define | __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) | 
| Check whether the specified IRDA flag is set or not.  More... | |
| #define | __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __IT__) | 
| Check whether the specified IRDA interrupt has occurred or not.  More... | |
| #define | __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT)) | 
| Macro to disable the IRDA's one bit sample method.  More... | |
| #define | __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 |= USART_CR3_ONEBIT) | 
| Macro to enable the IRDA's one bit sample method.  More... | |
| #define | __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) | 
| Reset IRDA handle gstate & RxState.  More... | |
| #define | HAL_IRDA_ERROR_DMA 0x00000010U | 
| #define | HAL_IRDA_ERROR_FE 0x00000004U | 
| #define | HAL_IRDA_ERROR_NE 0x00000002U | 
| #define | HAL_IRDA_ERROR_NONE 0x00000000U | 
| #define | HAL_IRDA_ERROR_ORE 0x00000008U | 
| #define | HAL_IRDA_ERROR_PE 0x00000001U | 
| #define | IRDA_BRR(_PCLK_, _BAUD_) | 
| #define | IRDA_CR1_REG_INDEX 1U | 
| #define | IRDA_CR2_REG_INDEX 2U | 
| #define | IRDA_CR3_REG_INDEX 3U | 
| #define | IRDA_DIV(_PCLK_, _BAUD_) ((uint32_t)((((uint64_t)(_PCLK_))*25U)/(4U*(((uint64_t)(_BAUD_)))))) | 
| #define | IRDA_DIVFRAQ(_PCLK_, _BAUD_) ((((IRDA_DIV((_PCLK_), (_BAUD_)) - (IRDA_DIVMANT((_PCLK_), (_BAUD_)) * 100U)) * 16U) + 50U) / 100U) | 
| #define | IRDA_DIVMANT(_PCLK_, _BAUD_) (IRDA_DIV((_PCLK_), (_BAUD_))/100U) | 
| #define | IRDA_FLAG_FE ((uint32_t)USART_SR_FE) | 
| #define | IRDA_FLAG_IDLE ((uint32_t)USART_SR_IDLE) | 
| #define | IRDA_FLAG_NE ((uint32_t)USART_SR_NE) | 
| #define | IRDA_FLAG_ORE ((uint32_t)USART_SR_ORE) | 
| #define | IRDA_FLAG_PE ((uint32_t)USART_SR_PE) | 
| #define | IRDA_FLAG_RXNE ((uint32_t)USART_SR_RXNE) | 
| #define | IRDA_FLAG_TC ((uint32_t)USART_SR_TC) | 
| #define | IRDA_FLAG_TXE ((uint32_t)USART_SR_TXE) | 
| #define | IRDA_IT_CTS ((uint32_t)(IRDA_CR3_REG_INDEX << 28U | USART_CR3_CTSIE)) | 
| #define | IRDA_IT_ERR ((uint32_t)(IRDA_CR3_REG_INDEX << 28U | USART_CR3_EIE)) | 
| #define | IRDA_IT_IDLE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_IDLEIE)) | 
| #define | IRDA_IT_LBD ((uint32_t)(IRDA_CR2_REG_INDEX << 28U | USART_CR2_LBDIE)) | 
| #define | IRDA_IT_MASK | 
| IRDA interruptions flag mask.  More... | |
| #define | IRDA_IT_PE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_PEIE)) | 
| #define | IRDA_IT_RXNE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_RXNEIE)) | 
| #define | IRDA_IT_TC ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_TCIE)) | 
| #define | IRDA_IT_TXE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_TXEIE)) | 
| #define | IRDA_MODE_RX ((uint32_t)USART_CR1_RE) | 
| #define | IRDA_MODE_TX ((uint32_t)USART_CR1_TE) | 
| #define | IRDA_MODE_TX_RX ((uint32_t)(USART_CR1_TE |USART_CR1_RE)) | 
| #define | IRDA_PARITY_EVEN ((uint32_t)USART_CR1_PCE) | 
| #define | IRDA_PARITY_NONE 0x00000000U | 
| #define | IRDA_PARITY_ODD ((uint32_t)(USART_CR1_PCE | USART_CR1_PS)) | 
| #define | IRDA_POWERMODE_LOWPOWER ((uint32_t)USART_CR3_IRLP) | 
| #define | IRDA_POWERMODE_NORMAL 0x00000000U | 
| #define | IRDA_WORDLENGTH_8B 0x00000000U | 
| #define | IRDA_WORDLENGTH_9B ((uint32_t)USART_CR1_M) | 
| #define | IS_IRDA_BAUDRATE(BAUDRATE) ((BAUDRATE) < 115201U) | 
| #define | IS_IRDA_MODE(MODE) ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00000000U)) | 
| #define | IS_IRDA_PARITY(PARITY) | 
| #define | IS_IRDA_POWERMODE(MODE) | 
| #define | IS_IRDA_WORD_LENGTH(LENGTH) | 
Enumerations | |
| enum | HAL_IRDA_StateTypeDef {  HAL_IRDA_STATE_RESET = 0x00U, HAL_IRDA_STATE_READY = 0x20U, HAL_IRDA_STATE_BUSY = 0x24U, HAL_IRDA_STATE_BUSY_TX = 0x21U, HAL_IRDA_STATE_BUSY_RX = 0x22U, HAL_IRDA_STATE_BUSY_TX_RX = 0x23U, HAL_IRDA_STATE_TIMEOUT = 0xA0U, HAL_IRDA_STATE_ERROR = 0xE0U }  | 
| HAL IRDA State structures definition.  More... | |
Header file of IRDA HAL module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f4xx_hal_irda.h.