Macros
Collaboration diagram for SMARTCARD Exported Macros:

Macros

#define __HAL_SMARTCARD_CLEAR_FEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)
 Clear the SMARTCARD FE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_FEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_FEF)
 Clear the SMARTCARD FE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR = ~(__FLAG__))
 Clear the specified Smartcard pending flags. More...
 
#define __HAL_SMARTCARD_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ICR = (__FLAG__))
 Clear the specified SMARTCARD pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_IDLEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)
 Clear the SMARTCARD IDLE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_IDLEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_IDLEF)
 Clear the SMARTCARD IDLE pending flag. More...
 
#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. More...
 
#define __HAL_SMARTCARD_CLEAR_NEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)
 Clear the SMARTCARD NE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_NEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_NEF)
 Clear the SMARTCARD NE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_OREFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)
 Clear the SMARTCARD ORE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_OREFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_OREF)
 Clear the SMARTCARD ORE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)
 Clear the SMARTCARD PE pending flag. More...
 
#define __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)   __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_PEF)
 Clear the SMARTCARD PE pending flag. More...
 
#define __HAL_SMARTCARD_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
 Disable the USART associated to the SMARTCARD Handle. More...
 
#define __HAL_SMARTCARD_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
 Disable the USART associated to the SMARTCARD Handle. More...
 
#define __HAL_SMARTCARD_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified SmartCard interrupt. More...
 
#define __HAL_SMARTCARD_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified SmartCard interrupt. More...
 
#define __HAL_SMARTCARD_DMA_REQUEST_DISABLE(__HANDLE__, __REQUEST__)   ((__HANDLE__)->Instance->CR3 &= ~(__REQUEST__))
 Macros to disable the SmartCard DMA request. More...
 
#define __HAL_SMARTCARD_DMA_REQUEST_ENABLE(__HANDLE__, __REQUEST__)   ((__HANDLE__)->Instance->CR3 |= (__REQUEST__))
 Macros to enable the SmartCard DMA request. More...
 
#define __HAL_SMARTCARD_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
 Enable the USART associated to the SMARTCARD Handle. More...
 
#define __HAL_SMARTCARD_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
 Enable the USART associated to the SMARTCARD Handle. More...
 
#define __HAL_SMARTCARD_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified SmartCard interrupt. More...
 
#define __HAL_SMARTCARD_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified SmartCard interrupt. More...
 
#define __HAL_SMARTCARD_FLUSH_DRREGISTER(__HANDLE__)   ((__HANDLE__)->Instance->DR)
 Flush the Smartcard DR register. More...
 
#define __HAL_SMARTCARD_FLUSH_DRREGISTER(__HANDLE__)
 Flush the Smartcard Data registers. More...
 
#define __HAL_SMARTCARD_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
 Check whether the specified Smartcard flag is set or not. More...
 
#define __HAL_SMARTCARD_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))
 Check whether the specified Smartcard flag is set or not. More...
 
#define __HAL_SMARTCARD_GET_IT(__HANDLE__, __INTERRUPT__)
 Check whether the specified SmartCard interrupt has occurred or not. More...
 
#define __HAL_SMARTCARD_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Check whether the specified SmartCard interrupt source is enabled or not. More...
 
#define __HAL_SMARTCARD_GET_IT_SOURCE(__HANDLE__, __IT__)   (((((__IT__) >> 28U) == SMARTCARD_CR1_REG_INDEX)? (__HANDLE__)->Instance->CR1: (__HANDLE__)->Instance->CR3) & (((uint32_t)(__IT__)) & SMARTCARD_IT_MASK))
 Checks whether the specified SmartCard interrupt has occurred or not. More...
 
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT))
 Macro to disable the SMARTCARD's one bit sample method. More...
 
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE(__HANDLE__)
 Disable the SMARTCARD one bit sample method. More...
 
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
 Macro to enable the SMARTCARD's one bit sample method. More...
 
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
 Enable the SMARTCARD one bit sample method. More...
 
#define __HAL_SMARTCARD_RESET_HANDLE_STATE(__HANDLE__)
 Reset SMARTCARD handle gstate & RxState. More...
 
#define __HAL_SMARTCARD_RESET_HANDLE_STATE(__HANDLE__)
 Reset SMARTCARD handle states. More...
 
#define __HAL_SMARTCARD_SEND_REQ(__HANDLE__, __REQ__)   ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
 Set a specific SMARTCARD request flag. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_SMARTCARD_CLEAR_FEFLAG [1/2]

