Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

fstest.c File Reference

Test program for file system functions. More...

#include <stdio.h>
#include <auth.h>
#include <fs.h>
#include <fstream.h>
#include <hal.h>

Functions

int main (int argc, char *argv[])

Variables

iu16 fsstart
 Start address of the MF file header. More...

iu16 fssize
 Size of the content area of the MF. More...

iu8 authstate
 Variable indicating current authentication state. More...


Detailed Description

Test program for file system functions.

Id:
fstest.c,v 1.11 2002/12/22 15:42:55 m Exp


Function Documentation

int main int    argc,
char *    argv[]
 


Variable Documentation

iu8 authstate  
 

Variable indicating current authentication state.

Single bit flags indicate, which authorization process has been successful. The flag is cleared, at the reset of the card and after unsuccessful authorization processes.

Valid flags are:

  • AUTH_FLAG_PIN
  • AUTH_FLAG_KEY

iu16 fssize
 

Size of the content area of the MF.

iu16 fsstart
 

Start address of the MF file header.


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