Padget; Padgetallmagcardtracks - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

padGet

Receives new data from the pad by checking for and returning the last horizontal/vertical coordinates and pen status. A pen
status of 1 indicates the continuation of a line (lineto(x,y )), whereas a 0 represents the beginning of a stroke (moveto(x,y)).
NULL pointers may be passed as any of the parameters to suppress gathering of the associated data. Note that if no pen
activity occurred since the last padUpdate, the function returns FALSE and does not alter the values pointed to.
Syntax
BOOL padGet (
int *XPosition,
int *YPosition,
int *Pen
)
Parameter
XPosition
YPosition
Pen
Returns
Returns TRUE if new pen data was received, FALSE otherwise.
See Also
padUpdate, padRecord, padStop

padGetAllMagCardTracks

Returns data captured from all tracks on a magnetic card, if available. A card must have been swiped prior to executing this
command, otherwise it returns zero. The TrackXSize parameters should contain the maximum buffer sizes for each track
before the call, and after will contain actual track sizes after the call. The card reader must be reset using padResetMagCard
before calling this command. Refer to page 5-1 for sample code that describes how to read the MSR.
Syntax
BOOL padGetAllMagCardTracks(
BYTE *Tracks,
char *Track1,
WORD *Track1Size,
char *Track2,
WORD *Track2Size,
char *Track3,
WORD *Track3Size
)
Parameter
Tracks
Track1
Track1Size
Track2
Track2Size
Track3
Track3Size
Returns
Returns TRUE if the function call succeeds, FALSE otherwise.
See Also
padGetMaxCardTrackSize, padGetMaxCardTracks, padResetMagCard, padGetMagTrack
Description
Pointer to an integer to hold the new horizontal coordinate of the pen
Pointer to an integer to hold the new vertical coordinate of the pen
Pointer to an integer to hold the new pen status (0 = moveto, 1 = lineto)
Description
Total tracks
Pointer to the track1
Pointer to the track1 size
Pointer to the track2
Pointer to the track2 size
Pointer to the track3
Pointer to the track3 size
3 - 9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents