RTEMS 6.1-rc1
Macros
SMARTCARD Extended Private Macros

Macros

#define SMARTCARD_TRANSMISSION_COMPLETION_SETTING(__HANDLE__)
 Set the Transmission Completion flag. More...
 
#define SMARTCARD_TRANSMISSION_COMPLETION_FLAG(__HANDLE__)    (((__HANDLE__)->AdvancedInit.TxCompletionIndication == SMARTCARD_TC) ? (SMARTCARD_FLAG_TC) : (SMARTCARD_FLAG_TCBGT))
 Return the transmission completion flag. More...
 
#define IS_SMARTCARD_TRANSMISSION_COMPLETION(__TXCOMPLETE__)
 Ensure that SMARTCARD frame transmission completion used flag is valid. More...
 
#define IS_SMARTCARD_FIFOMODE_STATE(__STATE__)
 Ensure that SMARTCARD FIFO mode is valid. More...
 
#define IS_SMARTCARD_TXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that SMARTCARD TXFIFO threshold level is valid. More...
 
#define IS_SMARTCARD_RXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that SMARTCARD RXFIFO threshold level is valid. More...
 

Detailed Description

Macro Definition Documentation

◆ IS_SMARTCARD_FIFOMODE_STATE

#define IS_SMARTCARD_FIFOMODE_STATE (   __STATE__)
Value:
(((__STATE__) == SMARTCARD_FIFOMODE_DISABLE ) || \
((__STATE__) == SMARTCARD_FIFOMODE_ENABLE))
#define SMARTCARD_FIFOMODE_DISABLE
Definition: stm32h7xx_hal_smartcard_ex.h:77
#define SMARTCARD_FIFOMODE_ENABLE
Definition: stm32h7xx_hal_smartcard_ex.h:78

Ensure that SMARTCARD FIFO mode is valid.

Parameters
__STATE__SMARTCARD FIFO mode.
Return values
SET(STATE is valid) or RESET (STATE is invalid)

◆ IS_SMARTCARD_RXFIFO_THRESHOLD

#define IS_SMARTCARD_RXFIFO_THRESHOLD (   __THRESHOLD__)
Value:
(((__THRESHOLD__) == SMARTCARD_RXFIFO_THRESHOLD_1_8) || \
((__THRESHOLD__) == SMARTCARD_RXFIFO_THRESHOLD_1_4) || \
((__THRESHOLD__) == SMARTCARD_RXFIFO_THRESHOLD_1_2) || \
((__THRESHOLD__) == SMARTCARD_RXFIFO_THRESHOLD_3_4) || \
((__THRESHOLD__) == SMARTCARD_RXFIFO_THRESHOLD_7_8) || \
((__THRESHOLD__) == SMARTCARD_RXFIFO_THRESHOLD_8_8))
#define SMARTCARD_RXFIFO_THRESHOLD_1_2
Definition: stm32h7xx_hal_smartcard_ex.h:105
#define SMARTCARD_RXFIFO_THRESHOLD_7_8
Definition: stm32h7xx_hal_smartcard_ex.h:107
#define SMARTCARD_RXFIFO_THRESHOLD_8_8
Definition: stm32h7xx_hal_smartcard_ex.h:108
#define SMARTCARD_RXFIFO_THRESHOLD_1_8
Definition: stm32h7xx_hal_smartcard_ex.h:103
#define SMARTCARD_RXFIFO_THRESHOLD_3_4
Definition: stm32h7xx_hal_smartcard_ex.h:106
#define SMARTCARD_RXFIFO_THRESHOLD_1_4
Definition: stm32h7xx_hal_smartcard_ex.h:104

Ensure that SMARTCARD RXFIFO threshold level is valid.

Parameters
__THRESHOLD__SMARTCARD RXFIFO threshold level.
Return values
SET(THRESHOLD is valid) or RESET (THRESHOLD is invalid)

◆ IS_SMARTCARD_TRANSMISSION_COMPLETION

#define IS_SMARTCARD_TRANSMISSION_COMPLETION (   __TXCOMPLETE__)
Value:
(((__TXCOMPLETE__) == SMARTCARD_TCBGT) || \
((__TXCOMPLETE__) == SMARTCARD_TC))
#define SMARTCARD_TCBGT
Definition: stm32h7xx_hal_smartcard_ex.h:49
#define SMARTCARD_TC
Definition: stm32h7xx_hal_smartcard_ex.h:50

Ensure that SMARTCARD frame transmission completion used flag is valid.

Parameters
__TXCOMPLETE__SMARTCARD frame transmission completion used flag.
Return values
SET(TXCOMPLETE is valid) or RESET (TXCOMPLETE is invalid)

◆ IS_SMARTCARD_TXFIFO_THRESHOLD

#define IS_SMARTCARD_TXFIFO_THRESHOLD (   __THRESHOLD__)
Value:
(((__THRESHOLD__) == SMARTCARD_TXFIFO_THRESHOLD_1_8) || \
((__THRESHOLD__) == SMARTCARD_TXFIFO_THRESHOLD_1_4) || \
((__THRESHOLD__) == SMARTCARD_TXFIFO_THRESHOLD_1_2) || \
((__THRESHOLD__) == SMARTCARD_TXFIFO_THRESHOLD_3_4) || \
((__THRESHOLD__) == SMARTCARD_TXFIFO_THRESHOLD_7_8) || \
((__THRESHOLD__) == SMARTCARD_TXFIFO_THRESHOLD_8_8))
#define SMARTCARD_TXFIFO_THRESHOLD_1_8
Definition: stm32h7xx_hal_smartcard_ex.h:88
#define SMARTCARD_TXFIFO_THRESHOLD_1_2
Definition: stm32h7xx_hal_smartcard_ex.h:90
#define SMARTCARD_TXFIFO_THRESHOLD_8_8
Definition: stm32h7xx_hal_smartcard_ex.h:93
#define SMARTCARD_TXFIFO_THRESHOLD_7_8
Definition: stm32h7xx_hal_smartcard_ex.h:92
#define SMARTCARD_TXFIFO_THRESHOLD_3_4
Definition: stm32h7xx_hal_smartcard_ex.h:91
#define SMARTCARD_TXFIFO_THRESHOLD_1_4
Definition: stm32h7xx_hal_smartcard_ex.h:89

Ensure that SMARTCARD TXFIFO threshold level is valid.

Parameters
__THRESHOLD__SMARTCARD TXFIFO threshold level.
Return values
SET(THRESHOLD is valid) or RESET (THRESHOLD is invalid)

◆ SMARTCARD_TRANSMISSION_COMPLETION_FLAG

#define SMARTCARD_TRANSMISSION_COMPLETION_FLAG (   __HANDLE__)     (((__HANDLE__)->AdvancedInit.TxCompletionIndication == SMARTCARD_TC) ? (SMARTCARD_FLAG_TC) : (SMARTCARD_FLAG_TCBGT))

Return the transmission completion flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Note
Based on AdvancedInit.TxCompletionIndication setting, return TC or TCBGT flag. When TCBGT flag (Transmission Complete Before Guard Time) is not available, TC flag is reported.
Return values
Transmissioncompletion flag

◆ SMARTCARD_TRANSMISSION_COMPLETION_SETTING

#define SMARTCARD_TRANSMISSION_COMPLETION_SETTING (   __HANDLE__)
Value:
do { \
if (HAL_IS_BIT_CLR((__HANDLE__)->AdvancedInit.AdvFeatureInit, SMARTCARD_ADVFEATURE_TXCOMPLETION)) \
{ \
(__HANDLE__)->AdvancedInit.TxCompletionIndication = SMARTCARD_TC; \
} \
else \
{ \
assert_param(IS_SMARTCARD_TRANSMISSION_COMPLETION((__HANDLE__)->AdvancedInit.TxCompletionIndication)); \
} \
} while(0U)
#define SMARTCARD_ADVFEATURE_TXCOMPLETION
Definition: stm32h7xx_hal_smartcard_ex.h:67
#define IS_SMARTCARD_TRANSMISSION_COMPLETION(__TXCOMPLETE__)
Ensure that SMARTCARD frame transmission completion used flag is valid.
Definition: stm32h7xx_hal_smartcard_ex.h:241

Set the Transmission Completion flag.

Parameters
__HANDLE__specifies the SMARTCARD Handle.
Note
If TCBGT (Transmission Complete Before Guard Time) flag is not available or if AdvancedInit.TxCompletionIndication is not already filled, the latter is forced to SMARTCARD_TC (transmission completion indication when guard time has elapsed).
Return values
None