Public Attributes | List of all members
SMARTCARD_InitTypeDef Struct Reference

SMARTCARD Init Structure definition. More...

#include <stm32f4xx_hal_smartcard.h>

Public Attributes

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

Detailed Description

SMARTCARD Init Structure definition.

Definition at line 47 of file stm32f4xx_hal_smartcard.h.

Member Data Documentation

◆ AutoRetryCount

uint8_t SMARTCARD_InitTypeDef::AutoRetryCount

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 103 of file stm32f7xx_hal_smartcard.h.

◆ BaudRate

uint32_t SMARTCARD_InitTypeDef::BaudRate

This member configures the SmartCard communication baud rate. The baud rate is computed using the following formula:

  • IntegerDivider = ((PCLKx) / (16 * (hsc->Init.BaudRate)))
  • FractionalDivider = ((IntegerDivider - ((uint32_t) IntegerDivider)) * 16) + 0.5

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 49 of file stm32f4xx_hal_smartcard.h.

◆ BlockLength

uint8_t SMARTCARD_InitTypeDef::BlockLength

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

Definition at line 100 of file stm32f7xx_hal_smartcard.h.

◆ CLKLastBit [1/2]

uint16_t SMARTCARD_InitTypeDef::CLKLastBit

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 75 of file stm32f7xx_hal_smartcard.h.

◆ CLKLastBit [2/2]

uint32_t SMARTCARD_InitTypeDef::CLKLastBit

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 76 of file stm32f4xx_hal_smartcard.h.

◆ CLKPhase [1/2]

uint16_t SMARTCARD_InitTypeDef::CLKPhase

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

Definition at line 72 of file stm32f7xx_hal_smartcard.h.

◆ CLKPhase [2/2]

uint32_t SMARTCARD_InitTypeDef::CLKPhase

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

Definition at line 73 of file stm32f4xx_hal_smartcard.h.

◆ CLKPolarity [1/2]

uint16_t SMARTCARD_InitTypeDef::CLKPolarity

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

Definition at line 69 of file stm32f7xx_hal_smartcard.h.

◆ CLKPolarity [2/2]

uint32_t SMARTCARD_InitTypeDef::CLKPolarity

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

Definition at line 70 of file stm32f4xx_hal_smartcard.h.

◆ GuardTime [1/2]

uint32_t SMARTCARD_InitTypeDef::GuardTime

Specifies the SmartCard Guard Time value in terms of number of baud clocks

Definition at line 85 of file stm32f4xx_hal_smartcard.h.

◆ GuardTime [2/2]

uint8_t SMARTCARD_InitTypeDef::GuardTime

Specifies the SmartCard Guard Time applied after stop bits.

Definition at line 87 of file stm32f7xx_hal_smartcard.h.

◆ Mode [1/2]

uint16_t SMARTCARD_InitTypeDef::Mode

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

Definition at line 66 of file stm32f7xx_hal_smartcard.h.

◆ Mode [2/2]

uint32_t SMARTCARD_InitTypeDef::Mode

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

Definition at line 67 of file stm32f4xx_hal_smartcard.h.

◆ NACKEnable

uint16_t SMARTCARD_InitTypeDef::NACKEnable

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 89 of file stm32f7xx_hal_smartcard.h.

◆ NACKState

uint32_t SMARTCARD_InitTypeDef::NACKState

Specifies the SmartCard NACK Transmission state. This parameter can be a value of SMARTCARD NACK State

Definition at line 87 of file stm32f4xx_hal_smartcard.h.

◆ OneBitSampling

uint16_t SMARTCARD_InitTypeDef::OneBitSampling

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 79 of file stm32f7xx_hal_smartcard.h.

◆ Parity [1/2]

uint32_t SMARTCARD_InitTypeDef::Parity

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

Note
When parity is enabled, the computed parity is inserted at the MSB position of the transmitted data (9th bit when the word length is set to 9 data bits; 8th bit when the word length is set to 8 data bits).

Definition at line 60 of file stm32f4xx_hal_smartcard.h.

◆ Parity [2/2]

uint16_t SMARTCARD_InitTypeDef::Parity

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 60 of file stm32f7xx_hal_smartcard.h.

◆ Prescaler [1/2]

uint32_t SMARTCARD_InitTypeDef::Prescaler

Specifies the SmartCard Prescaler value used for dividing the system clock to provide the smartcard clock. The value given in the register (5 significant bits) is multiplied by 2 to give the division factor of the source clock frequency. This parameter can be a value of SMARTCARD Prescaler

Definition at line 80 of file stm32f4xx_hal_smartcard.h.

◆ Prescaler [2/2]

uint8_t SMARTCARD_InitTypeDef::Prescaler

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 83 of file stm32f7xx_hal_smartcard.h.

◆ StopBits

uint32_t SMARTCARD_InitTypeDef::StopBits

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

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

Definition at line 57 of file stm32f4xx_hal_smartcard.h.

◆ TimeOutEnable

uint32_t SMARTCARD_InitTypeDef::TimeOutEnable

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

Definition at line 93 of file stm32f7xx_hal_smartcard.h.

◆ TimeOutValue

uint32_t SMARTCARD_InitTypeDef::TimeOutValue

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 96 of file stm32f7xx_hal_smartcard.h.

◆ WordLength

uint32_t SMARTCARD_InitTypeDef::WordLength

Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of SMARTCARD Word Length

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 54 of file stm32f4xx_hal_smartcard.h.


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


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20