#define __HAL_SMARTCARD_CLEAR_FEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)

Clear the SMARTCARD FE pending flag.

Parameters
<strong>HANDLE</strong>specifies the USART Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 500 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_FEFLAG [2/2]

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

Clear the SMARTCARD FE pending flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 576 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_FLAG [1/2]

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

Clear the specified Smartcard pending flags.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
<strong>FLAG</strong>specifies the flag to check. This parameter can be any combination of the following values:
  • SMARTCARD_FLAG_TC: Transmission Complete flag.
  • SMARTCARD_FLAG_RXNE: Receive data register not empty flag.
Note
PE (Parity error), FE (Framing error), NE (Noise error) and ORE (Overrun error) flags are cleared by software sequence: a read operation to USART_SR register followed by a read operation to USART_DR register.
RXNE flag can be also cleared by a read to the USART_DR register.
TC flag can be also cleared by software sequence: a read operation to USART_SR register followed by a write operation to USART_DR register.
TXE flag is cleared only by a write to the USART_DR register.
Return values
None

Definition at line 480 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_FLAG [2/2]

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

Clear the specified SMARTCARD pending flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be any combination of the following values:
Return values
None

Definition at line 564 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_IDLEFLAG [1/2]

#define __HAL_SMARTCARD_CLEAR_IDLEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)

Clear the SMARTCARD IDLE pending flag.

Parameters
<strong>HANDLE</strong>specifies the USART Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 521 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_IDLEFLAG [2/2]

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

Clear the SMARTCARD IDLE pending flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 594 of file stm32f7xx_hal_smartcard.h.

◆ __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
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>IT_CLEAR</strong>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

Definition at line 708 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_NEFLAG [1/2]

#define __HAL_SMARTCARD_CLEAR_NEFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)

Clear the SMARTCARD NE pending flag.

Parameters
<strong>HANDLE</strong>specifies the USART Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 507 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_NEFLAG [2/2]

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

Clear the SMARTCARD NE pending flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 582 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_OREFLAG [1/2]

#define __HAL_SMARTCARD_CLEAR_OREFLAG (   __HANDLE__)    __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__)

Clear the SMARTCARD ORE pending flag.

Parameters
<strong>HANDLE</strong>specifies the USART Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 514 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_OREFLAG [2/2]

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

Clear the SMARTCARD ORE pending flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 588 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_PEFLAG [1/2]

#define __HAL_SMARTCARD_CLEAR_PEFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR; \
tmpreg = (__HANDLE__)->Instance->DR; \
UNUSED(tmpreg); \
} while(0U)

Clear the SMARTCARD PE pending flag.

Parameters
<strong>HANDLE</strong>specifies the USART Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 487 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_CLEAR_PEFLAG [2/2]

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

Clear the SMARTCARD PE pending flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 570 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_DISABLE [1/2]

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

Disable the USART associated to the SMARTCARD Handle.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 593 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_DISABLE [2/2]

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

Disable the USART associated to the SMARTCARD Handle.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 743 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_DISABLE_IT [1/2]

#define __HAL_SMARTCARD_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__INTERRUPT__) >> 28U) == SMARTCARD_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 &= ~((__INTERRUPT__) & SMARTCARD_IT_MASK)): \
((__HANDLE__)->Instance->CR3 &= ~ ((__INTERRUPT__) & SMARTCARD_IT_MASK)))

Disable the specified SmartCard interrupt.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
<strong>INTERRUPT</strong>specifies the SMARTCARD interrupt to disable. This parameter can be one of the following values:
  • SMARTCARD_IT_TXE: Transmit Data Register empty interrupt
  • SMARTCARD_IT_TC: Transmission complete interrupt
  • SMARTCARD_IT_RXNE: Receive Data register not empty interrupt
  • SMARTCARD_IT_IDLE: Idle line detection interrupt
  • SMARTCARD_IT_PE: Parity Error interrupt
  • SMARTCARD_IT_ERR: Error interrupt(Frame error, noise error, overrun error)
Return values
None

Definition at line 552 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_DISABLE_IT [2/2]

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

Disable the specified SmartCard interrupt.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>INTERRUPT</strong>specifies the SMARTCARD interrupt to disable. This parameter can be one of the following values:
Return values
None

Definition at line 651 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_DMA_REQUEST_DISABLE

#define __HAL_SMARTCARD_DMA_REQUEST_DISABLE (   __HANDLE__,
  __REQUEST__ 
)    ((__HANDLE__)->Instance->CR3 &= ~(__REQUEST__))

Macros to disable the SmartCard DMA request.

Parameters
<strong>HANDLE</strong>specifies the SmartCard Handle.
<strong>REQUEST</strong>specifies the SmartCard DMA request. This parameter can be one of the following values:
  • SMARTCARD_DMAREQ_TX: SmartCard DMA transmit request
  • SMARTCARD_DMAREQ_RX: SmartCard DMA receive request
Return values
None

Definition at line 613 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_DMA_REQUEST_ENABLE

#define __HAL_SMARTCARD_DMA_REQUEST_ENABLE (   __HANDLE__,
  __REQUEST__ 
)    ((__HANDLE__)->Instance->CR3 |= (__REQUEST__))

Macros to enable the SmartCard DMA request.

Parameters
<strong>HANDLE</strong>specifies the SmartCard Handle.
<strong>REQUEST</strong>specifies the SmartCard DMA request. This parameter can be one of the following values:
  • SMARTCARD_DMAREQ_TX: SmartCard DMA transmit request
  • SMARTCARD_DMAREQ_RX: SmartCard DMA receive request
Return values
None

Definition at line 603 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ENABLE [1/2]

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

Enable the USART associated to the SMARTCARD Handle.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 586 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ENABLE [2/2]

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

Enable the USART associated to the SMARTCARD Handle.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 737 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ENABLE_IT [1/2]

#define __HAL_SMARTCARD_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__INTERRUPT__) >> 28U) == SMARTCARD_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 |= ((__INTERRUPT__) & SMARTCARD_IT_MASK)): \
((__HANDLE__)->Instance->CR3 |= ((__INTERRUPT__) & SMARTCARD_IT_MASK)))

Enable the specified SmartCard interrupt.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
<strong>INTERRUPT</strong>specifies the SMARTCARD interrupt to enable. This parameter can be one of the following values:
  • SMARTCARD_IT_TXE: Transmit Data Register empty interrupt
  • SMARTCARD_IT_TC: Transmission complete interrupt
  • SMARTCARD_IT_RXNE: Receive Data register not empty interrupt
  • SMARTCARD_IT_IDLE: Idle line detection interrupt
  • SMARTCARD_IT_PE: Parity Error interrupt
  • SMARTCARD_IT_ERR: Error interrupt(Frame error, noise error, overrun error)
Return values
None

Definition at line 536 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ENABLE_IT [2/2]

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

Enable the specified SmartCard interrupt.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>INTERRUPT</strong>specifies the SMARTCARD interrupt to enable. This parameter can be one of the following values:
Return values
None

Definition at line 632 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_FLUSH_DRREGISTER [1/2]

#define __HAL_SMARTCARD_FLUSH_DRREGISTER (   __HANDLE__)    ((__HANDLE__)->Instance->DR)

Flush the Smartcard DR register.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 444 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_FLUSH_DRREGISTER [2/2]

#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)

Flush the Smartcard Data registers.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 543 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_GET_FLAG [1/2]

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

Check whether the specified Smartcard flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
  • SMARTCARD_FLAG_TXE: Transmit data register empty flag
  • SMARTCARD_FLAG_TC: Transmission Complete flag
  • SMARTCARD_FLAG_RXNE: Receive data register not empty flag
  • SMARTCARD_FLAG_IDLE: Idle Line detection flag
  • SMARTCARD_FLAG_ORE: Overrun Error flag
  • SMARTCARD_FLAG_NE: Noise Error flag
  • SMARTCARD_FLAG_FE: Framing Error flag
  • SMARTCARD_FLAG_PE: Parity Error flag
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 461 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_GET_FLAG [2/2]

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

Check whether the specified Smartcard flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 615 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_GET_IT

#define __HAL_SMARTCARD_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__HANDLE__)->Instance->ISR\
& ((uint32_t)0x01U << (((__INTERRUPT__) & SMARTCARD_ISR_MASK)>> SMARTCARD_ISR_POS))) != 0U) ? SET : RESET)

Check whether the specified SmartCard interrupt has occurred or not.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>INTERRUPT</strong>specifies the SMARTCARD interrupt to check. This parameter can be one of the following values:
Return values
Thenew state of INTERRUPT (SET or RESET).

Definition at line 670 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_GET_IT_SOURCE [1/2]

#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)) & ((uint32_t)0x01U << (((uint16_t)(__INTERRUPT__)) & SMARTCARD_IT_MASK))) != 0U) ? SET : RESET)

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

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>INTERRUPT</strong>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).

