RTEMS 6.1-rc2
Loading...
Searching...
No Matches
stm32h7xx_hal_irda.h
Go to the documentation of this file.
1
19/* Define to prevent recursive inclusion -------------------------------------*/
20#ifndef STM32H7xx_HAL_IRDA_H
21#define STM32H7xx_HAL_IRDA_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* Includes ------------------------------------------------------------------*/
28#include "stm32h7xx_hal_def.h"
29
38/* Exported types ------------------------------------------------------------*/
47typedef 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;
74 uint32_t ClockPrescaler;
78
119typedef uint32_t HAL_IRDA_StateTypeDef;
120
124typedef enum
125{
135
139#if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
140typedef struct __IRDA_HandleTypeDef
141#else
142typedef struct
143#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
144{
149 const uint8_t *pTxBuffPtr;
151 uint16_t TxXferSize;
153 __IO uint16_t TxXferCount;
155 uint8_t *pRxBuffPtr;
157 uint16_t RxXferSize;
159 __IO uint16_t RxXferCount;
161 uint16_t Mask;
176 __IO uint32_t ErrorCode;
178#if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
179 void (* TxHalfCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
181 void (* TxCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
183 void (* RxHalfCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
185 void (* RxCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
187 void (* ErrorCallback)(struct __IRDA_HandleTypeDef *hirda);
189 void (* AbortCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
191 void (* AbortTransmitCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
193 void (* AbortReceiveCpltCallback)(struct __IRDA_HandleTypeDef *hirda);
196 void (* MspInitCallback)(struct __IRDA_HandleTypeDef *hirda);
198 void (* MspDeInitCallback)(struct __IRDA_HandleTypeDef *hirda);
199#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
200
202
203#if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
207typedef enum
208{
209 HAL_IRDA_TX_HALFCOMPLETE_CB_ID = 0x00U,
210 HAL_IRDA_TX_COMPLETE_CB_ID = 0x01U,
211 HAL_IRDA_RX_HALFCOMPLETE_CB_ID = 0x02U,
212 HAL_IRDA_RX_COMPLETE_CB_ID = 0x03U,
213 HAL_IRDA_ERROR_CB_ID = 0x04U,
214 HAL_IRDA_ABORT_COMPLETE_CB_ID = 0x05U,
215 HAL_IRDA_ABORT_TRANSMIT_COMPLETE_CB_ID = 0x06U,
216 HAL_IRDA_ABORT_RECEIVE_COMPLETE_CB_ID = 0x07U,
218 HAL_IRDA_MSPINIT_CB_ID = 0x08U,
219 HAL_IRDA_MSPDEINIT_CB_ID = 0x09U
221} HAL_IRDA_CallbackIDTypeDef;
222
226typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda);
228#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
229
234/* Exported constants --------------------------------------------------------*/
244#define HAL_IRDA_STATE_RESET 0x00000000U
246#define HAL_IRDA_STATE_READY 0x00000020U
248#define HAL_IRDA_STATE_BUSY 0x00000024U
250#define HAL_IRDA_STATE_BUSY_TX 0x00000021U
252#define HAL_IRDA_STATE_BUSY_RX 0x00000022U
254#define HAL_IRDA_STATE_BUSY_TX_RX 0x00000023U
258#define HAL_IRDA_STATE_TIMEOUT 0x000000A0U
260#define HAL_IRDA_STATE_ERROR 0x000000E0U
270#define HAL_IRDA_ERROR_NONE (0x00000000U)
271#define HAL_IRDA_ERROR_PE (0x00000001U)
272#define HAL_IRDA_ERROR_NE (0x00000002U)
273#define HAL_IRDA_ERROR_FE (0x00000004U)
274#define HAL_IRDA_ERROR_ORE (0x00000008U)
275#define HAL_IRDA_ERROR_DMA (0x00000010U)
276#define HAL_IRDA_ERROR_BUSY (0x00000020U)
277#if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
278#define HAL_IRDA_ERROR_INVALID_CALLBACK (0x00000040U)
279#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
288#define IRDA_PARITY_NONE 0x00000000U
289#define IRDA_PARITY_EVEN USART_CR1_PCE
290#define IRDA_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS)
299#define IRDA_MODE_RX USART_CR1_RE
300#define IRDA_MODE_TX USART_CR1_TE
301#define IRDA_MODE_TX_RX (USART_CR1_TE |USART_CR1_RE)
310#define IRDA_POWERMODE_NORMAL 0x00000000U
311#define IRDA_POWERMODE_LOWPOWER USART_CR3_IRLP
320#define IRDA_PRESCALER_DIV1 0x00000000U
321#define IRDA_PRESCALER_DIV2 0x00000001U
322#define IRDA_PRESCALER_DIV4 0x00000002U
323#define IRDA_PRESCALER_DIV6 0x00000003U
324#define IRDA_PRESCALER_DIV8 0x00000004U
325#define IRDA_PRESCALER_DIV10 0x00000005U
326#define IRDA_PRESCALER_DIV12 0x00000006U
327#define IRDA_PRESCALER_DIV16 0x00000007U
328#define IRDA_PRESCALER_DIV32 0x00000008U
329#define IRDA_PRESCALER_DIV64 0x00000009U
330#define IRDA_PRESCALER_DIV128 0x0000000AU
331#define IRDA_PRESCALER_DIV256 0x0000000BU
340#define IRDA_STATE_DISABLE 0x00000000U
341#define IRDA_STATE_ENABLE USART_CR1_UE
350#define IRDA_MODE_DISABLE 0x00000000U
351#define IRDA_MODE_ENABLE USART_CR3_IREN
360#define IRDA_ONE_BIT_SAMPLE_DISABLE 0x00000000U
361#define IRDA_ONE_BIT_SAMPLE_ENABLE USART_CR3_ONEBIT
370#define IRDA_DMA_TX_DISABLE 0x00000000U
371#define IRDA_DMA_TX_ENABLE USART_CR3_DMAT
380#define IRDA_DMA_RX_DISABLE 0x00000000U
381#define IRDA_DMA_RX_ENABLE USART_CR3_DMAR
390#define IRDA_AUTOBAUD_REQUEST USART_RQR_ABRRQ
391#define IRDA_RXDATA_FLUSH_REQUEST USART_RQR_RXFRQ
392#define IRDA_TXDATA_FLUSH_REQUEST USART_RQR_TXFRQ
403#define IRDA_FLAG_REACK USART_ISR_REACK
404#define IRDA_FLAG_TEACK USART_ISR_TEACK
405#define IRDA_FLAG_BUSY USART_ISR_BUSY
406#define IRDA_FLAG_ABRF USART_ISR_ABRF
407#define IRDA_FLAG_ABRE USART_ISR_ABRE
408#define IRDA_FLAG_TXE USART_ISR_TXE_TXFNF
409#define IRDA_FLAG_TC USART_ISR_TC
410#define IRDA_FLAG_RXNE USART_ISR_RXNE_RXFNE
411#define IRDA_FLAG_ORE USART_ISR_ORE
412#define IRDA_FLAG_NE USART_ISR_NE
413#define IRDA_FLAG_FE USART_ISR_FE
414#define IRDA_FLAG_PE USART_ISR_PE
430#define IRDA_IT_PE 0x0028U
431#define IRDA_IT_TXE 0x0727U
432#define IRDA_IT_TC 0x0626U
433#define IRDA_IT_RXNE 0x0525U
434#define IRDA_IT_IDLE 0x0424U
436/* Elements values convention: 000000000XXYYYYYb
437 - YYYYY : Interrupt source position in the XX register (5bits)
438 - XX : Interrupt source register (2bits)
439 - 01: CR1 register
440 - 10: CR2 register
441 - 11: CR3 register */
442#define IRDA_IT_ERR 0x0060U
444/* Elements values convention: 0000ZZZZ00000000b
445 - ZZZZ : Flag position in the ISR register(4bits) */
446#define IRDA_IT_ORE 0x0300U
447#define IRDA_IT_NE 0x0200U
448#define IRDA_IT_FE 0x0100U
457#define IRDA_CLEAR_PEF USART_ICR_PECF
458#define IRDA_CLEAR_FEF USART_ICR_FECF
459#define IRDA_CLEAR_NEF USART_ICR_NECF
460#define IRDA_CLEAR_OREF USART_ICR_ORECF
461#define IRDA_CLEAR_IDLEF USART_ICR_IDLECF
462#define IRDA_CLEAR_TCF USART_ICR_TCCF
471#define IRDA_IT_MASK 0x001FU
472#define IRDA_CR_MASK 0x00E0U
473#define IRDA_CR_POS 5U
474#define IRDA_ISR_MASK 0x1F00U
475#define IRDA_ISR_POS 8U
484/* Exported macros -----------------------------------------------------------*/
494#if USE_HAL_IRDA_REGISTER_CALLBACKS == 1
495#define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) do{ \
496 (__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
497 (__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
498 (__HANDLE__)->MspInitCallback = NULL; \
499 (__HANDLE__)->MspDeInitCallback = NULL; \
500 } while(0U)
501#else
502#define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) do{ \
503 (__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
504 (__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
505 } while(0U)
506#endif /*USE_HAL_IRDA_REGISTER_CALLBACKS */
507
512#define __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) \
513 do{ \
514 SET_BIT((__HANDLE__)->Instance->RQR, IRDA_RXDATA_FLUSH_REQUEST); \
515 SET_BIT((__HANDLE__)->Instance->RQR, IRDA_TXDATA_FLUSH_REQUEST); \
516 } while(0U)
517
530#define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__))
531
536#define __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_PEF)
537
538
543#define __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_FEF)
544
549#define __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_NEF)
550
555#define __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_OREF)
556
561#define __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_IDLEF)
562
581#define __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))
582
583
596#define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? \
597 ((__HANDLE__)->Instance->CR1 |= (1U << \
598 ((__INTERRUPT__) & IRDA_IT_MASK))):\
599 ((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? \
600 ((__HANDLE__)->Instance->CR2 |= (1U << \
601 ((__INTERRUPT__) & IRDA_IT_MASK))):\
602 ((__HANDLE__)->Instance->CR3 |= (1U << \
603 ((__INTERRUPT__) & IRDA_IT_MASK))))
604
617#define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? \
618 ((__HANDLE__)->Instance->CR1 &= ~ (1U << \
619 ((__INTERRUPT__) & IRDA_IT_MASK))): \
620 ((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? \
621 ((__HANDLE__)->Instance->CR2 &= ~ (1U << \
622 ((__INTERRUPT__) & IRDA_IT_MASK))): \
623 ((__HANDLE__)->Instance->CR3 &= ~ (1U << \
624 ((__INTERRUPT__) & IRDA_IT_MASK))))
625
640#define __HAL_IRDA_GET_IT(__HANDLE__, __INTERRUPT__) \
641 ((((__HANDLE__)->Instance->ISR& (0x01U << (((__INTERRUPT__) & IRDA_ISR_MASK)>>IRDA_ISR_POS))) != 0U) ? SET : RESET)
642
655#define __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) \
656 ((((((((__INTERRUPT__) & IRDA_CR_MASK) >>IRDA_CR_POS) == 0x01U)? (__HANDLE__)->Instance->CR1 :(((((__INTERRUPT__) \
657 & IRDA_CR_MASK) >> IRDA_CR_POS)== 0x02U)? (__HANDLE__)->Instance->CR2 :(__HANDLE__)->Instance->CR3)) \
658 & (0x01U <<(((uint16_t)(__INTERRUPT__)) & IRDA_IT_MASK))) != 0U) ? SET : RESET)
659
672#define __HAL_IRDA_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__))
673
674
684#define __HAL_IRDA_SEND_REQ(__HANDLE__, __REQ__) ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
685
690#define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
691
696#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3\
697 &= (uint32_t)~((uint32_t)USART_CR3_ONEBIT))
698
703#define __HAL_IRDA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
704
709#define __HAL_IRDA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
710
715/* Private macros --------------------------------------------------------*/
724#define IS_IRDA_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 115201U)
725
730#define IS_IRDA_PRESCALER(__PRESCALER__) ((__PRESCALER__) > 0U)
731
736#define IS_IRDA_PARITY(__PARITY__) (((__PARITY__) == IRDA_PARITY_NONE) || \
737 ((__PARITY__) == IRDA_PARITY_EVEN) || \
738 ((__PARITY__) == IRDA_PARITY_ODD))
739
744#define IS_IRDA_TX_RX_MODE(__MODE__) ((((__MODE__)\
745 & (~((uint32_t)(IRDA_MODE_TX_RX)))) == 0x00U) && ((__MODE__) != 0x00U))
746
751#define IS_IRDA_POWERMODE(__MODE__) (((__MODE__) == IRDA_POWERMODE_LOWPOWER) || \
752 ((__MODE__) == IRDA_POWERMODE_NORMAL))
753
758#define IS_IRDA_CLOCKPRESCALER(__CLOCKPRESCALER__) (((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV1) || \
759 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV2) || \
760 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV4) || \
761 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV6) || \
762 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV8) || \
763 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV10) || \
764 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV12) || \
765 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV16) || \
766 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV32) || \
767 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV64) || \
768 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV128) || \
769 ((__CLOCKPRESCALER__) == IRDA_PRESCALER_DIV256))
770
775#define IS_IRDA_STATE(__STATE__) (((__STATE__) == IRDA_STATE_DISABLE) || \
776 ((__STATE__) == IRDA_STATE_ENABLE))
777
782#define IS_IRDA_MODE(__MODE__) (((__MODE__) == IRDA_MODE_DISABLE) || \
783 ((__MODE__) == IRDA_MODE_ENABLE))
784
789#define IS_IRDA_ONE_BIT_SAMPLE(__ONEBIT__) (((__ONEBIT__) == IRDA_ONE_BIT_SAMPLE_DISABLE) || \
790 ((__ONEBIT__) == IRDA_ONE_BIT_SAMPLE_ENABLE))
791
796#define IS_IRDA_DMA_TX(__DMATX__) (((__DMATX__) == IRDA_DMA_TX_DISABLE) || \
797 ((__DMATX__) == IRDA_DMA_TX_ENABLE))
798
803#define IS_IRDA_DMA_RX(__DMARX__) (((__DMARX__) == IRDA_DMA_RX_DISABLE) || \
804 ((__DMARX__) == IRDA_DMA_RX_ENABLE))
805
810#define IS_IRDA_REQUEST_PARAMETER(__PARAM__) (((__PARAM__) == IRDA_AUTOBAUD_REQUEST) || \
811 ((__PARAM__) == IRDA_RXDATA_FLUSH_REQUEST) || \
812 ((__PARAM__) == IRDA_TXDATA_FLUSH_REQUEST))
817/* Include IRDA HAL Extended module */
819
820/* Exported functions --------------------------------------------------------*/
829/* Initialization and de-initialization functions ****************************/
830HAL_StatusTypeDef HAL_IRDA_Init(IRDA_HandleTypeDef *hirda);
831HAL_StatusTypeDef HAL_IRDA_DeInit(IRDA_HandleTypeDef *hirda);
832void HAL_IRDA_MspInit(IRDA_HandleTypeDef *hirda);
833void HAL_IRDA_MspDeInit(IRDA_HandleTypeDef *hirda);
834
835#if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
836/* Callbacks Register/UnRegister functions ***********************************/
837HAL_StatusTypeDef HAL_IRDA_RegisterCallback(IRDA_HandleTypeDef *hirda, HAL_IRDA_CallbackIDTypeDef CallbackID,
838 pIRDA_CallbackTypeDef pCallback);
839HAL_StatusTypeDef HAL_IRDA_UnRegisterCallback(IRDA_HandleTypeDef *hirda, HAL_IRDA_CallbackIDTypeDef CallbackID);
840#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
841
850/* IO operation functions *****************************************************/
851HAL_StatusTypeDef HAL_IRDA_Transmit(IRDA_HandleTypeDef *hirda, const uint8_t *pData, uint16_t Size, uint32_t Timeout);
852HAL_StatusTypeDef HAL_IRDA_Receive(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size, uint32_t Timeout);
853HAL_StatusTypeDef HAL_IRDA_Transmit_IT(IRDA_HandleTypeDef *hirda, const uint8_t *pData, uint16_t Size);
854HAL_StatusTypeDef HAL_IRDA_Receive_IT(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
855HAL_StatusTypeDef HAL_IRDA_Transmit_DMA(IRDA_HandleTypeDef *hirda, const uint8_t *pData, uint16_t Size);
856HAL_StatusTypeDef HAL_IRDA_Receive_DMA(IRDA_HandleTypeDef *hirda, uint8_t *pData, uint16_t Size);
857HAL_StatusTypeDef HAL_IRDA_DMAPause(IRDA_HandleTypeDef *hirda);
858HAL_StatusTypeDef HAL_IRDA_DMAResume(IRDA_HandleTypeDef *hirda);
859HAL_StatusTypeDef HAL_IRDA_DMAStop(IRDA_HandleTypeDef *hirda);
860/* Transfer Abort functions */
861HAL_StatusTypeDef HAL_IRDA_Abort(IRDA_HandleTypeDef *hirda);
862HAL_StatusTypeDef HAL_IRDA_AbortTransmit(IRDA_HandleTypeDef *hirda);
863HAL_StatusTypeDef HAL_IRDA_AbortReceive(IRDA_HandleTypeDef *hirda);
864HAL_StatusTypeDef HAL_IRDA_Abort_IT(IRDA_HandleTypeDef *hirda);
865HAL_StatusTypeDef HAL_IRDA_AbortTransmit_IT(IRDA_HandleTypeDef *hirda);
866HAL_StatusTypeDef HAL_IRDA_AbortReceive_IT(IRDA_HandleTypeDef *hirda);
867
868void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda);
869void HAL_IRDA_TxCpltCallback(IRDA_HandleTypeDef *hirda);
870void HAL_IRDA_RxCpltCallback(IRDA_HandleTypeDef *hirda);
871void HAL_IRDA_TxHalfCpltCallback(IRDA_HandleTypeDef *hirda);
872void HAL_IRDA_RxHalfCpltCallback(IRDA_HandleTypeDef *hirda);
873void HAL_IRDA_ErrorCallback(IRDA_HandleTypeDef *hirda);
874void HAL_IRDA_AbortCpltCallback(IRDA_HandleTypeDef *hirda);
875void HAL_IRDA_AbortTransmitCpltCallback(IRDA_HandleTypeDef *hirda);
876void HAL_IRDA_AbortReceiveCpltCallback(IRDA_HandleTypeDef *hirda);
877
882/* Peripheral Control functions ************************************************/
883
888/* Peripheral State and Error functions ***************************************/
889HAL_IRDA_StateTypeDef HAL_IRDA_GetState(const IRDA_HandleTypeDef *hirda);
890uint32_t HAL_IRDA_GetError(const IRDA_HandleTypeDef *hirda);
891
908#ifdef __cplusplus
909}
910#endif
911
912#endif /* STM32H7xx_HAL_IRDA_H */
913
#define __IO
Definition: core_cm4.h:239
uint32_t HAL_IRDA_StateTypeDef
HAL IRDA State definition.
Definition: stm32h7xx_hal_irda.h:119
IRDA_ClockSourceTypeDef
IRDA clock sources definition.
Definition: stm32h7xx_hal_irda.h:125
@ IRDA_CLOCKSOURCE_PLL2Q
Definition: stm32h7xx_hal_irda.h:128
@ IRDA_CLOCKSOURCE_D2PCLK2
Definition: stm32h7xx_hal_irda.h:127
@ IRDA_CLOCKSOURCE_D2PCLK1
Definition: stm32h7xx_hal_irda.h:126
@ IRDA_CLOCKSOURCE_LSE
Definition: stm32h7xx_hal_irda.h:132
@ IRDA_CLOCKSOURCE_HSI
Definition: stm32h7xx_hal_irda.h:130
@ IRDA_CLOCKSOURCE_PLL3Q
Definition: stm32h7xx_hal_irda.h:129
@ IRDA_CLOCKSOURCE_CSI
Definition: stm32h7xx_hal_irda.h:131
@ IRDA_CLOCKSOURCE_UNDEFINED
Definition: stm32h7xx_hal_irda.h:133
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32h7xx_hal_def.h:47
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32h7xx_hal_def.h:58
Header file of IRDA HAL Extended module.
IRDA handle Structure definition.
Definition: stm32h7xx_hal_irda.h:144
DMA_HandleTypeDef * hdmarx
Definition: stm32h7xx_hal_irda.h:165
__IO HAL_IRDA_StateTypeDef RxState
Definition: stm32h7xx_hal_irda.h:173
uint16_t RxXferSize
Definition: stm32h7xx_hal_irda.h:157
__IO uint16_t RxXferCount
Definition: stm32h7xx_hal_irda.h:159
__IO HAL_IRDA_StateTypeDef gState
Definition: stm32h7xx_hal_irda.h:169
USART_TypeDef * Instance
Definition: stm32h7xx_hal_irda.h:145
uint16_t TxXferSize
Definition: stm32h7xx_hal_irda.h:151
uint8_t * pRxBuffPtr
Definition: stm32h7xx_hal_irda.h:155
const uint8_t * pTxBuffPtr
Definition: stm32h7xx_hal_irda.h:149
IRDA_InitTypeDef Init
Definition: stm32h7xx_hal_irda.h:147
__IO uint16_t TxXferCount
Definition: stm32h7xx_hal_irda.h:153
DMA_HandleTypeDef * hdmatx
Definition: stm32h7xx_hal_irda.h:163
__IO uint32_t ErrorCode
Definition: stm32h7xx_hal_irda.h:176
HAL_LockTypeDef Lock
Definition: stm32h7xx_hal_irda.h:167
uint16_t Mask
Definition: stm32h7xx_hal_irda.h:161
IRDA Init Structure definition.
Definition: stm32h7xx_hal_irda.h:48
uint32_t WordLength
Definition: stm32h7xx_hal_irda.h:54
uint32_t ClockPrescaler
Definition: stm32h7xx_hal_irda.h:74
uint32_t BaudRate
Definition: stm32h7xx_hal_irda.h:49
uint16_t PowerMode
Definition: stm32h7xx_hal_irda.h:71
uint32_t Parity
Definition: stm32h7xx_hal_irda.h:57
uint32_t Mode
Definition: stm32h7xx_hal_irda.h:64
uint8_t Prescaler
Definition: stm32h7xx_hal_irda.h:67
Universal Synchronous Asynchronous Receiver Transmitter.
Definition: stm32h723xx.h:1596
DMA handle Structure definition.
Definition: stm32h7xx_hal_dma.h:138