Logo Search packages:      
Sourcecode: garmindev version File versions  Download package

Garmin::ILink Class Reference

#include <ILink.h>

Inheritance diagram for Garmin::ILink:

Garmin::CSerial Garmin::CUSB

List of all members.

Detailed Description

Base class for all link objects.

Use CUSB and CSerial to exchange messages with your device.

Do not forget that you communicate to a plug-n-play device. The user might disconnect without notice. Another application might access the device, too. Thus open the link for each exchange and close it after the exchange. The _acquire() and _release() method of the driver implementation shoud be a good place to use open() and close().

Definition at line 69 of file ILink.h.

Public Member Functions

virtual void close ()=0
virtual void open ()=0
virtual int read (Packet_t &data)=0
virtual void write (const Packet_t &data)=0

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index