#include <BComms.h>
|
| | 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 (BTimeout timeoutUs) |
| | Set communication timeout. More...
|
| |
| virtual BError | connect (const char *resource) |
| | Create a connection. More...
|
| |
| virtual Bool | isConnected () |
| |
| virtual BError | disconnect () |
| | Disconnect. More...
|
| |
| 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) |
| |
◆ Flush
| Enumerator |
|---|
| FlushRead | |
| FlushWrite | |
| FlushReadWrite | |
◆ BComms()
◆ ~BComms()
◆ connect()
| BError BComms::connect | ( | const char * | resource | ) | | | virtual |
◆ disconnect()
◆ eventQueue()
◆ flush()
| void BComms::flush | ( | Flush | flush | ) | | | virtual |
◆ init()
◆ isConnected()
| Bool BComms::isConnected | ( | | ) | | | virtual |
◆ packetMode()
| Bool BComms::packetMode | ( | | ) | | | virtual |
Device is in packet mode.
◆ read()
◆ readAvailable()
| BUInt BComms::readAvailable | ( | | ) | | | virtual |
◆ setPacketMode()
◆ setTimeout()
Set communication timeout.
◆ wait()
◆ write()
◆ writeAvailable()
| BUInt BComms::writeAvailable | ( | | ) | | | virtual |
◆ writeChunks()
◆ oconnected
◆ oevent
◆ oeventNum
◆ oeventQueue
◆ opacketMode
◆ otimeout
The documentation for this class was generated from the following files: