|
STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
|
Header file of IRDA HAL module. More...
#include "stm32f4xx_hal_def.h"Go to the source code of this file.
Classes | |
| struct | IRDA_InitTypeDef |
| IRDA Init Structure definition. More... | |
| struct | IRDA_HandleTypeDef |
| IRDA handle Structure definition. More... | |
Macros | |
| #define | HAL_IRDA_ERROR_NONE 0x00000000U |
| #define | HAL_IRDA_ERROR_PE 0x00000001U |
| #define | HAL_IRDA_ERROR_NE 0x00000002U |
| #define | HAL_IRDA_ERROR_FE 0x00000004U |
| #define | HAL_IRDA_ERROR_ORE 0x00000008U |
| #define | HAL_IRDA_ERROR_DMA 0x00000010U |
| #define | IRDA_WORDLENGTH_8B 0x00000000U |
| #define | IRDA_WORDLENGTH_9B ((uint32_t)USART_CR1_M) |
| #define | IRDA_PARITY_NONE 0x00000000U |
| #define | IRDA_PARITY_EVEN ((uint32_t)USART_CR1_PCE) |
| #define | IRDA_PARITY_ODD ((uint32_t)(USART_CR1_PCE | USART_CR1_PS)) |
| #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_POWERMODE_LOWPOWER ((uint32_t)USART_CR3_IRLP) |
| #define | IRDA_POWERMODE_NORMAL 0x00000000U |
| #define | IRDA_FLAG_TXE ((uint32_t)USART_SR_TXE) |
| #define | IRDA_FLAG_TC ((uint32_t)USART_SR_TC) |
| #define | IRDA_FLAG_RXNE ((uint32_t)USART_SR_RXNE) |
| #define | IRDA_FLAG_IDLE ((uint32_t)USART_SR_IDLE) |
| #define | IRDA_FLAG_ORE ((uint32_t)USART_SR_ORE) |
| #define | IRDA_FLAG_NE ((uint32_t)USART_SR_NE) |
| #define | IRDA_FLAG_FE ((uint32_t)USART_SR_FE) |
| #define | IRDA_FLAG_PE ((uint32_t)USART_SR_PE) |
| #define | IRDA_IT_PE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_PEIE)) |
| #define | IRDA_IT_TXE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_TXEIE)) |
| #define | IRDA_IT_TC ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_TCIE)) |
| #define | IRDA_IT_RXNE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_RXNEIE)) |
| #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_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 | __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) |
| Reset IRDA handle gstate & RxState. | |
| #define | __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) |
| Flush the IRDA DR register. | |
| #define | __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) |
| Check whether the specified IRDA flag is set or not. | |
| #define | __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) |
| Clear the specified IRDA pending flag. | |
| #define | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
| Clear the IRDA PE pending flag. | |
| #define | __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) |
| Clear the IRDA FE pending flag. | |
| #define | __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) |
| Clear the IRDA NE pending flag. | |
| #define | __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__) |
| Clear the IRDA ORE pending flag. | |
| #define | __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__) |
| Clear the IRDA IDLE pending flag. | |
| #define | __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
| Enable the specified IRDA interrupt. | |
| #define | __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
| Disable the specified IRDA interrupt. | |
| #define | __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __IT__) |
| Check whether the specified IRDA interrupt has occurred or not. | |
| #define | __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) |
| Macro to enable the IRDA's one bit sample method. | |
| #define | __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) |
| Macro to disable the IRDA's one bit sample method. | |
| #define | __HAL_IRDA_ENABLE(__HANDLE__) |
| Enable UART/USART associated to IRDA Handle. | |
| #define | __HAL_IRDA_DISABLE(__HANDLE__) |
| Disable UART/USART associated to IRDA Handle. | |
| #define | IRDA_IT_MASK |
| IRDA interruptions flag mask. | |
| #define | IRDA_CR1_REG_INDEX 1U |
| #define | IRDA_CR2_REG_INDEX 2U |
| #define | IRDA_CR3_REG_INDEX 3U |
| #define | IS_IRDA_WORD_LENGTH(LENGTH) |
| #define | IS_IRDA_PARITY(PARITY) |
| #define | IS_IRDA_MODE(MODE) |
| #define | IS_IRDA_POWERMODE(MODE) |
| #define | IS_IRDA_BAUDRATE(BAUDRATE) |
| #define | IRDA_DIV(_PCLK_, _BAUD_) |
| #define | IRDA_DIVMANT(_PCLK_, _BAUD_) |
| #define | IRDA_DIVFRAQ(_PCLK_, _BAUD_) |
| #define | IRDA_BRR(_PCLK_, _BAUD_) |
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.
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_irda.h.