Padgetintimeout; Padgetmagtrack - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

See Also
padSetFont, padGetFont

padGetInTimeout

This function returns the current time-out value used for the com port's input (in milliseconds) from the connected pad. This
is not related to the time-out used during the initial connection phase (see "padSetConnectTimeout" on page 3-52).
Syntax
unsigned int padGetInTimeout(
void
)
See Also
padSetInTimout, padResetInTimeout, padGetOutTimeout, padSetOutTimeout, padResetOutTimeout,
padSetConnectTimeout, padGetConnectTimeout, padResetConnectTimeout

padGetMagTrack

This function retrieves a track from a magnetic card. It provides low level access to the magnetic card reader, if attached.
When reading track 1, 2, or 3, the function returns the number of bytes actually read and the Buf parameter contains the data
read, if any.
Before reading a track, you must reset the magnetic card reader. To reset the magnetic card reader you can call
padResetMagCard, or you can call this function using 0 for all of the parameters. The return value is non-zero if a reader
is attached, otherwise it is zero. Please refer to padResetMagCard (see page 3-46) for more information. Refer to page 5-
1 for sample code that describes how to read the MSR.
Syntax
unsigned padGetMagTrack(
int Track,
char *Buf,
unsigned Size
)
Parameter
Track
Buf
Size
Returns
When Track is 0, returns non-zero if a reader is attached, zero otherwise. Other Track values return the number of
bytes read from the desired track, if any.
See Also
padResetMagCard, padGetMaxCardTrackSize, padGetMaxCardTracks, padGetAllMagCardTracks
padGetDUKPTbinaryPIN, padGetDUKPTtextPIN, padGetMasterSessionBinaryPIN, padGetMasterSessionTextPIN
Description
The number of the track to be read
Pointer to a character buffer to receive the track data
Maximum number of characters to read into Buf
3 - 15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents