Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

rdetect.cpp File Reference

Stand-alone tool to detect magstripe hardware. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "rdetect.h"
#include "reader.h"
#include "loader.h"
#include "misc.h"
#include "ssflags.h"

Include dependency graph for rdetect.cpp:

Include dependency graph

Functions

ReaderqueryReader (int i)
ReaderqueryGameReader ()
 queries GameReader on global port variable

ReaderqueryParallelReader ()
 Currently unused.

ReaderquerySerialReader ()
 Creates a Reader object for a Serial Reader (LINUX ONLY CURRENTLY).

void setupDirectIO ()
 calls necessary init functions for platform for direct i/o access

void sortByValue (long *fluxes, int *mask)
 sorts "deltas" in High -> low fashion

int promptForPort (int i)
 prompts user for hexidecimal port number

int main (int argc, char *argv[])
 Start of execution.


Variables

SSFlags ssFlags
 commandline options, needed by Reader instances

int port

Detailed Description

Stand-alone tool to detect magstripe hardware.

rdetect prompted user for questions and autoprobe the physical wiring of a magstripe device to create the hardware configuration file (config::xml) that Stripe Snoop needs.

Author:
Acidus (acidus@msblabs.org)
This file is part of Stripe Snoop (http://stripesnoop.sourceforge.net)

Stripe Snoop is licensed under the GPL. See COPYING for more info

Copyright (C) 2005 Acidus, Most Significant Bit Labs


Function Documentation

int main int  argc,
char *  argv[]
 

Start of execution.

Parameters:
argc number of command line params
argv char * [] of command line params

Here is the call graph for this function:

int promptForPort int  i  ) 
 

prompts user for hexidecimal port number

Parameters:
i switch for message type (1=Game, 2=parallel)

Here is the call graph for this function:

Reader* queryGameReader  ) 
 

queries GameReader on global port variable

Returns:
ptr to Reader for this magstripe reader

Here is the call graph for this function:

Reader* queryParallelReader  ) 
 

Currently unused.

Reader* queryReader int  i  ) 
 

Here is the call graph for this function:

Reader* querySerialReader  ) 
 

Creates a Reader object for a Serial Reader (LINUX ONLY CURRENTLY).

Returns:
ptr to Reader for magstripe reader

Here is the call graph for this function:

void setupDirectIO  ) 
 

calls necessary init functions for platform for direct i/o access

void sortByValue long *  fluxes,
int *  mask
 

sorts "deltas" in High -> low fashion

Parameters:
fluxes int[] containing # of deltas
mask int [] containing data bit number associated with given delta


Variable Documentation

int port
 

SSFlags ssFlags
 

commandline options, needed by Reader instances


Generated on Thu Apr 7 01:56:16 2005 for StripeSnoop by doxygen 1.3.3