LibTmsApi
2.0.0
|
#include <BComms.h>
Public Types | |
enum | Wait { WaitNone = 0x00, WaitRead = 0x01, WaitWrite = 0x02, WaitError = 0x04 } |
Public Member Functions | |
BComms () | |
virtual | ~BComms () |
virtual BError | init () |
virtual BError | setPacketMode (Bool packetMode) |
Set packet mode. More... | |
virtual Bool | packetMode () |
Device is in packet mode. More... | |
virtual BError | setTimeout (BInt timeoutMs) |
Set communication timeout. More... | |
virtual BUInt | writeAvailable () |
virtual BError | write (const void *data, BUInt32 nBytes, BUInt32 &nTrans)=0 |
virtual BUInt | readAvailable () |
virtual BError | read (void *data, BUInt32 num, BUInt32 &nTrans)=0 |
virtual BError | wait (BUInt8 events, BInt timeout=-1, BUInt32 num=1) |
virtual void | eventQueue (BEventQueue *eventQueue, BInt32 event, BUInt num=1) |
Protected Attributes | |
Bool | opacketMode |
BInt32 | otimeout |
BEventQueue * | oeventQueue |
BInt32 | oevent |
BUInt | oeventNum |
enum BComms::Wait |
BComms::BComms | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Device is in packet mode.
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |