stm32f7xx_hal_irda.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32F7xx_HAL_IRDA_H
22 #define STM32F7xx_HAL_IRDA_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f7xx_hal_def.h"
30 
39 /* Exported types ------------------------------------------------------------*/
47 typedef struct
48 {
49  uint32_t BaudRate;
54  uint32_t WordLength;
57  uint32_t Parity;
64  uint32_t Mode;
67  uint8_t Prescaler;
71  uint16_t PowerMode;
75 
115 typedef uint32_t HAL_IRDA_StateTypeDef;
116 
120 typedef enum
121 {
129 
133 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
134 typedef struct __IRDA_HandleTypeDef
135 #else
136 typedef struct
137 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
138 {
139  USART_TypeDef *Instance;
143  uint8_t *pTxBuffPtr;
145  uint16_t TxXferSize;
147  __IO uint16_t TxXferCount;
149  uint8_t *pRxBuffPtr;
151  uint16_t RxXferSize;
153  __IO uint16_t RxXferCount;
155  uint16_t Mask;
157  DMA_HandleTypeDef *hdmatx;
159  DMA_HandleTypeDef *hdmarx;
161  HAL_LockTypeDef Lock;
163  __IO HAL_IRDA_StateTypeDef gState;
167  __IO HAL_IRDA_StateTypeDef RxState;
170  __IO uint32_t ErrorCode;
172 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
173  void (* TxHalfCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
175  void (* TxCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
177  void (* RxHalfCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
179  void (* RxCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
181  void (* ErrorCallback)(struct __IRDA_HandleTypeDef *hirda);
183  void (* AbortCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
185  void (* AbortTransmitCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
187  void (* AbortReceiveCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
190  void (* MspInitCallback)(struct __IRDA_HandleTypeDef *hirda);
192  void (* MspDeInitCallback)(struct __IRDA_HandleTypeDef *hirda);
193 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
194 
196 
197 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
198 
201 typedef enum
202 {
203  HAL_IRDA_TX_HALFCOMPLETE_CB_ID = 0x00U,
204  HAL_IRDA_TX_COMPLETE_CB_ID = 0x01U,
205  HAL_IRDA_RX_HALFCOMPLETE_CB_ID = 0x02U,
206  HAL_IRDA_RX_COMPLETE_CB_ID = 0x03U,
207  HAL_IRDA_ERROR_CB_ID = 0x04U,
208  HAL_IRDA_ABORT_COMPLETE_CB_ID = 0x05U,
209  HAL_IRDA_ABORT_TRANSMIT_COMPLETE_CB_ID = 0x06U,
210  HAL_IRDA_ABORT_RECEIVE_COMPLETE_CB_ID = 0x07U,
212  HAL_IRDA_MSPINIT_CB_ID = 0x08U,
213  HAL_IRDA_MSPDEINIT_CB_ID = 0x09U
215 } HAL_IRDA_CallbackIDTypeDef;
216 
220 typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda);
222 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
223 
228 /* Exported constants --------------------------------------------------------*/
236 #define HAL_IRDA_STATE_RESET 0x00000000U
238 #define HAL_IRDA_STATE_READY 0x00000020U
240 #define HAL_IRDA_STATE_BUSY 0x00000024U
242 #define HAL_IRDA_STATE_BUSY_TX 0x00000021U
244 #define HAL_IRDA_STATE_BUSY_RX 0x00000022U
246 #define HAL_IRDA_STATE_BUSY_TX_RX 0x00000023U
249 #define HAL_IRDA_STATE_TIMEOUT 0x000000A0U
251 #define HAL_IRDA_STATE_ERROR 0x000000E0U
260 #define HAL_IRDA_ERROR_NONE ((uint32_t)0x00000000U)
261 #define HAL_IRDA_ERROR_PE ((uint32_t)0x00000001U)
262 #define HAL_IRDA_ERROR_NE ((uint32_t)0x00000002U)
263 #define HAL_IRDA_ERROR_FE ((uint32_t)0x00000004U)
264 #define HAL_IRDA_ERROR_ORE ((uint32_t)0x00000008U)
265 #define HAL_IRDA_ERROR_DMA ((uint32_t)0x00000010U)
266 #define HAL_IRDA_ERROR_BUSY ((uint32_t)0x00000020U)
267 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
268 #define HAL_IRDA_ERROR_INVALID_CALLBACK ((uint32_t)0x00000040U)
269 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
270 
277 #define IRDA_PARITY_NONE 0x00000000U
278 #define IRDA_PARITY_EVEN USART_CR1_PCE
279 #define IRDA_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS)
287 #define IRDA_MODE_RX USART_CR1_RE
288 #define IRDA_MODE_TX USART_CR1_TE
289 #define IRDA_MODE_TX_RX (USART_CR1_TE |USART_CR1_RE)
297 #define IRDA_POWERMODE_NORMAL 0x00000000U
298 #define IRDA_POWERMODE_LOWPOWER USART_CR3_IRLP
306 #define IRDA_STATE_DISABLE 0x00000000U
307 #define IRDA_STATE_ENABLE USART_CR1_UE
315 #define IRDA_MODE_DISABLE 0x00000000U
316 #define IRDA_MODE_ENABLE USART_CR3_IREN
324 #define IRDA_ONE_BIT_SAMPLE_DISABLE 0x00000000U
325 #define IRDA_ONE_BIT_SAMPLE_ENABLE USART_CR3_ONEBIT
333 #define IRDA_DMA_TX_DISABLE 0x00000000U
334 #define IRDA_DMA_TX_ENABLE USART_CR3_DMAT
342 #define IRDA_DMA_RX_DISABLE 0x00000000U
343 #define IRDA_DMA_RX_ENABLE USART_CR3_DMAR
351 #define IRDA_AUTOBAUD_REQUEST USART_RQR_ABRRQ
352 #define IRDA_RXDATA_FLUSH_REQUEST USART_RQR_RXFRQ
353 #define IRDA_TXDATA_FLUSH_REQUEST USART_RQR_TXFRQ
363 #define IRDA_FLAG_TEACK USART_ISR_TEACK
364 #define IRDA_FLAG_BUSY USART_ISR_BUSY
365 #define IRDA_FLAG_ABRF USART_ISR_ABRF
366 #define IRDA_FLAG_ABRE USART_ISR_ABRE
367 #define IRDA_FLAG_TXE USART_ISR_TXE
368 #define IRDA_FLAG_TC USART_ISR_TC
369 #define IRDA_FLAG_RXNE USART_ISR_RXNE
370 #define IRDA_FLAG_ORE USART_ISR_ORE
371 #define IRDA_FLAG_NE USART_ISR_NE
372 #define IRDA_FLAG_FE USART_ISR_FE
373 #define IRDA_FLAG_PE USART_ISR_PE
388 #define IRDA_IT_PE 0x0028U
389 #define IRDA_IT_TXE 0x0727U
390 #define IRDA_IT_TC 0x0626U
391 #define IRDA_IT_RXNE 0x0525U
392 #define IRDA_IT_IDLE 0x0424U
394 /* Elements values convention: 000000000XXYYYYYb
395  - YYYYY : Interrupt source position in the XX register (5bits)
396  - XX : Interrupt source register (2bits)
397  - 01: CR1 register
398  - 10: CR2 register
399  - 11: CR3 register */
400 #define IRDA_IT_ERR 0x0060U
402 /* Elements values convention: 0000ZZZZ00000000b
403  - ZZZZ : Flag position in the ISR register(4bits) */
404 #define IRDA_IT_ORE 0x0300U
405 #define IRDA_IT_NE 0x0200U
406 #define IRDA_IT_FE 0x0100U
414 #define IRDA_CLEAR_PEF USART_ICR_PECF
415 #define IRDA_CLEAR_FEF USART_ICR_FECF
416 #define IRDA_CLEAR_NEF USART_ICR_NCF
417 #define IRDA_CLEAR_OREF USART_ICR_ORECF
418 #define IRDA_CLEAR_IDLEF USART_ICR_IDLECF
419 #define IRDA_CLEAR_TCF USART_ICR_TCCF
427 #define IRDA_IT_MASK 0x001FU
428 #define IRDA_CR_MASK 0x00E0U
429 #define IRDA_CR_POS 5U
430 #define IRDA_ISR_MASK 0x1F00U
431 #define IRDA_ISR_POS 8U
440 /* Exported macros -----------------------------------------------------------*/
441 
449 #if USE_HAL_IRDA_REGISTER_CALLBACKS == 1
450 #define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) do{ \
451  (__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
452  (__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
453  (__HANDLE__)->MspInitCallback = NULL; \
454  (__HANDLE__)->MspDeInitCallback = NULL; \
455  } while(0U)
456 #else
457 #define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) do{ \
458  (__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
459  (__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
460  } while(0U)
461 #endif /*USE_HAL_IRDA_REGISTER_CALLBACKS */
462 
467 #define __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) \
468  do{ \
469  SET_BIT((__HANDLE__)->Instance->RQR, IRDA_RXDATA_FLUSH_REQUEST); \
470  SET_BIT((__HANDLE__)->Instance->RQR, IRDA_TXDATA_FLUSH_REQUEST); \
471  } while(0U)
472 
485 #define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__))
486 
491 #define __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_PEF)
492 
493 
498 #define __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_FEF)
499 
504 #define __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_NEF)
505 
510 #define __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_OREF)
511 
516 #define __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_IDLEF)
517 
535 #define __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))
536 
537 
550 #define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? ((__HANDLE__)->Instance->CR1 |= ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
551  ((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? ((__HANDLE__)->Instance->CR2 |= ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
552  ((__HANDLE__)->Instance->CR3 |= ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))))
553 
566 #define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? ((__HANDLE__)->Instance->CR1 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
567  ((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? ((__HANDLE__)->Instance->CR2 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
568  ((__HANDLE__)->Instance->CR3 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))))
569 
570 
585 #define __HAL_IRDA_GET_IT(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->ISR\
586  & (0x01U << (((__INTERRUPT__) & IRDA_ISR_MASK)>> IRDA_ISR_POS))) != 0U) ? SET : RESET)
587 
600 #define __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 0x01U)? (__HANDLE__)->Instance->CR1 : \
601  (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 0x02U)? (__HANDLE__)->Instance->CR2 : \
602  (__HANDLE__)->Instance->CR3)) & ((uint32_t)0x01U << (((uint16_t)(__INTERRUPT__)) & IRDA_IT_MASK))) != 0U) ? SET : RESET)
603 
616 #define __HAL_IRDA_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__))
617 
618 
628 #define __HAL_IRDA_SEND_REQ(__HANDLE__, __REQ__) ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
629 
634 #define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
635 
640 #define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3\
641  &= (uint32_t)~((uint32_t)USART_CR3_ONEBIT))
642 
647 #define __HAL_IRDA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
648 
653 #define __HAL_IRDA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
654 
659 /* Private macros --------------------------------------------------------*/
668 #define IS_IRDA_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 115201U)
669 
674 #define IS_IRDA_PRESCALER(__PRESCALER__) ((__PRESCALER__) > 0U)
675 
680 #define IS_IRDA_PARITY(__PARITY__) (((__PARITY__) == IRDA_PARITY_NONE) || \
681  ((__PARITY__) == IRDA_PARITY_EVEN) || \
682  ((__PARITY__) == IRDA_PARITY_ODD))
683 
688 #define IS_IRDA_TX_RX_MODE(__MODE__) ((((__MODE__)\
689  & (~((uint32_t)(IRDA_MODE_TX_RX)))) == 0x00U) && ((__MODE__) != 0x00U))
690 
695 #define IS_IRDA_POWERMODE(__MODE__) (((__MODE__) == IRDA_POWERMODE_LOWPOWER) || \
696  ((__MODE__) == IRDA_POWERMODE_NORMAL))
697 
702 #define IS_IRDA_STATE(__STATE__) (((__STATE__) == IRDA_STATE_DISABLE) || \
703  ((__STATE__) == IRDA_STATE_ENABLE))
704 
709 #define IS_IRDA_MODE(__MODE__) (((__MODE__) == IRDA_MODE_DISABLE) || \
710  ((__MODE__) == IRDA_MODE_ENABLE))
711 
716 #define IS_IRDA_ONE_BIT_SAMPLE(__ONEBIT__) (((__ONEBIT__) == IRDA_ONE_BIT_SAMPLE_DISABLE) || \
717  ((__ONEBIT__) == IRDA_ONE_BIT_SAMPLE_ENABLE))
718 
723 #define IS_IRDA_DMA_TX(__DMATX__) (((__DMATX__) == IRDA_DMA_TX_DISABLE) || \
724  ((__DMATX__) == IRDA_DMA_TX_ENABLE))
725 
730 #define IS_IRDA_DMA_RX(__DMARX__) (((__DMARX__) == IRDA_DMA_RX_DISABLE) || \
731  ((__DMARX__) == IRDA_DMA_RX_ENABLE))
732 
737 #define IS_IRDA_REQUEST_PARAMETER(__PARAM__) (((__PARAM__) == IRDA_AUTOBAUD_REQUEST) || \
738  ((__PARAM__) == IRDA_RXDATA_FLUSH_REQUEST) || \
739  ((__PARAM__) == IRDA_TXDATA_FLUSH_REQUEST))
740 
744 /* Include IRDA HAL Extended module */
745 #include "stm32f7xx_hal_irda_ex.h"
746 
747 /* Exported functions --------------------------------------------------------*/
756 /* Initialization and de-initialization functions ****************************/
761 
762 #if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
763 /* Callbacks Register/UnRegister functions ***********************************/
764 HAL_StatusTypeDef HAL_IRDA_RegisterCallback(IRDA_HandleTypeDef *hirda, HAL_IRDA_CallbackIDTypeDef CallbackID,
765  pIRDA_CallbackTypeDef pCallback);
766 HAL_StatusTypeDef HAL_IRDA_UnRegisterCallback(IRDA_HandleTypeDef *hirda, HAL_IRDA_CallbackIDTypeDef CallbackID);
767 #endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
768 
777 /* IO operation functions *****************************************************/
778 HAL_StatusTypeDef HAL_IRDA_Transmit(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout);
779 HAL_StatusTypeDef HAL_IRDA_Receive(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout);
780 HAL_StatusTypeDef HAL_IRDA_Transmit_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
781 HAL_StatusTypeDef HAL_IRDA_Receive_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
782 HAL_StatusTypeDef HAL_IRDA_Transmit_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
783 HAL_StatusTypeDef HAL_IRDA_Receive_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
787 /* Transfer Abort functions */
794 
804 
809 /* Peripheral Control functions ************************************************/
810 
815 /* Peripheral State and Error functions ***************************************/
817 uint32_t HAL_IRDA_GetError(IRDA_HandleTypeDef *hirda);
818 
835 #ifdef __cplusplus
836 }
837 #endif
838 
839 #endif /* STM32F7xx_HAL_IRDA_H */
840 
841 /************************ (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
Init
napi_value Init(napi_env env, napi_value exports)
Definition: porcupine/demo/c/pvrecorder/node/pv_recorder_napi.c:197
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
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_Receive
HAL_StatusTypeDef HAL_IRDA_Receive(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout)
IRDA_HandleTypeDef::Mask
uint16_t Mask
Definition: stm32f7xx_hal_irda.h:155
HAL_IRDA_Init
HAL_StatusTypeDef HAL_IRDA_Init(IRDA_HandleTypeDef *hirda)
HAL_IRDA_AbortTransmit
HAL_StatusTypeDef HAL_IRDA_AbortTransmit(IRDA_HandleTypeDef *hirda)
HAL_IRDA_IRQHandler
void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda)
IRDA_CLOCKSOURCE_SYSCLK
@ IRDA_CLOCKSOURCE_SYSCLK
Definition: stm32f7xx_hal_irda.h:125
HAL_IRDA_GetError
uint32_t HAL_IRDA_GetError(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
IRDA_CLOCKSOURCE_LSE
@ IRDA_CLOCKSOURCE_LSE
Definition: stm32f7xx_hal_irda.h:126
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)
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)
IRDA_CLOCKSOURCE_PCLK2
@ IRDA_CLOCKSOURCE_PCLK2
Definition: stm32f7xx_hal_irda.h:123
HAL_IRDA_AbortTransmit_IT
HAL_StatusTypeDef HAL_IRDA_AbortTransmit_IT(IRDA_HandleTypeDef *hirda)
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)
HAL_IRDA_AbortReceive
HAL_StatusTypeDef HAL_IRDA_AbortReceive(IRDA_HandleTypeDef *hirda)
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
stm32f7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
IRDA_CLOCKSOURCE_HSI
@ IRDA_CLOCKSOURCE_HSI
Definition: stm32f7xx_hal_irda.h:124
stm32f7xx_hal_irda_ex.h
Header file of IRDA HAL Extended module.
IRDA_CLOCKSOURCE_UNDEFINED
@ IRDA_CLOCKSOURCE_UNDEFINED
Definition: stm32f7xx_hal_irda.h:127
HAL_IRDA_DeInit
HAL_StatusTypeDef HAL_IRDA_DeInit(IRDA_HandleTypeDef *hirda)
IRDA_ClockSourceTypeDef
IRDA_ClockSourceTypeDef
IRDA clock sources definition.
Definition: stm32f7xx_hal_irda.h:120
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_CLOCKSOURCE_PCLK1
@ IRDA_CLOCKSOURCE_PCLK1
Definition: stm32f7xx_hal_irda.h:122
HAL_IRDA_DMAStop
HAL_StatusTypeDef HAL_IRDA_DMAStop(IRDA_HandleTypeDef *hirda)
Mode
Definition: porcupine/demo/c/dr_libs/tests/external/miniaudio/extras/stb_vorbis.c:745
HAL_IRDA_StateTypeDef
uint32_t HAL_IRDA_StateTypeDef
HAL IRDA State definition.
Definition: stm32f7xx_hal_irda.h:115
IRDA_InitTypeDef::PowerMode
uint16_t PowerMode
Definition: stm32f7xx_hal_irda.h:71
HAL_IRDA_GetState
HAL_IRDA_StateTypeDef HAL_IRDA_GetState(IRDA_HandleTypeDef *hirda)


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