3 - 15
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
(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
Description
Track
The number of the track to be read
Buf
Pointer to a character buffer to receive the track data
Size
Maximum number of characters to read into Buf
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
Summary of Contents for PadCom TT1500
Page 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Page 88: ...4 2 ...
Page 129: ......
Page 130: ......
Page 131: ......
Page 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...