Definition at line 688 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_GET_IT_SOURCE [2/2]

#define __HAL_SMARTCARD_GET_IT_SOURCE (   __HANDLE__,
  __IT__ 
)    (((((__IT__) >> 28U) == SMARTCARD_CR1_REG_INDEX)? (__HANDLE__)->Instance->CR1: (__HANDLE__)->Instance->CR3) & (((uint32_t)(__IT__)) & SMARTCARD_IT_MASK))

Checks whether the specified SmartCard interrupt has occurred or not.

Parameters
<strong>HANDLE</strong>specifies the SmartCard Handle.
<strong>IT</strong>specifies the SMARTCARD interrupt source to check. This parameter can be one of the following values:
  • SMARTCARD_IT_TXE: Transmit Data Register empty interrupt
  • SMARTCARD_IT_TC: Transmission complete interrupt
  • SMARTCARD_IT_RXNE: Receive Data register not empty interrupt
  • SMARTCARD_IT_IDLE: Idle line detection interrupt
  • SMARTCARD_IT_ERR: Error interrupt
  • SMARTCARD_IT_PE: Parity Error interrupt
Return values
Thenew state of IT (TRUE or FALSE).

Definition at line 567 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE [1/2]

#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT))

Macro to disable the SMARTCARD's one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 579 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE [2/2]

#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE (   __HANDLE__)
Value:
((__HANDLE__)->Instance->CR3\
&= (uint32_t)~((uint32_t)USART_CR3_ONEBIT))

Disable the SMARTCARD one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 730 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE [1/2]

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

Macro to enable the SMARTCARD's one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 573 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE [2/2]

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

Enable the SMARTCARD one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
Return values
None

Definition at line 724 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_RESET_HANDLE_STATE [1/2]

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

Reset SMARTCARD handle gstate & RxState.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
Return values
None

Definition at line 433 of file stm32f4xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_RESET_HANDLE_STATE [2/2]

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

Reset SMARTCARD handle states.

Parameters
<strong>HANDLE</strong>SMARTCARD handle.
Return values
None

Definition at line 533 of file stm32f7xx_hal_smartcard.h.

◆ __HAL_SMARTCARD_SEND_REQ

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

Set a specific SMARTCARD request flag.

Parameters
<strong>HANDLE</strong>specifies the SMARTCARD Handle.
<strong>REQ</strong>specifies the request flag to set This parameter can be one of the following values:
Return values
None

Definition at line 718 of file stm32f7xx_hal_smartcard.h.

SMARTCARD_IT_MASK
#define SMARTCARD_IT_MASK
SMARTCARD interruptions flag mask.
Definition: stm32f4xx_hal_smartcard.h:694
SMARTCARD_IT_MASK
#define SMARTCARD_IT_MASK
Definition: stm32f7xx_hal_smartcard.h:503
SMARTCARD_RXDATA_FLUSH_REQUEST
#define SMARTCARD_RXDATA_FLUSH_REQUEST
Definition: stm32f7xx_hal_smartcard.h:494
SMARTCARD_TXDATA_FLUSH_REQUEST
#define SMARTCARD_TXDATA_FLUSH_REQUEST
Definition: stm32f7xx_hal_smartcard.h:495
RESET
@ RESET
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:187
SMARTCARD_CR_POS
#define SMARTCARD_CR_POS
Definition: stm32f7xx_hal_smartcard.h:505
HAL_SMARTCARD_STATE_RESET
@ HAL_SMARTCARD_STATE_RESET
Definition: stm32f4xx_hal_smartcard.h:132
HAL_SMARTCARD_STATE_RESET
#define HAL_SMARTCARD_STATE_RESET
Definition: stm32f7xx_hal_smartcard.h:300
SET
@ SET
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:188
SMARTCARD_CR_MASK
#define SMARTCARD_CR_MASK
Definition: stm32f7xx_hal_smartcard.h:504
SMARTCARD_ISR_POS
#define SMARTCARD_ISR_POS
Definition: stm32f7xx_hal_smartcard.h:507
SMARTCARD_ISR_MASK
#define SMARTCARD_ISR_MASK
Definition: stm32f7xx_hal_smartcard.h:506
SMARTCARD_CR1_REG_INDEX
#define SMARTCARD_CR1_REG_INDEX
Definition: stm32f4xx_hal_smartcard.h:697
USART_CR3_ONEBIT
#define USART_CR3_ONEBIT
Definition: stm32f407xx.h:12618


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:07