Macros | |
#define | IS_SMARTCARD_ADVFEATURE_DATAINV(__DATAINV__) |
Ensure that SMARTCARD frame data inversion setting is valid. More... | |
#define | IS_SMARTCARD_ADVFEATURE_DMAONRXERROR(__DMA__) |
Ensure that SMARTCARD DMA enabling or disabling on error setting is valid. More... | |
#define | IS_SMARTCARD_ADVFEATURE_INIT(__INIT__) |
Ensure that SMARTCARD advanced features initialization is valid. More... | |
#define | IS_SMARTCARD_ADVFEATURE_MSBFIRST(__MSBFIRST__) |
Ensure that SMARTCARD frame MSB first setting is valid. More... | |
#define | IS_SMARTCARD_ADVFEATURE_RXINV(__RXINV__) |
Ensure that SMARTCARD frame RX inversion setting is valid. More... | |
#define | IS_SMARTCARD_ADVFEATURE_SWAP(__SWAP__) |
Ensure that SMARTCARD frame RX/TX pins swap setting is valid. More... | |
#define | IS_SMARTCARD_ADVFEATURE_TXINV(__TXINV__) |
Ensure that SMARTCARD frame TX inversion setting is valid. More... | |
#define | IS_SMARTCARD_AUTORETRY_COUNT(__COUNT__) ((__COUNT__) <= 0x7U) |
Check the SMARTCARD autoretry counter value. More... | |
#define | IS_SMARTCARD_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 13500001U) |
Check the Baud rate range. More... | |
#define | IS_SMARTCARD_BAUDRATE(BAUDRATE) ((BAUDRATE) < 10500001U) |
#define | IS_SMARTCARD_BLOCKLENGTH(__LENGTH__) ((__LENGTH__) <= 0xFFU) |
Check the block length range. More... | |
#define | IS_SMARTCARD_LASTBIT(__LASTBIT__) |
Ensure that SMARTCARD frame last bit clock pulse setting is valid. More... | |
#define | IS_SMARTCARD_LASTBIT(LASTBIT) |
#define | IS_SMARTCARD_MODE(__MODE__) ((((__MODE__) & 0xFFF3U) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that SMARTCARD communication mode is valid. More... | |
#define | IS_SMARTCARD_MODE(MODE) ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x000000U)) |
#define | IS_SMARTCARD_NACK(__NACK__) |
Ensure that SMARTCARD NACK transmission setting is valid. More... | |
#define | IS_SMARTCARD_NACK_STATE(NACK) |
#define | IS_SMARTCARD_ONE_BIT_SAMPLE(__ONEBIT__) |
Ensure that SMARTCARD frame sampling is valid. More... | |
#define | IS_SMARTCARD_OVERRUN(__OVERRUN__) |
Ensure that SMARTCARD frame overrun setting is valid. More... | |
#define | IS_SMARTCARD_PARITY(__PARITY__) |
Ensure that SMARTCARD frame parity is valid. More... | |
#define | IS_SMARTCARD_PARITY(PARITY) |
#define | IS_SMARTCARD_PHASE(__CPHA__) (((__CPHA__) == SMARTCARD_PHASE_1EDGE) || ((__CPHA__) == SMARTCARD_PHASE_2EDGE)) |
Ensure that SMARTCARD frame phase is valid. More... | |
#define | IS_SMARTCARD_PHASE(CPHA) (((CPHA) == SMARTCARD_PHASE_1EDGE) || ((CPHA) == SMARTCARD_PHASE_2EDGE)) |
#define | IS_SMARTCARD_POLARITY(__CPOL__) |
Ensure that SMARTCARD frame polarity is valid. More... | |
#define | IS_SMARTCARD_POLARITY(CPOL) (((CPOL) == SMARTCARD_POLARITY_LOW) || ((CPOL) == SMARTCARD_POLARITY_HIGH)) |
#define | IS_SMARTCARD_REQUEST_PARAMETER(__PARAM__) |
Ensure that SMARTCARD request parameter is valid. More... | |
#define | IS_SMARTCARD_STOPBITS(__STOPBITS__) |
Ensure that SMARTCARD frame number of stop bits is valid. More... | |
#define | IS_SMARTCARD_STOPBITS(STOPBITS) |
#define | IS_SMARTCARD_TIMEOUT(__TIMEOUT__) |
Ensure that SMARTCARD receiver timeout setting is valid. More... | |
#define | IS_SMARTCARD_TIMEOUT_VALUE(__TIMEOUTVALUE__) ((__TIMEOUTVALUE__) <= 0xFFFFFFU) |
Check the receiver timeout value. More... | |
#define | IS_SMARTCARD_WORD_LENGTH(__LENGTH__) ((__LENGTH__) == SMARTCARD_WORDLENGTH_9B) |
Ensure that SMARTCARD frame length is valid. More... | |
#define | IS_SMARTCARD_WORD_LENGTH(LENGTH) ((LENGTH) == SMARTCARD_WORDLENGTH_9B) |
#define | SMARTCARD_BRR(__PCLK__, __BAUD__) |
#define | SMARTCARD_DIV(__PCLK__, __BAUD__) ((uint32_t)((((uint64_t)(__PCLK__))*25U)/(4U*((uint64_t)(__BAUD__))))) |
#define | SMARTCARD_DIVFRAQ(__PCLK__, __BAUD__) ((((SMARTCARD_DIV((__PCLK__), (__BAUD__)) - (SMARTCARD_DIVMANT((__PCLK__), (__BAUD__)) * 100U)) * 16U) + 50U) / 100U) |
#define | SMARTCARD_DIVMANT(__PCLK__, __BAUD__) (SMARTCARD_DIV((__PCLK__), (__BAUD__))/100U) |
#define | SMARTCARD_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__) |
Report the SMARTCARD clock source. More... | |
#define IS_SMARTCARD_ADVFEATURE_DATAINV | ( | __DATAINV__ | ) |
Ensure that SMARTCARD frame data inversion setting is valid.
<strong>DATAINV</strong> | SMARTCARD frame data inversion setting. |
SET | (DATAINV is valid) or RESET (DATAINV is invalid) |
Definition at line 978 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_ADVFEATURE_DMAONRXERROR | ( | __DMA__ | ) |
Ensure that SMARTCARD DMA enabling or disabling on error setting is valid.
<strong>DMA</strong> | SMARTCARD DMA enabling or disabling on error setting. |
SET | (DMA is valid) or RESET (DMA is invalid) |
Definition at line 999 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_ADVFEATURE_INIT | ( | __INIT__ | ) |
Ensure that SMARTCARD advanced features initialization is valid.
<strong>INIT</strong> | SMARTCARD advanced features initialization. |
SET | (INIT is valid) or RESET (INIT is invalid) |
Definition at line 951 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_ADVFEATURE_MSBFIRST | ( | __MSBFIRST__ | ) |
Ensure that SMARTCARD frame MSB first setting is valid.
<strong>MSBFIRST</strong> | SMARTCARD frame MSB first setting. |
SET | (MSBFIRST is valid) or RESET (MSBFIRST is invalid) |
Definition at line 1006 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_ADVFEATURE_RXINV | ( | __RXINV__ | ) |
Ensure that SMARTCARD frame RX inversion setting is valid.
<strong>RXINV</strong> | SMARTCARD frame RX inversion setting. |
SET | (RXINV is valid) or RESET (RXINV is invalid) |
Definition at line 971 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_ADVFEATURE_SWAP | ( | __SWAP__ | ) |
Ensure that SMARTCARD frame RX/TX pins swap setting is valid.
<strong>SWAP</strong> | SMARTCARD frame RX/TX pins swap setting. |
SET | (SWAP is valid) or RESET (SWAP is invalid) |
Definition at line 985 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_ADVFEATURE_TXINV | ( | __TXINV__ | ) |
Ensure that SMARTCARD frame TX inversion setting is valid.
<strong>TXINV</strong> | SMARTCARD frame TX inversion setting. |
SET | (TXINV is valid) or RESET (TXINV is invalid) |
Definition at line 964 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_AUTORETRY_COUNT | ( | __COUNT__ | ) | ((__COUNT__) <= 0x7U) |
Check the SMARTCARD autoretry counter value.
<strong>COUNT</strong> | number of retransmissions. |
Test | result (TRUE or FALSE) |
Definition at line 878 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_BAUDRATE | ( | __BAUDRATE__ | ) | ((__BAUDRATE__) < 13500001U) |
Check the Baud rate range.
<strong>BAUDRATE</strong> | Baud rate set by the configuration function. |
Test | result (TRUE or FALSE) |
Definition at line 857 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_BAUDRATE | ( | BAUDRATE | ) | ((BAUDRATE) < 10500001U) |
Definition at line 719 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_BLOCKLENGTH | ( | __LENGTH__ | ) | ((__LENGTH__) <= 0xFFU) |
Check the block length range.
<strong>LENGTH</strong> | block length. |
Test | result (TRUE or FALSE) |
Definition at line 864 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_LASTBIT | ( | __LASTBIT__ | ) |
Ensure that SMARTCARD frame last bit clock pulse setting is valid.
<strong>LASTBIT</strong> | SMARTCARD frame last bit clock pulse setting. |
SET | (LASTBIT is valid) or RESET (LASTBIT is invalid) |
Definition at line 923 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_LASTBIT | ( | LASTBIT | ) |
Definition at line 715 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_MODE | ( | __MODE__ | ) | ((((__MODE__) & 0xFFF3U) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that SMARTCARD communication mode is valid.
<strong>MODE</strong> | SMARTCARD communication mode. |
SET | (MODE is valid) or RESET (MODE is invalid) |
Definition at line 904 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_MODE | ( | MODE | ) | ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x000000U)) |
Definition at line 712 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_NACK | ( | __NACK__ | ) |
Ensure that SMARTCARD NACK transmission setting is valid.
<strong>NACK</strong> | SMARTCARD NACK transmission setting. |
SET | (NACK is valid) or RESET (NACK is invalid) |
Definition at line 937 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_NACK_STATE | ( | NACK | ) |
Definition at line 717 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_ONE_BIT_SAMPLE | ( | __ONEBIT__ | ) |
Ensure that SMARTCARD frame sampling is valid.
<strong>ONEBIT</strong> | SMARTCARD frame sampling. |
SET | (ONEBIT is valid) or RESET (ONEBIT is invalid) |
Definition at line 930 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_OVERRUN | ( | __OVERRUN__ | ) |
Ensure that SMARTCARD frame overrun setting is valid.
<strong>OVERRUN</strong> | SMARTCARD frame overrun setting. |
SET | (OVERRUN is valid) or RESET (OVERRUN is invalid) |
Definition at line 992 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_PARITY | ( | __PARITY__ | ) |
Ensure that SMARTCARD frame parity is valid.
<strong>PARITY</strong> | SMARTCARD frame parity. |
SET | (PARITY is valid) or RESET (PARITY is invalid) |
Definition at line 897 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_PARITY | ( | PARITY | ) |
Definition at line 710 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_PHASE | ( | __CPHA__ | ) | (((__CPHA__) == SMARTCARD_PHASE_1EDGE) || ((__CPHA__) == SMARTCARD_PHASE_2EDGE)) |
Ensure that SMARTCARD frame phase is valid.
<strong>CPHA</strong> | SMARTCARD frame phase. |
SET | (CPHA is valid) or RESET (CPHA is invalid) |
Definition at line 917 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_PHASE | ( | CPHA | ) | (((CPHA) == SMARTCARD_PHASE_1EDGE) || ((CPHA) == SMARTCARD_PHASE_2EDGE)) |
Definition at line 714 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_POLARITY | ( | __CPOL__ | ) |
Ensure that SMARTCARD frame polarity is valid.
<strong>CPOL</strong> | SMARTCARD frame polarity. |
SET | (CPOL is valid) or RESET (CPOL is invalid) |
Definition at line 910 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_POLARITY | ( | CPOL | ) | (((CPOL) == SMARTCARD_POLARITY_LOW) || ((CPOL) == SMARTCARD_POLARITY_HIGH)) |
Definition at line 713 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_REQUEST_PARAMETER | ( | __PARAM__ | ) |
Ensure that SMARTCARD request parameter is valid.
<strong>PARAM</strong> | SMARTCARD request parameter. |
SET | (PARAM is valid) or RESET (PARAM is invalid) |
Definition at line 1013 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_STOPBITS | ( | __STOPBITS__ | ) |
Ensure that SMARTCARD frame number of stop bits is valid.
<strong>STOPBITS</strong> | SMARTCARD frame number of stop bits. |
SET | (STOPBITS is valid) or RESET (STOPBITS is invalid) |
Definition at line 890 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_STOPBITS | ( | STOPBITS | ) |
Definition at line 708 of file stm32f4xx_hal_smartcard.h.
#define IS_SMARTCARD_TIMEOUT | ( | __TIMEOUT__ | ) |
Ensure that SMARTCARD receiver timeout setting is valid.
<strong>TIMEOUT</strong> | SMARTCARD receiver timeout setting. |
SET | (TIMEOUT is valid) or RESET (TIMEOUT is invalid) |
Definition at line 944 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_TIMEOUT_VALUE | ( | __TIMEOUTVALUE__ | ) | ((__TIMEOUTVALUE__) <= 0xFFFFFFU) |
Check the receiver timeout value.
<strong>TIMEOUTVALUE</strong> | receiver timeout value. |
Test | result (TRUE or FALSE) |
Definition at line 871 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_WORD_LENGTH | ( | __LENGTH__ | ) | ((__LENGTH__) == SMARTCARD_WORDLENGTH_9B) |
Ensure that SMARTCARD frame length is valid.
<strong>LENGTH</strong> | SMARTCARD frame length. |
SET | (LENGTH is valid) or RESET (LENGTH is invalid) |
Definition at line 884 of file stm32f7xx_hal_smartcard.h.
#define IS_SMARTCARD_WORD_LENGTH | ( | LENGTH | ) | ((LENGTH) == SMARTCARD_WORDLENGTH_9B) |
Definition at line 707 of file stm32f4xx_hal_smartcard.h.
#define SMARTCARD_BRR | ( | __PCLK__, | |
__BAUD__ | |||
) |
Definition at line 726 of file stm32f4xx_hal_smartcard.h.
#define SMARTCARD_DIV | ( | __PCLK__, | |
__BAUD__ | |||
) | ((uint32_t)((((uint64_t)(__PCLK__))*25U)/(4U*((uint64_t)(__BAUD__))))) |
Definition at line 721 of file stm32f4xx_hal_smartcard.h.
#define SMARTCARD_DIVFRAQ | ( | __PCLK__, | |
__BAUD__ | |||
) | ((((SMARTCARD_DIV((__PCLK__), (__BAUD__)) - (SMARTCARD_DIVMANT((__PCLK__), (__BAUD__)) * 100U)) * 16U) + 50U) / 100U) |
Definition at line 723 of file stm32f4xx_hal_smartcard.h.
#define SMARTCARD_DIVMANT | ( | __PCLK__, | |
__BAUD__ | |||
) | (SMARTCARD_DIV((__PCLK__), (__BAUD__))/100U) |
Definition at line 722 of file stm32f4xx_hal_smartcard.h.
#define SMARTCARD_GETCLOCKSOURCE | ( | __HANDLE__, | |
__CLOCKSOURCE__ | |||
) |
Report the SMARTCARD clock source.
<strong>HANDLE</strong> | specifies the SMARTCARD Handle. |
<strong>CLOCKSOURCE</strong> | output variable. |
the | SMARTCARD clocking source, written in CLOCKSOURCE. |
Definition at line 759 of file stm32f7xx_hal_smartcard.h.