| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| port | IN | the port to open |
serPortCradlePort to designate the serial port.
See the documentation for SrmOpen in the Palm OS
Reference Manual for other values.
TlpOpen returns a PalmOS error code if it fails
to establish the connection or allocate data. It is
safe to call TlpOpen again if the previous call
failed but not if it was successful (because in the latter
case the library intialized its internal state).
This function will return sysErrRomIncompatible
if a needed feature (such as the new serial manager) is missing.
The default mode used by this library is ASCII at 9600 bauds,
if this do not correspond to the reader configuration, reconfigure
the line with TlpConfigureLinePalm.
UInt16 tlpRef; Err err; err = SysLibFind (tlpLibName, &tlpRef); if (err) err = SysLibLoad (tlpLibType, tlpLibCreator, &tlpRef); if (err) ... handle error ... err = TlpOpen (tlpRef, serPortCradlePort); if (err) ... handle error ... |