[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

TlpControl

PURPOSE
Direct connection to the reader.
PROTOTYPE
Trap: TlpErr TlpControl (UInt16 refNum, UInt8 command, const UInt8 *commandData, UInt16 commandDataLength, UInt8 *responseData, UInt16 *responseDataLength, UInt16 responseTimeOut)

PARAMETERS
command IN command code to send
commandData IN data to send
commandDataLength IN size of commandData
responseData OUT data received
responseDataLength IN OUT size of responseData
responseTimeOut IN response timeout in seconds

DESCRIPTION
Send a command and commandData to the reader, and fill responseData with a received response up to responseDataLength bytes. On exit responseDataLength is set to the actual number of bytes read. Both commandData and responseData can be NULL.

This function allow to use reader features not implemented in this library. The return value can be any TlpErr code. If no response is received within responseTimeOut seconds, the PalmOS serial functions will return a timeout error and thus this library will return tlpErrPalmOS. Use value 0 to wait infinitely.

SEE ALSO
enum TlpErr.



This document was generated by Alexandre Duret-Lutz on August, 7 2001 using texi2html