Hand Held Products PadCom TT1500 User Manual page 104

Point-of-sale terminal control library
Table of Contents

Advertisement

// *******************************************************
// * Step 3: Check if any of the tracks were read.
// *******************************************************
//
dataReadFromTrack1 = padGetMagTrack ( 1, track1, TRACK1_MAX );
dataReadFromTrack2 = padGetMagTrack ( 2, track2, TRACK2_MAX );
dataReadFromTrack3 = padGetMagTrack ( 3, track3, TRACK3_MAX );
if
(
dataReadFromTrack1 ||
dataReadFromTrack2 ||
dataReadFromTrack3
)
{
//
// At this point we know that at least 1 track was read
// successfully (the last track read, i.e., track 3).
//
// It is possible one or more of the other tracks were
// checked before any data was retrieved from the card.
//
// As soon as one track contains data all of the other
// tracks will as well.
//
// To make sure we get all of the data from all of the tracks
// we will read all of them again.
//
//
// *******************************************************
// * Step 4: Read all of the tracks
// *******************************************************
// Note: step 4 is not needed if only one track is being read
//
dataReadFromTrack1 = padGetMagTrack ( 1, track1, TRACK1_MAX );
dataReadFromTrack2 = padGetMagTrack ( 2, track2, TRACK2_MAX );
dataReadFromTrack3 = padGetMagTrack ( 3, track3, TRACK3_MAX );
5 - 16
*
*

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents