RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros

Macros

#define __HAL_SMARTCARD_RESET_HANDLE_STATE(__HANDLE__)
 Reset SMARTCARD handle states.
 
#define __HAL_SMARTCARD_FLUSH_DRREGISTER(__HANDLE__)
 Flush the Smartcard Data registers.
 
#define __HAL_SMARTCARD_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ICR = (__FLAG__))
 Clear the specified SMARTCARD pending flag.
 
#define __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_PEF)
 Clear the SMARTCARD PE pending flag.
 
#define __HAL_SMARTCARD_CLEAR_FEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_FEF)
 Clear the SMARTCARD FE pending flag.
 
#define __HAL_SMARTCARD_CLEAR_NEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_NEF)
 Clear the SMARTCARD NE pending flag.
 
#define __HAL_SMARTCARD_CLEAR_OREFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_OREF)
 Clear the SMARTCARD ORE pending flag.
 
#define __HAL_SMARTCARD_CLEAR_IDLEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_IDLEF)
 Clear the SMARTCARD IDLE pending flag.
 
#define __HAL_SMARTCARD_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))
 Check whether the specified Smartcard flag is set or not.
 
#define __HAL_SMARTCARD_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified SmartCard interrupt.
 
#define __HAL_SMARTCARD_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified SmartCard interrupt.
 
#define __HAL_SMARTCARD_GET_IT(__HANDLE__, __INTERRUPT__)
 Check whether the specified SmartCard interrupt has occurred or not.
 
#define __HAL_SMARTCARD_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Check whether the specified SmartCard interrupt source is enabled or not.
 
#define __HAL_SMARTCARD_CLEAR_IT(__HANDLE__, __IT_CLEAR__)   ((__HANDLE__)->Instance->ICR |= (uint32_t)(__IT_CLEAR__))
 Clear the specified SMARTCARD ISR flag, in setting the proper ICR register flag.
 
#define __HAL_SMARTCARD_SEND_REQ(__HANDLE__, __REQ__)   ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
 Set a specific SMARTCARD request flag.
 
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
 Enable the SMARTCARD one bit sample method.
 
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE(__HANDLE__)
 Disable the SMARTCARD one bit sample method.
 
#define __HAL_SMARTCARD_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
 Enable the USART associated to the SMARTCARD Handle.
 
#define __HAL_SMARTCARD_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
 Disable the USART associated to the SMARTCARD Handle.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_SMARTCARD_CLEAR_FEFLAG

#define __HAL_SMARTCARD_CLEAR_FEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_FEF)

Clear the SMARTCARD FE pending flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_CLEAR_FLAG

#define __HAL_SMARTCARD_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->ICR = (__FLAG__))

Clear the specified SMARTCARD pending flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__FLAG__specifies the flag to check. This parameter can be any combination of the following values:
Return values
None

◆ __HAL_SMARTCARD_CLEAR_IDLEFLAG

#define __HAL_SMARTCARD_CLEAR_IDLEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_IDLEF)

Clear the SMARTCARD IDLE pending flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_CLEAR_IT

#define __HAL_SMARTCARD_CLEAR_IT (   __HANDLE__,
  __IT_CLEAR__ 
)    ((__HANDLE__)->Instance->ICR |= (uint32_t)(__IT_CLEAR__))

Clear the specified SMARTCARD ISR flag, in setting the proper ICR register flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__IT_CLEAR__specifies the interrupt clear register flag that needs to be set to clear the corresponding interrupt. This parameter can be one of the following values:
Return values
None

◆ __HAL_SMARTCARD_CLEAR_NEFLAG

#define __HAL_SMARTCARD_CLEAR_NEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_NEF)

Clear the SMARTCARD NE pending flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_CLEAR_OREFLAG

#define __HAL_SMARTCARD_CLEAR_OREFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_OREF)

Clear the SMARTCARD ORE pending flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_CLEAR_PEFLAG

#define __HAL_SMARTCARD_CLEAR_PEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_PEF)

Clear the SMARTCARD PE pending flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_DISABLE

#define __HAL_SMARTCARD_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)

Disable the USART associated to the SMARTCARD Handle.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_DISABLE_IT

#define __HAL_SMARTCARD_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
(((((__INTERRUPT__) & SMARTCARD_CR_MASK) >>\
SMARTCARD_CR_POS) == 1U)?\
((__HANDLE__)->Instance->CR1 &= ~ (1U <<\
((__INTERRUPT__) & SMARTCARD_IT_MASK))): \
((((__INTERRUPT__) & SMARTCARD_CR_MASK) >>\
SMARTCARD_CR_POS) == 2U)?\
((__HANDLE__)->Instance->CR2 &= ~ (1U <<\
((__INTERRUPT__) & SMARTCARD_IT_MASK))): \
((__HANDLE__)->Instance->CR3 &= ~ (1U <<\
((__INTERRUPT__) & SMARTCARD_IT_MASK))))
#define SMARTCARD_IT_MASK
Definition: stm32h7xx_hal_smartcard.h:572
#define SMARTCARD_CR_MASK
Definition: stm32h7xx_hal_smartcard.h:573
#define SMARTCARD_CR_POS
Definition: stm32h7xx_hal_smartcard.h:574

