STM32L486xx HAL User Manual
Data Fields
SMARTCARD_InitTypeDef Struct Reference

SMARTCARD Init Structure definition. More...

#include <stm32l4xx_hal_smartcard.h>

Data Fields

uint32_t BaudRate
uint32_t WordLength
uint32_t StopBits
uint16_t Parity
uint16_t Mode
uint16_t CLKPolarity
uint16_t CLKPhase
uint16_t CLKLastBit
uint16_t OneBitSampling
uint8_t Prescaler
uint8_t GuardTime
uint16_t NACKEnable
uint32_t TimeOutEnable
uint32_t TimeOutValue
uint8_t BlockLength
uint8_t AutoRetryCount

Detailed Description

SMARTCARD Init Structure definition.

Definition at line 63 of file stm32l4xx_hal_smartcard.h.


Field Documentation

Specifies the SmartCard auto-retry count (number of retries in receive and transmit mode). When set to 0, retransmission is disabled. Otherwise, its maximum value is 7 (before signalling an error)

Definition at line 119 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Configures the SmartCard communication baud rate. The baud rate register is computed using the following formula: Baud Rate Register = ((usart_ker_ckpres) / ((hsmartcard->Init.BaudRate))) where usart_ker_ckpres is the USART input clock divided by a prescaler

Definition at line 65 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the SmartCard Block Length in T=1 Reception mode. This parameter can be any value from 0x0 to 0xFF

Definition at line 116 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies whether the clock pulse corresponding to the last transmitted data bit (MSB) has to be output on the SCLK pin in synchronous mode. This parameter can be a value of SMARTCARD Last Bit

Definition at line 91 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the clock transition on which the bit capture is made. This parameter can be a value of SMARTCARD Clock Phase

Definition at line 88 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the steady state of the serial clock. This parameter can be a value of SMARTCARD Clock Polarity

Definition at line 85 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the SmartCard Guard Time applied after stop bits.

Definition at line 103 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of SMARTCARD Transfer Mode

Definition at line 82 of file stm32l4xx_hal_smartcard.h.

Referenced by HAL_SMARTCARD_Transmit(), SMARTCARD_EndTransmit_IT(), and SMARTCARD_SetConfig().

Specifies whether the SmartCard NACK transmission is enabled in case of parity error. This parameter can be a value of SMARTCARD NACK Enable

Definition at line 105 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies whether a single sample or three samples' majority vote is selected. Selecting the single sample method increases the receiver tolerance to clock deviations. This parameter can be a value of SMARTCARD One Bit Sampling Method.

Definition at line 95 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the parity mode. This parameter can be a value of SMARTCARD Parity

Note:
The parity is enabled by default (PCE is forced to 1). Since the WordLength is forced to 8 bits + parity, M is forced to 1 and the parity bit is the 9th bit.

Definition at line 76 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the SmartCard Prescaler. This parameter can be any value from 0x01 to 0x1F. Prescaler value is multiplied by 2 to give the division factor of the source clock frequency

Definition at line 99 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the number of stop bits. This parameter can be a value of SMARTCARD Number of Stop Bits.

Definition at line 73 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies whether the receiver timeout is enabled. This parameter can be a value of SMARTCARD Timeout Enable

Definition at line 109 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().

Specifies the receiver time out value in number of baud blocks: it is used to implement the Character Wait Time (CWT) and Block Wait Time (BWT). It is coded over 24 bits.

Definition at line 112 of file stm32l4xx_hal_smartcard.h.

Referenced by HAL_SMARTCARDEx_TimeOut_Config(), and SMARTCARD_SetConfig().

Specifies the number of data bits transmitted or received in a frame. This parameter SMARTCARD Word Length can only be set to 9 (8 data + 1 parity bits).

Definition at line 70 of file stm32l4xx_hal_smartcard.h.

Referenced by SMARTCARD_SetConfig().


The documentation for this struct was generated from the following file: