stm32f4xx_hal_irda.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32F4xx_HAL_IRDA_H
22 #define __STM32F4xx_HAL_IRDA_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f4xx_hal_def.h"
30 
39 /* Exported types ------------------------------------------------------------*/
46 typedef struct
47 {
48  uint32_t BaudRate;
53  uint32_t WordLength;
56  uint32_t Parity;
63  uint32_t Mode;
66  uint8_t Prescaler;
71  uint32_t IrDAMode;
74 
114 typedef enum
115 {
134 
138 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
139 typedef struct __IRDA_HandleTypeDef
140 #else
141 typedef struct
142 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
143 {
148  uint8_t *pTxBuffPtr;
150  uint16_t TxXferSize;
152  __IO uint16_t TxXferCount;
154  uint8_t *pRxBuffPtr;
156  uint16_t RxXferSize;
158  __IO uint16_t RxXferCount;
173  __IO uint32_t ErrorCode;
175 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
176  void (* TxHalfCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
178  void (* TxCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
180  void (* RxHalfCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
182  void (* RxCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
184  void (* ErrorCallback)(struct __IRDA_HandleTypeDef *hirda);
186  void (* AbortCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
188  void (* AbortTransmitCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
190  void (* AbortReceiveCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
193  void (* MspInitCallback)(struct __IRDA_HandleTypeDef *hirda);
195  void (* MspDeInitCallback)(struct __IRDA_HandleTypeDef *hirda);
196 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
197 
199 
200 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
201 
204 typedef enum
205 {
206  HAL_IRDA_TX_HALFCOMPLETE_CB_ID = 0x00U,
207  HAL_IRDA_TX_COMPLETE_CB_ID = 0x01U,
208  HAL_IRDA_RX_HALFCOMPLETE_CB_ID = 0x02U,
209  HAL_IRDA_RX_COMPLETE_CB_ID = 0x03U,
210  HAL_IRDA_ERROR_CB_ID = 0x04U,
211  HAL_IRDA_ABORT_COMPLETE_CB_ID = 0x05U,
212  HAL_IRDA_ABORT_TRANSMIT_COMPLETE_CB_ID = 0x06U,
213  HAL_IRDA_ABORT_RECEIVE_COMPLETE_CB_ID = 0x07U,
215  HAL_IRDA_MSPINIT_CB_ID = 0x08U,
216  HAL_IRDA_MSPDEINIT_CB_ID = 0x09U
218 } HAL_IRDA_CallbackIDTypeDef;
219 
223 typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda);
225 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
226 
231 /* Exported constants --------------------------------------------------------*/
238 #define HAL_IRDA_ERROR_NONE 0x00000000U
239 #define HAL_IRDA_ERROR_PE 0x00000001U
240 #define HAL_IRDA_ERROR_NE 0x00000002U
241 #define HAL_IRDA_ERROR_FE 0x00000004U
242 #define HAL_IRDA_ERROR_ORE 0x00000008U
243 #define HAL_IRDA_ERROR_DMA 0x00000010U
244 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
245 #define HAL_IRDA_ERROR_INVALID_CALLBACK ((uint32_t)0x00000020U)
246 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
247 
254 #define IRDA_WORDLENGTH_8B 0x00000000U
255 #define IRDA_WORDLENGTH_9B ((uint32_t)USART_CR1_M)
256 
263 #define IRDA_PARITY_NONE 0x00000000U
264 #define IRDA_PARITY_EVEN ((uint32_t)USART_CR1_PCE)
265 #define IRDA_PARITY_ODD ((uint32_t)(USART_CR1_PCE | USART_CR1_PS))
266 
273 #define IRDA_MODE_RX ((uint32_t)USART_CR1_RE)
274 #define IRDA_MODE_TX ((uint32_t)USART_CR1_TE)
275 #define IRDA_MODE_TX_RX ((uint32_t)(USART_CR1_TE |USART_CR1_RE))
276 
283 #define IRDA_POWERMODE_LOWPOWER ((uint32_t)USART_CR3_IRLP)
284 #define IRDA_POWERMODE_NORMAL 0x00000000U
285 
294 #define IRDA_FLAG_TXE ((uint32_t)USART_SR_TXE)
295 #define IRDA_FLAG_TC ((uint32_t)USART_SR_TC)
296 #define IRDA_FLAG_RXNE ((uint32_t)USART_SR_RXNE)
297 #define IRDA_FLAG_IDLE ((uint32_t)USART_SR_IDLE)
298 #define IRDA_FLAG_ORE ((uint32_t)USART_SR_ORE)
299 #define IRDA_FLAG_NE ((uint32_t)USART_SR_NE)
300 #define IRDA_FLAG_FE ((uint32_t)USART_SR_FE)
301 #define IRDA_FLAG_PE ((uint32_t)USART_SR_PE)
302 
315 #define IRDA_IT_PE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_PEIE))
316 #define IRDA_IT_TXE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_TXEIE))
317 #define IRDA_IT_TC ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_TCIE))
318 #define IRDA_IT_RXNE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_RXNEIE))
319 #define IRDA_IT_IDLE ((uint32_t)(IRDA_CR1_REG_INDEX << 28U | USART_CR1_IDLEIE))
320 
321 #define IRDA_IT_LBD ((uint32_t)(IRDA_CR2_REG_INDEX << 28U | USART_CR2_LBDIE))
322 
323 #define IRDA_IT_CTS ((uint32_t)(IRDA_CR3_REG_INDEX << 28U | USART_CR3_CTSIE))
324 #define IRDA_IT_ERR ((uint32_t)(IRDA_CR3_REG_INDEX << 28U | USART_CR3_EIE))
325 
333 /* Exported macro ------------------------------------------------------------*/
344 #if USE_HAL_IRDA_REGISTER_CALLBACKS == 1
345 #define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) do{ \
346  (__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
347  (__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
348  (__HANDLE__)->MspInitCallback = NULL; \
349  (__HANDLE__)->MspDeInitCallback = NULL; \
350  } while(0U)
351 #else
352 #define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) do{ \
353  (__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
354  (__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
355  } while(0U)
356 #endif /*USE_HAL_IRDA_REGISTER_CALLBACKS */
357 
364 #define __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) ((__HANDLE__)->Instance->DR)
365 
382 #define __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
383 
403 #define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__))
404 
411 #define __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) \
412  do{ \
413  __IO uint32_t tmpreg = 0x00U; \
414  tmpreg = (__HANDLE__)->Instance->SR; \
415  tmpreg = (__HANDLE__)->Instance->DR; \
416  UNUSED(tmpreg); \
417  } while(0U)
418 
425 #define __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
426 
433 #define __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
434 
441 #define __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
442 
449 #define __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
450 
465 #define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == IRDA_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 |= ((__INTERRUPT__) & IRDA_IT_MASK)): \
466  (((__INTERRUPT__) >> 28U) == IRDA_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 |= ((__INTERRUPT__) & IRDA_IT_MASK)): \
467  ((__HANDLE__)->Instance->CR3 |= ((__INTERRUPT__) & IRDA_IT_MASK)))
468 
482 #define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == IRDA_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 &= ~((__INTERRUPT__) & IRDA_IT_MASK)): \
483  (((__INTERRUPT__) >> 28U) == IRDA_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 &= ~((__INTERRUPT__) & IRDA_IT_MASK)): \
484  ((__HANDLE__)->Instance->CR3 &= ~ ((__INTERRUPT__) & IRDA_IT_MASK)))
485 
500 #define __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __IT__) (((((__IT__) >> 28U) == IRDA_CR1_REG_INDEX)? (__HANDLE__)->Instance->CR1:(((((uint32_t)(__IT__)) >> 28U) == IRDA_CR2_REG_INDEX)? \
501  (__HANDLE__)->Instance->CR2 : (__HANDLE__)->Instance->CR3)) & (((uint32_t)(__IT__)) & IRDA_IT_MASK))
502 
507 #define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 |= USART_CR3_ONEBIT)
508 
513 #define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT))
514 
521 #define __HAL_IRDA_ENABLE(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE))
522 
529 #define __HAL_IRDA_DISABLE(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE))
530 
535 /* Exported functions --------------------------------------------------------*/
543 /* Initialization/de-initialization functions **********************************/
548 
549 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
550 /* Callbacks Register/UnRegister functions ***********************************/
551 HAL_StatusTypeDef HAL_IRDA_RegisterCallback(IRDA_HandleTypeDef *hirda, HAL_IRDA_CallbackIDTypeDef CallbackID, pIRDA_CallbackTypeDef pCallback);
552 HAL_StatusTypeDef HAL_IRDA_UnRegisterCallback(IRDA_HandleTypeDef *hirda, HAL_IRDA_CallbackIDTypeDef CallbackID);
553 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
554 
562 /* IO operation functions *******************************************************/
563 HAL_StatusTypeDef HAL_IRDA_Transmit(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout);
564 HAL_StatusTypeDef HAL_IRDA_Receive(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout);
565 HAL_StatusTypeDef HAL_IRDA_Transmit_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
566 HAL_StatusTypeDef HAL_IRDA_Receive_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
567 HAL_StatusTypeDef HAL_IRDA_Transmit_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
568 HAL_StatusTypeDef HAL_IRDA_Receive_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
572 /* Transfer Abort functions */
579 
596 /* Peripheral State functions **************************************************/
598 uint32_t HAL_IRDA_GetError(IRDA_HandleTypeDef *hirda);
607 /* Private types -------------------------------------------------------------*/
608 /* Private variables ---------------------------------------------------------*/
609 /* Private constants ---------------------------------------------------------*/
617 #define IRDA_IT_MASK ((uint32_t) USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_TCIE | USART_CR1_RXNEIE | \
618  USART_CR1_IDLEIE | USART_CR2_LBDIE | USART_CR3_CTSIE | USART_CR3_EIE )
619 
620 #define IRDA_CR1_REG_INDEX 1U
621 #define IRDA_CR2_REG_INDEX 2U
622 #define IRDA_CR3_REG_INDEX 3U
623 
627 /* Private macros --------------------------------------------------------*/
631 #define IS_IRDA_WORD_LENGTH(LENGTH) (((LENGTH) == IRDA_WORDLENGTH_8B) || \
632  ((LENGTH) == IRDA_WORDLENGTH_9B))
633 
634 #define IS_IRDA_PARITY(PARITY) (((PARITY) == IRDA_PARITY_NONE) || \
635  ((PARITY) == IRDA_PARITY_EVEN) || \
636  ((PARITY) == IRDA_PARITY_ODD))
637 
638 #define IS_IRDA_MODE(MODE) ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00000000U))
639 
640 #define IS_IRDA_POWERMODE(MODE) (((MODE) == IRDA_POWERMODE_LOWPOWER) || \
641  ((MODE) == IRDA_POWERMODE_NORMAL))
642 
643 #define IS_IRDA_BAUDRATE(BAUDRATE) ((BAUDRATE) < 115201U)
644 
645 #define IRDA_DIV(_PCLK_, _BAUD_) ((uint32_t)((((uint64_t)(_PCLK_))*25U)/(4U*(((uint64_t)(_BAUD_))))))
646 
647 #define IRDA_DIVMANT(_PCLK_, _BAUD_) (IRDA_DIV((_PCLK_), (_BAUD_))/100U)
648 
649 #define IRDA_DIVFRAQ(_PCLK_, _BAUD_) ((((IRDA_DIV((_PCLK_), (_BAUD_)) - (IRDA_DIVMANT((_PCLK_), (_BAUD_)) * 100U)) * 16U) + 50U) / 100U)
650 
651 /* UART BRR = mantissa + overflow + fraction
652  = (UART DIVMANT << 4) + (UART DIVFRAQ & 0xF0) + (UART DIVFRAQ & 0x0FU) */
653 #define IRDA_BRR(_PCLK_, _BAUD_) (((IRDA_DIVMANT((_PCLK_), (_BAUD_)) << 4U) + \
654  (IRDA_DIVFRAQ((_PCLK_), (_BAUD_)) & 0xF0U)) + \
655  (IRDA_DIVFRAQ((_PCLK_), (_BAUD_)) & 0x0FU))
656 
661 /* Private functions ---------------------------------------------------------*/
678 #ifdef __cplusplus
679 }
680 #endif
681 
682 #endif /* __STM32F4xx_HAL_IRDA_H */
683 
684 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
HAL_IRDA_RxCpltCallback
void HAL_IRDA_RxCpltCallback(IRDA_HandleTypeDef *hirda)
__IO
#define __IO
Definition: imxrt1050/imxrt1050-evkb/CMSIS/core_cm7.h:237
IRDA_HandleTypeDef::TxXferCount
__IO uint16_t TxXferCount
Definition: stm32f4xx_hal_irda.h:152
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
IRDA_HandleTypeDef::hdmatx
DMA_HandleTypeDef * hdmatx
Definition: stm32f4xx_hal_irda.h:160
HAL_IRDA_StateTypeDef
HAL_IRDA_StateTypeDef
HAL IRDA State structures definition.
Definition: stm32f4xx_hal_irda.h:114
HAL_IRDA_Receive_IT
HAL_StatusTypeDef HAL_IRDA_Receive_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size)
USART_TypeDef
Universal Synchronous Asynchronous Receiver Transmitter.
Definition: stm32f407xx.h:758
HAL_IRDA_RxHalfCpltCallback
void HAL_IRDA_RxHalfCpltCallback(IRDA_HandleTypeDef *hirda)
__DMA_HandleTypeDef
DMA handle Structure definition.
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:139
HAL_IRDA_STATE_BUSY_TX
@ HAL_IRDA_STATE_BUSY_TX
Definition: stm32f4xx_hal_irda.h:122
HAL_IRDA_Receive
HAL_StatusTypeDef HAL_IRDA_Receive(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout)
HAL_IRDA_Init
HAL_StatusTypeDef HAL_IRDA_Init(IRDA_HandleTypeDef *hirda)
HAL_IRDA_AbortTransmit
HAL_StatusTypeDef HAL_IRDA_AbortTransmit(IRDA_HandleTypeDef *hirda)
HAL_IRDA_STATE_BUSY_TX_RX
@ HAL_IRDA_STATE_BUSY_TX_RX
Definition: stm32f4xx_hal_irda.h:126
HAL_IRDA_STATE_READY
@ HAL_IRDA_STATE_READY
Definition: stm32f4xx_hal_irda.h:118
HAL_IRDA_IRQHandler
void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda)
HAL_IRDA_MspInit
void HAL_IRDA_MspInit(IRDA_HandleTypeDef *hirda)
HAL_IRDA_Transmit_IT
HAL_StatusTypeDef HAL_IRDA_Transmit_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size)
HAL_IRDA_Receive_DMA
HAL_StatusTypeDef HAL_IRDA_Receive_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size)
IRDA_InitTypeDef
IRDA Init Structure definition.
Definition: stm32f4xx_hal_irda.h:46
HAL_LockTypeDef
HAL_LockTypeDef
HAL Lock structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:51
HAL_IRDA_DMAPause
HAL_StatusTypeDef HAL_IRDA_DMAPause(IRDA_HandleTypeDef *hirda)
HAL_IRDA_AbortReceiveCpltCallback
void HAL_IRDA_AbortReceiveCpltCallback(IRDA_HandleTypeDef *hirda)
stm32f4xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_IRDA_Transmit_DMA
HAL_StatusTypeDef HAL_IRDA_Transmit_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size)
HAL_IRDA_AbortReceive_IT
HAL_StatusTypeDef HAL_IRDA_AbortReceive_IT(IRDA_HandleTypeDef *hirda)
HAL_IRDA_TxHalfCpltCallback
void HAL_IRDA_TxHalfCpltCallback(IRDA_HandleTypeDef *hirda)
HAL_IRDA_STATE_BUSY_RX
@ HAL_IRDA_STATE_BUSY_RX
Definition: stm32f4xx_hal_irda.h:124
HAL_IRDA_AbortTransmit_IT
HAL_StatusTypeDef HAL_IRDA_AbortTransmit_IT(IRDA_HandleTypeDef *hirda)
HAL_IRDA_STATE_BUSY
@ HAL_IRDA_STATE_BUSY
Definition: stm32f4xx_hal_irda.h:120
IRDA_InitTypeDef::WordLength
uint32_t WordLength
Definition: stm32f4xx_hal_irda.h:53
HAL_IRDA_GetState
HAL_IRDA_StateTypeDef HAL_IRDA_GetState(IRDA_HandleTypeDef *hirda)
IRDA_HandleTypeDef::RxState
__IO HAL_IRDA_StateTypeDef RxState
Definition: stm32f4xx_hal_irda.h:170
HAL_IRDA_DMAResume
HAL_StatusTypeDef HAL_IRDA_DMAResume(IRDA_HandleTypeDef *hirda)
HAL_IRDA_AbortCpltCallback
void HAL_IRDA_AbortCpltCallback(IRDA_HandleTypeDef *hirda)
HAL_IRDA_Transmit
HAL_StatusTypeDef HAL_IRDA_Transmit(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout)
HAL_IRDA_ErrorCallback
void HAL_IRDA_ErrorCallback(IRDA_HandleTypeDef *hirda)
IRDA_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f4xx_hal_irda.h:63
HAL_IRDA_AbortReceive
HAL_StatusTypeDef HAL_IRDA_AbortReceive(IRDA_HandleTypeDef *hirda)
IRDA_InitTypeDef::BaudRate
uint32_t BaudRate
Definition: stm32f4xx_hal_irda.h:48
HAL_IRDA_GetError
uint32_t HAL_IRDA_GetError(IRDA_HandleTypeDef *hirda)
HAL_IRDA_STATE_RESET
@ HAL_IRDA_STATE_RESET
Definition: stm32f4xx_hal_irda.h:116
IRDA_HandleTypeDef::pTxBuffPtr
uint8_t * pTxBuffPtr
Definition: stm32f4xx_hal_irda.h:148
IRDA_HandleTypeDef::RxXferCount
__IO uint16_t RxXferCount
Definition: stm32f4xx_hal_irda.h:158
IRDA_InitTypeDef::Prescaler
uint8_t Prescaler
Definition: stm32f4xx_hal_irda.h:66
IRDA_HandleTypeDef::ErrorCode
__IO uint32_t ErrorCode
Definition: stm32f4xx_hal_irda.h:173
HAL_IRDA_STATE_TIMEOUT
@ HAL_IRDA_STATE_TIMEOUT
Definition: stm32f4xx_hal_irda.h:129
HAL_IRDA_Abort_IT
HAL_StatusTypeDef HAL_IRDA_Abort_IT(IRDA_HandleTypeDef *hirda)
IRDA_HandleTypeDef
IRDA handle Structure definition.
Definition: stm32f4xx_hal_irda.h:141
IRDA_HandleTypeDef::hdmarx
DMA_HandleTypeDef * hdmarx
Definition: stm32f4xx_hal_irda.h:162
IRDA_HandleTypeDef::TxXferSize
uint16_t TxXferSize
Definition: stm32f4xx_hal_irda.h:150
IRDA_HandleTypeDef::gState
__IO HAL_IRDA_StateTypeDef gState
Definition: stm32f4xx_hal_irda.h:166
HAL_IRDA_STATE_ERROR
@ HAL_IRDA_STATE_ERROR
Definition: stm32f4xx_hal_irda.h:131
HAL_IRDA_DeInit
HAL_StatusTypeDef HAL_IRDA_DeInit(IRDA_HandleTypeDef *hirda)
IRDA_HandleTypeDef::pRxBuffPtr
uint8_t * pRxBuffPtr
Definition: stm32f4xx_hal_irda.h:154
IRDA_InitTypeDef::Parity
uint32_t Parity
Definition: stm32f4xx_hal_irda.h:56
HAL_IRDA_Abort
HAL_StatusTypeDef HAL_IRDA_Abort(IRDA_HandleTypeDef *hirda)
HAL_IRDA_TxCpltCallback
void HAL_IRDA_TxCpltCallback(IRDA_HandleTypeDef *hirda)
HAL_IRDA_MspDeInit
void HAL_IRDA_MspDeInit(IRDA_HandleTypeDef *hirda)
HAL_IRDA_AbortTransmitCpltCallback
void HAL_IRDA_AbortTransmitCpltCallback(IRDA_HandleTypeDef *hirda)
IRDA_HandleTypeDef::RxXferSize
uint16_t RxXferSize
Definition: stm32f4xx_hal_irda.h:156
IRDA_HandleTypeDef::Lock
HAL_LockTypeDef Lock
Definition: stm32f4xx_hal_irda.h:164
IRDA_HandleTypeDef::Instance
USART_TypeDef * Instance
Definition: stm32f4xx_hal_irda.h:144
HAL_IRDA_DMAStop
HAL_StatusTypeDef HAL_IRDA_DMAStop(IRDA_HandleTypeDef *hirda)
IRDA_InitTypeDef::IrDAMode
uint32_t IrDAMode
Definition: stm32f4xx_hal_irda.h:71
IRDA_HandleTypeDef::Init
IRDA_InitTypeDef Init
Definition: stm32f4xx_hal_irda.h:146


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:52