Disable the specified SmartCard interrupt.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__INTERRUPT__specifies the SMARTCARD interrupt to disable. This parameter can be one of the following values:
Return values
None

◆ __HAL_SMARTCARD_ENABLE

#define __HAL_SMARTCARD_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)

Enable the USART associated to the SMARTCARD Handle.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_ENABLE_IT

#define __HAL_SMARTCARD_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
(((((__INTERRUPT__) & SMARTCARD_CR_MASK) >>\
SMARTCARD_CR_POS) == 1U)?\
((__HANDLE__)->Instance->CR1 |= (1UL <<\
((__INTERRUPT__) & SMARTCARD_IT_MASK))):\
((((__INTERRUPT__) & SMARTCARD_CR_MASK) >>\
SMARTCARD_CR_POS) == 2U)?\
((__HANDLE__)->Instance->CR2 |= (1UL <<\
((__INTERRUPT__) & SMARTCARD_IT_MASK))): \
((__HANDLE__)->Instance->CR3 |= (1UL <<\
((__INTERRUPT__) & SMARTCARD_IT_MASK))))

Enable the specified SmartCard interrupt.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__INTERRUPT__specifies the SMARTCARD interrupt to enable. This parameter can be one of the following values:
Return values
None

◆ __HAL_SMARTCARD_FLUSH_DRREGISTER

#define __HAL_SMARTCARD_FLUSH_DRREGISTER (   __HANDLE__)
Value:
do{ \
SET_BIT((__HANDLE__)->Instance->RQR, SMARTCARD_RXDATA_FLUSH_REQUEST); \
SET_BIT((__HANDLE__)->Instance->RQR, SMARTCARD_TXDATA_FLUSH_REQUEST); \
} while(0U)
#define SMARTCARD_RXDATA_FLUSH_REQUEST
Definition: stm32h7xx_hal_smartcard.h:562
#define SMARTCARD_TXDATA_FLUSH_REQUEST
Definition: stm32h7xx_hal_smartcard.h:563

Flush the Smartcard Data registers.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_GET_FLAG

#define __HAL_SMARTCARD_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))

Check whether the specified Smartcard flag is set or not.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__FLAG__specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (TRUE or FALSE).

◆ __HAL_SMARTCARD_GET_IT

#define __HAL_SMARTCARD_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
(\
(((__HANDLE__)->Instance->ISR & (0x01UL << (((__INTERRUPT__)\
? SET : RESET)
#define SMARTCARD_ISR_POS
Definition: stm32h7xx_hal_smartcard.h:576
#define SMARTCARD_ISR_MASK
Definition: stm32h7xx_hal_smartcard.h:575

Check whether the specified SmartCard interrupt has occurred or not.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__INTERRUPT__specifies the SMARTCARD interrupt to check. This parameter can be one of the following values:
Return values
Thenew state of INTERRUPT (SET or RESET).

◆ __HAL_SMARTCARD_GET_IT_SOURCE

#define __HAL_SMARTCARD_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((((((__INTERRUPT__) & SMARTCARD_CR_MASK) >>\
SMARTCARD_CR_POS) == 0x01U)?\
(__HANDLE__)->Instance->CR1 : \
(((((__INTERRUPT__) & SMARTCARD_CR_MASK) >>\
SMARTCARD_CR_POS) == 0x02U)?\
(__HANDLE__)->Instance->CR2 : \
(__HANDLE__)->Instance->CR3)) &\
(0x01UL << (((uint16_t)(__INTERRUPT__))\
& SMARTCARD_IT_MASK))) != 0U)\
? SET : RESET)

Check whether the specified SmartCard interrupt source is enabled or not.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__INTERRUPT__specifies the SMARTCARD interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of INTERRUPT (SET or RESET).

◆ __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE

#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE (   __HANDLE__)
Value:
((__HANDLE__)->Instance->CR3\
&= (uint32_t)~((uint32_t)USART_CR3_ONEBIT))
#define USART_CR3_ONEBIT
Definition: stm32h723xx.h:21097

Disable the SMARTCARD one bit sample method.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE

#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)

Enable the SMARTCARD one bit sample method.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Return values
None

◆ __HAL_SMARTCARD_RESET_HANDLE_STATE

#define __HAL_SMARTCARD_RESET_HANDLE_STATE (   __HANDLE__)
Value:
do{ \
(__HANDLE__)->gState = HAL_SMARTCARD_STATE_RESET; \
(__HANDLE__)->RxState = HAL_SMARTCARD_STATE_RESET; \
} while(0U)
#define HAL_SMARTCARD_STATE_RESET
Definition: stm32h7xx_hal_smartcard.h:326

Reset SMARTCARD handle states.

Parameters
__HANDLE__SMARTCARD handle.
Return values
None

◆ __HAL_SMARTCARD_SEND_REQ

#define __HAL_SMARTCARD_SEND_REQ (   __HANDLE__,
  __REQ__ 
)    ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))

Set a specific SMARTCARD request flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
__REQ__specifies the request flag to set This parameter can be one of the following values:
Return values
None