Microchip® Advanced Software Framework

usart_iso7816_options_t Struct Reference

Input parameters when initializing ISO7816 mode.

#include <usart.h>

Data Fields

int bit_order
 Bit order in transmitted characters:
. More...
 
int dis_suc_nack
 Disable successive NACKs. More...
 
unsigned short fidi_ratio
 The number of ISO7816 clock ticks in every bit period (1 to 2047, 0 = disable clock). More...
 
int inhibit_nack
 Inhibit Non Acknowledge:
. More...
 
unsigned long iso7816_hz
 Set the frequency of the ISO7816 clock. More...
 
unsigned char max_iterations
 Max number of repetitions (0 to 7). More...
 
unsigned char paritytype
 How to calculate the parity bit: USART_EVEN_PARITY for normal mode or USART_ODD_PARITY for inverse mode. More...
 

int usart_iso7816_options_t::bit_order

Bit order in transmitted characters:
.

  • 0: LSB first;
  • 1: MSB first.

Referenced by usart_init_iso7816().

int usart_iso7816_options_t::dis_suc_nack

Disable successive NACKs.

Successive parity errors are counted up to the value in the max_iterations field. These parity errors generate a NACK on the ISO line. As soon as this value is reached, no additional NACK is sent on the ISO line. The ITERATION flag is asserted.

Referenced by usart_init_iso7816().

unsigned short usart_iso7816_options_t::fidi_ratio

The number of ISO7816 clock ticks in every bit period (1 to 2047, 0 = disable clock).

Bit rate = iso7816_hz / fidi_ratio.

Referenced by usart_init_iso7816().

int usart_iso7816_options_t::inhibit_nack

Inhibit Non Acknowledge:
.

  • 0: the NACK is generated;
  • 1: the NACK is not generated.
Note
This bit will be used only in ISO7816 mode, protocol T = 0 receiver.

Referenced by usart_init_iso7816().

unsigned long usart_iso7816_options_t::iso7816_hz

Set the frequency of the ISO7816 clock.

Referenced by usart_init_iso7816().

unsigned char usart_iso7816_options_t::max_iterations

Max number of repetitions (0 to 7).

Referenced by usart_init_iso7816().

unsigned char usart_iso7816_options_t::paritytype

How to calculate the parity bit: USART_EVEN_PARITY for normal mode or USART_ODD_PARITY for inverse mode.

Referenced by usart_init_iso7816().