Account
Beamlib 3.3.4 This is the Beam C++ class library. |
Loading...
Searching...
No Matches
BComms Class Referenceabstract
A base class for communications classes having a generic API. More...
#include <BComms.h>
Public Types | |
enum | Flush { FlushRead , FlushWrite , FlushReadWrite } |
Public Member Functions | |
BComms () | |
virtual | ~BComms () |
virtual BError | init () |
virtual void | close () |
virtual const char * | name () |
The name of this interface. | |
virtual BUInt32 | byteRate () |
The byte rate of this interface. | |
virtual BError | setPacketMode (Bool packetMode) |
Set packet mode. | |
virtual Bool | packetMode () |
Device is in packet mode. | |
virtual BError | setTimeout (BTimeout timeoutUs) |
Set communication timeout. | |
virtual BError | connect (const char *resource) |
Create a connection. | |
virtual Bool | isConnected () |
virtual BError | disconnect () |
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 (BUInt32 eventSet, BTimeout timeoutUs=BTimeoutForever, BUInt32 num=1) |
virtual void | eventQueue (BEventQueue *eventQueue, BUInt32 event, BUInt32 eventSet, BUInt num=1) |
virtual void | eventEnable (Bool on) |
Enable events to be sent. | |
Protected Attributes | |
Bool | oconnected |
Bool | opacketMode |
BTimeout | otimeout |
BEventQueue * | oeventQueue |
Bool | oeventEnabled |
BUInt32 | oevent |
BUInt32 | oeventSet |
BUInt | oeventNum |
Detailed Description
A base class for communications classes having a generic API.
Member Enumeration Documentation
◆ Flush
enum BComms::Flush |
Constructor & Destructor Documentation
◆ BComms()
BComms::BComms | ( | ) |
◆ ~BComms()
| virtual |
Member Function Documentation
◆ init()
| virtual |
◆ close()
| virtual |
◆ name()
| virtual |
The name of this interface.
◆ byteRate()
| virtual |
The byte rate of this interface.
◆ setPacketMode()
◆ packetMode()
| virtual |
Device is in packet mode.
◆ setTimeout()
◆ connect()
| virtual |
Create a connection.
◆ isConnected()
| virtual |
◆ disconnect()
| virtual |
Disconnect.
◆ flush()
| virtual |
◆ writeAvailable()
| virtual |
◆ write()
◆ writeChunks()
| virtual |
◆ readAvailable()
| virtual |
◆ read()
◆ wait()
| virtual |
◆ eventQueue()
| virtual |
◆ eventEnable()
| virtual |
Enable events to be sent.
Member Data Documentation
◆ oconnected
| protected |
◆ opacketMode
| protected |
◆ otimeout
| protected |
◆ oeventQueue
| protected |
◆ oeventEnabled
| protected |
◆ oevent
| protected |
◆ oeventSet
| protected |
◆ oeventNum
| protected |
The documentation for this class was generated from the following files:
Generated by