PCCom Library: 2 What To Do

Up: GEOS SDK TechDocs | Up | Prev: 1 PCCom Library Abilities | Next: 3 Staying Informed
PCCOMINIT(), PCCOMEXIT(), PCCOMABORT()

When you are ready to start monitoring a serial port for pccom-style communications, call PCCOMINIT(). This routine is an entry point for the library, accessible via ProcGetLibraryEntry () as the first entry point in the library, and it may also be called as a normal routine. PCCOMINIT() starts up a new thread which will monitor the passed serial port. If it cannot make the connection, it will return an error.

When you are done with PCCom, call PCCOMEXIT(), invocable as a library entry point or as a normal routine, which closes down the monitor thread and frees the serial port for other uses. After calling this routine, you must call PCCOMINIT() again if you wish to re-establish the pccom connection.

You may call the PCCOMABORT() routine at any time; this routine aborts any pccom file transfer that may be in progress, but leaves the PCCom connection intact.


Up: GEOS SDK TechDocs | Up | Prev: 1 PCCom Library Abilities | Next: 3 Staying Informed