Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

commands.h File Reference

Command declarations. More...

Go to the source code of this file.

Defines

#define CLA_PROP   0x80
 CLA byte: Proprietary. More...

#define INS_WRITE   0x02
 INS byte: Write EEPROM. More...

#define INS_READ   0x04
 INS byte: Read EEPROM. More...

#define INS_LED   0x06
 INS byte: LED Effects. More...

#define INS_CHANGE_PIN   0x24
 INS byte: Change PIN. More...

#define INS_CREATE   0xE0
 INS byte: Create File. More...

#define INS_DELETE   0xE4
 INS byte: Delete File. More...

#define INS_EXTERNAL_AUTH   0x82
 INS byte: External Authentication. More...

#define INS_GET_CHALLENGE   0x84
 INS byte: Get Challenge. More...

#define INS_GET_RESPONSE   0xC0
 INS byte: Get Response. More...

#define INS_INTERNAL_AUTH   0x88
 INS byte: Internal Authentication. More...

#define INS_READ_BINARY   0xB0
 INS byte: Read Binary. More...

#define INS_SELECT   0xA4
 INS byte: Select File. More...

#define INS_UNBLOCK_PIN   0x2C
 INS byte: Unblock PIN. More...

#define INS_UPDATE_BINARY   0xD6
 INS byte: Update Binary. More...

#define INS_VERIFY_KEY   0x2A
 INS byte: Verify Key. More...

#define INS_VERIFY_PIN   0x20
 INS byte: Verify PIN. More...


Functions

void cmd_write (void)
 Write EEPROM. (Test command). More...

void cmd_read (void)
 Read EEPROM. (Test command). More...

void cmd_led (void)
 LED Effects. More...

void cmd_changeUnblockPIN (void)
 Change or Unblock PIN. More...

void cmd_create (void)
 Create File. More...

void cmd_delete (void)
 Delete File. More...

void cmd_extAuth (void)
 External Authentication. More...

void cmd_getChallenge (void)
 Get Challenge. More...

void cmd_getResponse (void)
 Get Response. More...

void cmd_intAuth (void)
 Internal Authentication. More...

void cmd_readBinary (void)
 Read Binary. More...

void cmd_select (void)
 Select File. More...

void cmd_updateBinary (void)
 Update Binary. More...

void cmd_verifyKeyPIN (void)
 Verify Key/Verify PIN. More...


Variables

iu8 resplen
 Valid data in response array. Invalid if zero. More...


Detailed Description

Command declarations.

The documentation of the commands is on the main page of the doxygen documentation.

Id:
commands.h,v 1.15 2002/12/22 15:42:55 m Exp


Define Documentation

#define CLA_PROP   0x80
 

CLA byte: Proprietary.

#define INS_CHANGE_PIN   0x24
 

INS byte: Change PIN.

#define INS_CREATE   0xE0
 

INS byte: Create File.

#define INS_DELETE   0xE4
 

INS byte: Delete File.

#define INS_EXTERNAL_AUTH   0x82
 

INS byte: External Authentication.

#define INS_GET_CHALLENGE   0x84
 

INS byte: Get Challenge.

#define INS_GET_RESPONSE   0xC0
 

INS byte: Get Response.

#define INS_INTERNAL_AUTH   0x88
 

INS byte: Internal Authentication.

#define INS_LED   0x06
 

INS byte: LED Effects.

#define INS_READ   0x04
 

INS byte: Read EEPROM.

#define INS_READ_BINARY   0xB0
 

INS byte: Read Binary.

#define INS_SELECT   0xA4
 

INS byte: Select File.

#define INS_UNBLOCK_PIN   0x2C
 

INS byte: Unblock PIN.

#define INS_UPDATE_BINARY   0xD6
 

INS byte: Update Binary.

#define INS_VERIFY_KEY   0x2A
 

INS byte: Verify Key.

#define INS_VERIFY_PIN   0x20
 

INS byte: Verify PIN.

#define INS_WRITE   0x02
 

INS byte: Write EEPROM.


Function Documentation

void cmd_changeUnblockPIN void   
 

Change or Unblock PIN.

void cmd_create void   
 

Create File.

void cmd_delete void   
 

Delete File.

void cmd_extAuth void   
 

External Authentication.

void cmd_getChallenge void   
 

Get Challenge.

void cmd_getResponse void   
 

Get Response.

void cmd_intAuth void   
 

Internal Authentication.

void cmd_led void   
 

LED Effects.

void cmd_read void   
 

Read EEPROM. (Test command).

void cmd_readBinary void   
 

Read Binary.

void cmd_select void   
 

Select File.

void cmd_updateBinary void   
 

Update Binary.

void cmd_verifyKeyPIN void   
 

Verify Key/Verify PIN.

This function is a combined implementation of Verify Key and Verify PIN. This is done to save code size.

void cmd_write void   
 

Write EEPROM. (Test command).


Variable Documentation

iu8 resplen
 

Valid data in response array. Invalid if zero.


Copyright 2002 by Matthias Bruestle. This is licensed under the GNU General Public License.