Microchip® Advanced Software Framework

iso7816_config_t Struct Reference

ISO7816 configuration struct.

ISO7816 configuration structure.

#include <usart.h>

Data Fields

bool enable_inverse
 Enable inverse transmission and reception. More...
 
bool enabled
 
enum iso7816_guard_time guard_time
 Guard time, which lasts two bit times. More...
 
enum iso7816_inhibit_nack inhibit_nack
 Inhibit Non Acknowledge: More...
 
uint32_t max_iterations
 
enum iso7816_protocol_type protocol_t
 ISO7816 protocol type. More...
 
enum iso7816_successive_recv_nack successive_recv_nack
 Disable successive NACKs. More...
 

bool iso7816_config_t::enable_inverse

Enable inverse transmission and reception.

Referenced by _usart_set_config(), and usart_get_config_defaults().

bool iso7816_config_t::enabled
enum iso7816_guard_time iso7816_config_t::guard_time

Guard time, which lasts two bit times.

Referenced by _usart_set_config(), and usart_get_config_defaults().

enum iso7816_inhibit_nack iso7816_config_t::inhibit_nack

Inhibit Non Acknowledge:

  • 0: the NACK is generated;
  • 1: the NACK is not generated.

Referenced by _usart_set_config(), and usart_get_config_defaults().

uint32_t iso7816_config_t::max_iterations
enum iso7816_protocol_type iso7816_config_t::protocol_t

ISO7816 protocol type.

Referenced by _usart_set_config(), and usart_get_config_defaults().

enum iso7816_successive_recv_nack iso7816_config_t::successive_recv_nack

Disable successive NACKs.

  • 0: NACK is sent on the ISO line as soon as a parity error occurs in the received character. 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_set_config(), and usart_get_config_defaults().