STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
SMARTCARD Private Macros
Collaboration diagram for SMARTCARD Private Macros:

Macros

#define IS_SMARTCARD_WORD_LENGTH(LENGTH)
 
#define IS_SMARTCARD_STOPBITS(STOPBITS)
 
#define IS_SMARTCARD_PARITY(PARITY)
 
#define IS_SMARTCARD_MODE(MODE)
 
#define IS_SMARTCARD_POLARITY(CPOL)
 
#define IS_SMARTCARD_PHASE(CPHA)
 
#define IS_SMARTCARD_LASTBIT(LASTBIT)
 
#define IS_SMARTCARD_NACK_STATE(NACK)
 
#define IS_SMARTCARD_BAUDRATE(BAUDRATE)
 
#define SMARTCARD_DIV(__PCLK__, __BAUD__)
 
#define SMARTCARD_DIVMANT(__PCLK__, __BAUD__)
 
#define SMARTCARD_DIVFRAQ(__PCLK__, __BAUD__)
 
#define SMARTCARD_BRR(__PCLK__, __BAUD__)
 

Detailed Description

Macro Definition Documentation

◆ IS_SMARTCARD_WORD_LENGTH

#define IS_SMARTCARD_WORD_LENGTH ( LENGTH)

#include <stm32f4xx_hal_smartcard.h>

Value:
#define SMARTCARD_WORDLENGTH_9B

Definition at line 706 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_STOPBITS

#define IS_SMARTCARD_STOPBITS ( STOPBITS)

#include <stm32f4xx_hal_smartcard.h>

Value:
(((STOPBITS) == SMARTCARD_STOPBITS_0_5) || \
((STOPBITS) == SMARTCARD_STOPBITS_1_5))
#define SMARTCARD_STOPBITS_1_5
#define SMARTCARD_STOPBITS_0_5

Definition at line 707 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_PARITY

#define IS_SMARTCARD_PARITY ( PARITY)

#include <stm32f4xx_hal_smartcard.h>

Value:
(((PARITY) == SMARTCARD_PARITY_EVEN) || \
((PARITY) == SMARTCARD_PARITY_ODD))
#define SMARTCARD_PARITY_EVEN
#define SMARTCARD_PARITY_ODD

Definition at line 709 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_MODE

#define IS_SMARTCARD_MODE ( MODE)

#include <stm32f4xx_hal_smartcard.h>

Value:
((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x000000U))

Definition at line 711 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_POLARITY

#define IS_SMARTCARD_POLARITY ( CPOL)

#include <stm32f4xx_hal_smartcard.h>

Value:
(((CPOL) == SMARTCARD_POLARITY_LOW) || ((CPOL) == SMARTCARD_POLARITY_HIGH))
#define SMARTCARD_POLARITY_LOW
#define SMARTCARD_POLARITY_HIGH

Definition at line 712 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_PHASE

#define IS_SMARTCARD_PHASE ( CPHA)

#include <stm32f4xx_hal_smartcard.h>

Value:
(((CPHA) == SMARTCARD_PHASE_1EDGE) || ((CPHA) == SMARTCARD_PHASE_2EDGE))
#define SMARTCARD_PHASE_1EDGE
#define SMARTCARD_PHASE_2EDGE

Definition at line 713 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_LASTBIT

#define IS_SMARTCARD_LASTBIT ( LASTBIT)

#include <stm32f4xx_hal_smartcard.h>

Value:
(((LASTBIT) == SMARTCARD_LASTBIT_DISABLE) || \
((LASTBIT) == SMARTCARD_LASTBIT_ENABLE))
#define SMARTCARD_LASTBIT_ENABLE
#define SMARTCARD_LASTBIT_DISABLE

Definition at line 714 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ IS_SMARTCARD_NACK_STATE

#define IS_SMARTCARD_NACK_STATE ( NACK)

#include <stm32f4xx_hal_smartcard.h>

Value:
(((NACK) == SMARTCARD_NACK_ENABLE) || \
#define SMARTCARD_NACK_DISABLE
#define SMARTCARD_NACK_ENABLE

Definition at line 716 of file stm32f4xx_hal_smartcard.h.

Referenced by HAL_SMARTCARD_Init(), and SMARTCARD_SetConfig().

◆ IS_SMARTCARD_BAUDRATE

#define IS_SMARTCARD_BAUDRATE ( BAUDRATE)

#include <stm32f4xx_hal_smartcard.h>

Value:
((BAUDRATE) < 10500001U)

Definition at line 718 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

◆ SMARTCARD_DIV

#define SMARTCARD_DIV ( __PCLK__,
__BAUD__ )

#include <stm32f4xx_hal_smartcard.h>

Value:
((uint32_t)((((uint64_t)(__PCLK__))*25U)/(4U*((uint64_t)(__BAUD__)))))

Definition at line 720 of file stm32f4xx_hal_smartcard.h.

◆ SMARTCARD_DIVMANT

#define SMARTCARD_DIVMANT ( __PCLK__,
__BAUD__ )

#include <stm32f4xx_hal_smartcard.h>

Value:
(SMARTCARD_DIV((__PCLK__), (__BAUD__))/100U)
#define SMARTCARD_DIV(__PCLK__, __BAUD__)

Definition at line 721 of file stm32f4xx_hal_smartcard.h.

◆ SMARTCARD_DIVFRAQ

#define SMARTCARD_DIVFRAQ ( __PCLK__,
__BAUD__ )

#include <stm32f4xx_hal_smartcard.h>

Value:
((((SMARTCARD_DIV((__PCLK__), (__BAUD__)) - (SMARTCARD_DIVMANT((__PCLK__), (__BAUD__)) * 100U)) * 16U) + 50U) / 100U)
#define SMARTCARD_DIVMANT(__PCLK__, __BAUD__)

Definition at line 722 of file stm32f4xx_hal_smartcard.h.

◆ SMARTCARD_BRR

#define SMARTCARD_BRR ( __PCLK__,
__BAUD__ )

#include <stm32f4xx_hal_smartcard.h>

Value:
(((SMARTCARD_DIVMANT((__PCLK__), (__BAUD__)) << 4U) + \
(SMARTCARD_DIVFRAQ((__PCLK__), (__BAUD__)) & 0xF0U)) + \
(SMARTCARD_DIVFRAQ((__PCLK__), (__BAUD__)) & 0x0FU))
#define SMARTCARD_DIVFRAQ(__PCLK__, __BAUD__)

Definition at line 725 of file stm32f4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().