Electronics and Software
Engineering Innovation
BMeasure-lib 1.1.0
BMeasureApi::CommsSerial Class Reference

#include <CommsSerial.h>

Inheritance diagram for BMeasureApi::CommsSerial:
BComms

Public Member Functions

 CommsSerial ()
 
 ~CommsSerial ()
 
BError connect (BString device)
 
BError disconnect ()
 
BUInt readAvailable ()
 
BError read (void *data, BUInt32 num, BUInt32 &nTrans)
 
BError write (const void *data, BUInt32 num, BUInt32 &nTrans)
 
BError wait (BUInt32 eventSet, BTimeout timeout=-1, BUInt32 num=1)
 
- Public Member Functions inherited from BComms
 BComms ()
 
virtual ~BComms ()
 
virtual BError init ()
 
virtual BError setPacketMode (Bool packetMode)
 
virtual Bool packetMode ()
 
virtual BError setTimeout (BTimeout timeoutUs)
 
virtual BError connect (const char *resource)
 
virtual Bool isConnected ()
 
virtual BError disconnect ()
 
virtual void flush (Flush flush)
 
virtual BUInt writeAvailable ()
 
virtual BError write (const void *data, BUInt32 nBytes, BUInt32 &nTrans)=0
 
virtual BError writeChunks (const BDataChunk *chunks, BUInt nChunks, BUInt32 &nTrans)
 
virtual BUInt readAvailable ()
 
virtual BError read (void *data, BUInt32 num, BUInt32 &nTrans)=0
 
virtual BError wait (BEventWaitSet events, BTimeout timeoutUs=BTimeoutForever, BUInt32 num=1)
 
virtual void eventQueue (BEventQueue *eventQueue, BInt32 event, BUInt num=1)
 

Private Attributes

BString odevice
 
int oserialPort
 

Additional Inherited Members

- Public Types inherited from BComms
enum  Flush
 
- Public Attributes inherited from BComms
 FlushRead
 
 FlushWrite
 
 FlushReadWrite
 
- Protected Attributes inherited from BComms
Bool oconnected
 
Bool opacketMode
 
BTimeout otimeout
 
BEventQueueoeventQueue
 
BInt32 oevent
 
BUInt oeventNum
 

Constructor & Destructor Documentation

◆ CommsSerial()

BMeasureApi::CommsSerial::CommsSerial ( )

◆ ~CommsSerial()

BMeasureApi::CommsSerial::~CommsSerial ( )

Member Function Documentation

◆ connect()

BError BMeasureApi::CommsSerial::connect ( BString  device)

◆ disconnect()

BError BMeasureApi::CommsSerial::disconnect ( )
virtual

Reimplemented from BComms.

◆ read()

BError BMeasureApi::CommsSerial::read ( void *  data,
BUInt32  num,
BUInt32 nTrans 
)
virtual

Implements BComms.

◆ readAvailable()

BUInt BMeasureApi::CommsSerial::readAvailable ( )
virtual

Reimplemented from BComms.

◆ wait()

BError BMeasureApi::CommsSerial::wait ( BUInt32  eventSet,
BTimeout  timeout = -1,
BUInt32  num = 1 
)

◆ write()

BError BMeasureApi::CommsSerial::write ( const void *  data,
BUInt32  num,
BUInt32 nTrans 
)
virtual

Implements BComms.

Member Data Documentation

◆ odevice

BString BMeasureApi::CommsSerial::odevice
private

◆ oserialPort

int BMeasureApi::CommsSerial::oserialPort
private

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