RTEMS 6.1-rc2
|
Macros | |
#define | SMARTCARD_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__) |
Report the SMARTCARD clock source. | |
#define | IS_SMARTCARD_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 6250001U) |
Check the Baud rate range. | |
#define | IS_SMARTCARD_BLOCKLENGTH(__LENGTH__) ((__LENGTH__) <= 0xFFU) |
Check the block length range. | |
#define | IS_SMARTCARD_TIMEOUT_VALUE(__TIMEOUTVALUE__) ((__TIMEOUTVALUE__) <= 0xFFFFFFU) |
Check the receiver timeout value. | |
#define | IS_SMARTCARD_AUTORETRY_COUNT(__COUNT__) ((__COUNT__) <= 0x7U) |
Check the SMARTCARD autoretry counter value. | |
#define | IS_SMARTCARD_WORD_LENGTH(__LENGTH__) ((__LENGTH__) == SMARTCARD_WORDLENGTH_9B) |
Ensure that SMARTCARD frame length is valid. | |
#define | IS_SMARTCARD_STOPBITS(__STOPBITS__) |
Ensure that SMARTCARD frame number of stop bits is valid. | |
#define | IS_SMARTCARD_PARITY(__PARITY__) |
Ensure that SMARTCARD frame parity is valid. | |
#define | IS_SMARTCARD_MODE(__MODE__) ((((__MODE__) & 0xFFF3U) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that SMARTCARD communication mode is valid. | |
#define | IS_SMARTCARD_POLARITY(__CPOL__) |
Ensure that SMARTCARD frame polarity is valid. | |
#define | IS_SMARTCARD_PHASE(__CPHA__) (((__CPHA__) == SMARTCARD_PHASE_1EDGE) || ((__CPHA__) == SMARTCARD_PHASE_2EDGE)) |
Ensure that SMARTCARD frame phase is valid. | |
#define | IS_SMARTCARD_LASTBIT(__LASTBIT__) |
Ensure that SMARTCARD frame last bit clock pulse setting is valid. | |
#define | IS_SMARTCARD_ONE_BIT_SAMPLE(__ONEBIT__) |
Ensure that SMARTCARD frame sampling is valid. | |
#define | IS_SMARTCARD_NACK(__NACK__) |
Ensure that SMARTCARD NACK transmission setting is valid. | |
#define | IS_SMARTCARD_TIMEOUT(__TIMEOUT__) |
Ensure that SMARTCARD receiver timeout setting is valid. | |
#define | IS_SMARTCARD_CLOCKPRESCALER(__CLOCKPRESCALER__) |
Ensure that SMARTCARD clock Prescaler is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_INIT(__INIT__) |
Ensure that SMARTCARD advanced features initialization is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_TXINV(__TXINV__) |
Ensure that SMARTCARD frame TX inversion setting is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_RXINV(__RXINV__) |
Ensure that SMARTCARD frame RX inversion setting is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_DATAINV(__DATAINV__) |
Ensure that SMARTCARD frame data inversion setting is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_SWAP(__SWAP__) |
Ensure that SMARTCARD frame RX/TX pins swap setting is valid. | |
#define | IS_SMARTCARD_OVERRUN(__OVERRUN__) |
Ensure that SMARTCARD frame overrun setting is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_DMAONRXERROR(__DMA__) |
Ensure that SMARTCARD DMA enabling or disabling on error setting is valid. | |
#define | IS_SMARTCARD_ADVFEATURE_MSBFIRST(__MSBFIRST__) |
Ensure that SMARTCARD frame MSB first setting is valid. | |
#define | IS_SMARTCARD_REQUEST_PARAMETER(__PARAM__) |
Ensure that SMARTCARD request parameter is valid. | |
#define IS_SMARTCARD_ADVFEATURE_DATAINV | ( | __DATAINV__ | ) |
Ensure that SMARTCARD frame data inversion setting is valid.
__DATAINV__ | SMARTCARD frame data inversion setting. |
SET | (DATAINV is valid) or RESET (DATAINV is invalid) |
#define IS_SMARTCARD_ADVFEATURE_DMAONRXERROR | ( | __DMA__ | ) |
Ensure that SMARTCARD DMA enabling or disabling on error setting is valid.
__DMA__ | SMARTCARD DMA enabling or disabling on error setting. |
SET | (DMA is valid) or RESET (DMA is invalid) |
#define IS_SMARTCARD_ADVFEATURE_INIT | ( | __INIT__ | ) |
Ensure that SMARTCARD advanced features initialization is valid.
__INIT__ | SMARTCARD advanced features initialization. |
SET | (INIT is valid) or RESET (INIT is invalid) |
#define IS_SMARTCARD_ADVFEATURE_MSBFIRST | ( | __MSBFIRST__ | ) |
Ensure that SMARTCARD frame MSB first setting is valid.
__MSBFIRST__ | SMARTCARD frame MSB first setting. |
SET | (MSBFIRST is valid) or RESET (MSBFIRST is invalid) |
#define IS_SMARTCARD_ADVFEATURE_RXINV | ( | __RXINV__ | ) |
Ensure that SMARTCARD frame RX inversion setting is valid.
__RXINV__ | SMARTCARD frame RX inversion setting. |
SET | (RXINV is valid) or RESET (RXINV is invalid) |
#define IS_SMARTCARD_ADVFEATURE_SWAP | ( | __SWAP__ | ) |
Ensure that SMARTCARD frame RX/TX pins swap setting is valid.
__SWAP__ | SMARTCARD frame RX/TX pins swap setting. |
SET | (SWAP is valid) or RESET (SWAP is invalid) |
#define IS_SMARTCARD_ADVFEATURE_TXINV | ( | __TXINV__ | ) |
Ensure that SMARTCARD frame TX inversion setting is valid.
__TXINV__ | SMARTCARD frame TX inversion setting. |
SET | (TXINV is valid) or RESET (TXINV is invalid) |
#define IS_SMARTCARD_AUTORETRY_COUNT | ( | __COUNT__ | ) | ((__COUNT__) <= 0x7U) |
Check the SMARTCARD autoretry counter value.
__COUNT__ | number of retransmissions. |
Test | result (TRUE or FALSE) |
#define IS_SMARTCARD_BAUDRATE | ( | __BAUDRATE__ | ) | ((__BAUDRATE__) < 6250001U) |
Check the Baud rate range.
__BAUDRATE__ | Baud rate set by the configuration function. |
Test | result (TRUE or FALSE) |
#define IS_SMARTCARD_BLOCKLENGTH | ( | __LENGTH__ | ) | ((__LENGTH__) <= 0xFFU) |
Check the block length range.
__LENGTH__ | block length. |
Test | result (TRUE or FALSE) |
#define IS_SMARTCARD_CLOCKPRESCALER | ( | __CLOCKPRESCALER__ | ) |
Ensure that SMARTCARD clock Prescaler is valid.
__CLOCKPRESCALER__ | SMARTCARD clock Prescaler value. |
SET | (CLOCKPRESCALER is valid) or RESET (CLOCKPRESCALER is invalid) |
#define IS_SMARTCARD_LASTBIT | ( | __LASTBIT__ | ) |
Ensure that SMARTCARD frame last bit clock pulse setting is valid.
__LASTBIT__ | SMARTCARD frame last bit clock pulse setting. |
SET | (LASTBIT is valid) or RESET (LASTBIT is invalid) |
#define IS_SMARTCARD_MODE | ( | __MODE__ | ) | ((((__MODE__) & 0xFFF3U) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that SMARTCARD communication mode is valid.
__MODE__ | SMARTCARD communication mode. |
SET | (MODE is valid) or RESET (MODE is invalid) |
#define IS_SMARTCARD_NACK | ( | __NACK__ | ) |
Ensure that SMARTCARD NACK transmission setting is valid.
__NACK__ | SMARTCARD NACK transmission setting. |
SET | (NACK is valid) or RESET (NACK is invalid) |
#define IS_SMARTCARD_ONE_BIT_SAMPLE | ( | __ONEBIT__ | ) |
Ensure that SMARTCARD frame sampling is valid.
__ONEBIT__ | SMARTCARD frame sampling. |
SET | (ONEBIT is valid) or RESET (ONEBIT is invalid) |
#define IS_SMARTCARD_OVERRUN | ( | __OVERRUN__ | ) |
Ensure that SMARTCARD frame overrun setting is valid.
__OVERRUN__ | SMARTCARD frame overrun setting. |
SET | (OVERRUN is valid) or RESET (OVERRUN is invalid) |
#define IS_SMARTCARD_PARITY | ( | __PARITY__ | ) |
Ensure that SMARTCARD frame parity is valid.
__PARITY__ | SMARTCARD frame parity. |
SET | (PARITY is valid) or RESET (PARITY is invalid) |
#define IS_SMARTCARD_PHASE | ( | __CPHA__ | ) | (((__CPHA__) == SMARTCARD_PHASE_1EDGE) || ((__CPHA__) == SMARTCARD_PHASE_2EDGE)) |
Ensure that SMARTCARD frame phase is valid.
__CPHA__ | SMARTCARD frame phase. |
SET | (CPHA is valid) or RESET (CPHA is invalid) |
#define IS_SMARTCARD_POLARITY | ( | __CPOL__ | ) |
Ensure that SMARTCARD frame polarity is valid.
__CPOL__ | SMARTCARD frame polarity. |
SET | (CPOL is valid) or RESET (CPOL is invalid) |
#define IS_SMARTCARD_REQUEST_PARAMETER | ( | __PARAM__ | ) |
Ensure that SMARTCARD request parameter is valid.
__PARAM__ | SMARTCARD request parameter. |
SET | (PARAM is valid) or RESET (PARAM is invalid) |
#define IS_SMARTCARD_STOPBITS | ( | __STOPBITS__ | ) |
Ensure that SMARTCARD frame number of stop bits is valid.
__STOPBITS__ | SMARTCARD frame number of stop bits. |
SET | (STOPBITS is valid) or RESET (STOPBITS is invalid) |
#define IS_SMARTCARD_TIMEOUT | ( | __TIMEOUT__ | ) |
Ensure that SMARTCARD receiver timeout setting is valid.
__TIMEOUT__ | SMARTCARD receiver timeout setting. |
SET | (TIMEOUT is valid) or RESET (TIMEOUT is invalid) |
#define IS_SMARTCARD_TIMEOUT_VALUE | ( | __TIMEOUTVALUE__ | ) | ((__TIMEOUTVALUE__) <= 0xFFFFFFU) |
Check the receiver timeout value.
__TIMEOUTVALUE__ | receiver timeout value. |
Test | result (TRUE or FALSE) |
#define IS_SMARTCARD_WORD_LENGTH | ( | __LENGTH__ | ) | ((__LENGTH__) == SMARTCARD_WORDLENGTH_9B) |
Ensure that SMARTCARD frame length is valid.
__LENGTH__ | SMARTCARD frame length. |
SET | (LENGTH is valid) or RESET (LENGTH is invalid) |
#define SMARTCARD_GETCLOCKSOURCE | ( | __HANDLE__, | |
__CLOCKSOURCE__ | |||
) |
Report the SMARTCARD clock source.
__HANDLE__ | specifies the SMARTCARD Handle. |
__CLOCKSOURCE__ | output variable. |
the | SMARTCARD clocking source, written in CLOCKSOURCE. |