Electronics and Software
Engineering Innovation
BMeasure-lib 1.3.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 void close ()
 
virtual const char * name ()
 
virtual BUInt32 byteRate ()
 
virtual BError setPacketMode (Bool packetMode)
 
virtual Bool packetMode ()
 
virtual BError setTimeout (BTimeout timeoutUs)
 
virtual BError connect (const char *resource)
 
virtual Bool isConnected ()
 
virtual void flush (Flush flush)
 
virtual BUInt writeAvailable ()
 
virtual BError writeChunks (const BDataChunk *chunks, BUInt nChunks, BUInt32 &nTrans)
 
virtual void eventQueue (BEventQueue *eventQueue, BUInt32 event, BUInt32 eventSet, BUInt num=1)
 
virtual void eventEnable (Bool on)
 

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
 
Bool oeventEnabled
 
BUInt32 oevent
 
BUInt32 oeventSet
 
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 )
virtual

Reimplemented from BComms.

◆ 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: