Microchip® Advanced Software Framework

iso7816.h File Reference

Smart Card Standard ISO7816 driver.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include "port.h"
#include "usart.h"

Macros

#define ISO7816_PIN_POWER_OFF   false
 
#define ISO7816_PIN_POWER_ON   true
 
#define ISO7816_USART_RCV   1
 
#define ISO7816_USART_SEND   0
 Flip flop for send and receive char. More...
 

Functions

void iso7816_cold_reset (void)
 Cold reset. More...
 
void iso7816_data_block_atr (uint8_t *p_atr, uint8_t *p_length)
 Answer To Reset (ATR). More...
 
void iso7816_decode_atr (uint8_t *p_atr)
 Decode ATR trace. More...
 
bool iso7816_get_reset_statuts (void)
 Pin status for ISO7816 RESET PIN. More...
 
void iso7816_init (struct usart_module *const module, uint32_t pin_rst, uint32_t clock_get_hz)
 Initializes a ISO7816 interface device. More...
 
void iso7816_warm_reset (void)
 Warm reset. More...
 
uint16_t iso7816_xfr_block_tpdu_t0 (const uint8_t *p_apdu, uint8_t *p_message, uint16_t us_length)
 Transfer Block TPDU T = 0. More...
 

#define ISO7816_PIN_POWER_OFF   false

Referenced by iso7816_icc_power_off().

#define ISO7816_PIN_POWER_ON   true

Referenced by iso7816_icc_power_on().

#define ISO7816_USART_RCV   1
#define ISO7816_USART_SEND   0

Flip flop for send and receive char.

Referenced by iso7816_get_char(), and iso7816_send_char().