| Beam-lib     2.15.1     | 
#include <BoapMc1.h>
| Public Member Functions | |
| BoapMc1Comms (Bool threaded=0, BUInt reqSize=512) | |
| virtual | ~BoapMc1Comms () | 
| void | setCommsMode (Bool halfDuplex) | 
| Sets half duplex mode.  More... | |
| void | setComms (BComms &comms) | 
| Sets the communications interface to use.  More... | |
| void | setComms (BComms *comms) | 
| Sets the communications interface to use.  More... | |
| void | setAddress (BUInt16 addressTo, BUInt16 addressFrom) | 
| Sets the to and from addresses.  More... | |
| BUInt32 | getApiVersion () | 
| Returns the API version.  More... | |
| BUInt32 | setTimeout (BUInt32 timeoutUs) | 
| Sets the call timeout returning the current value.  More... | |
| BoapMc1Packet * | packetRx () | 
| returns a reference to the current RX packet  More... | |
| virtual BError | processRx (BTimeout timeoutUs=BTimeoutForever) | 
| Process any RX packets queuing them as needed.  More... | |
| Protected Member Functions | |
| virtual BError | processRequests (BTimeout timeoutUs=BTimeoutForever) | 
| Check and process any requests.  More... | |
| virtual BError | processRequest (BTimeout timeoutUs=BTimeoutForever) | 
| Check and process any request.  More... | |
| BError | packetTx (BDataChunk *chunks, BUInt nChunks, BUInt16 waitCmdReply) | 
| BError | packetRxData (void *data, BUInt nBytes) | 
| BError | packetRxEnd () | 
| Protected Attributes | |
| Bool | othreaded | 
| Threaded operation.  More... | |
| BUInt32 | oreqSize | 
| The maximum request size.  More... | |
| BMutex | olockCall | 
| Lock for RPC calls. Only one at a time.  More... | |
| BMutex | olockTx | 
| Lock for TX.  More... | |
| BComms * | ocomms | 
| BUInt32 | oapiVersion | 
| Bool | ohalfDuplex | 
| Half duplex mode.  More... | |
| BUInt32 | otimeout | 
| The timeout in us for calls.  More... | |
| BUInt16 | oaddressTo | 
| BUInt16 | oaddressFrom | 
| BoapMc1Packet | opacketRxBase | 
| BoapMc1Packet * | opacketRx | 
| The RX packet.  More... | |
| BoapMc1Packet | opacketTxBase | 
| BoapMc1Packet * | opacketTx | 
| The TX packet.  More... | |
| BUInt | opacketRpcCmd | 
| Waiting for RPC reply to cmd.  More... | |
| BSemaphore | opacketRpcSema | 
| Wait RPC reply semaphore.  More... | |
| BSemaphore | opacketRpcDoneSema | 
| Wait RPC complete semaphore.  More... | |
| BoapMc1Error | oerror | 
| The call return error;.  More... | |
Constructor & Destructor Documentation
◆ BoapMc1Comms()
◆ ~BoapMc1Comms()
| 
 | virtual | 
Member Function Documentation
◆ getApiVersion()
| BUInt32 BoapMc1Comms::getApiVersion | ( | ) | 
Returns the API version.
◆ packetRx()
| BoapMc1Packet * BoapMc1Comms::packetRx | ( | ) | 
returns a reference to the current RX packet
◆ packetRxData()
◆ packetRxEnd()
| 
 | protected | 
◆ packetTx()
| 
 | protected | 
◆ processRequest()
| 
 | protectedvirtual | 
Check and process any request.
◆ processRequests()
| 
 | protectedvirtual | 
Check and process any requests.
◆ processRx()
| 
 | virtual | 
Process any RX packets queuing them as needed.
◆ setAddress()
Sets the to and from addresses.
◆ setComms() [1/2]
| void BoapMc1Comms::setComms | ( | BComms & | comms | ) | 
Sets the communications interface to use.
◆ setComms() [2/2]
| void BoapMc1Comms::setComms | ( | BComms * | comms | ) | 
Sets the communications interface to use.
◆ setCommsMode()
| void BoapMc1Comms::setCommsMode | ( | Bool | halfDuplex | ) | 
Sets half duplex mode.
◆ setTimeout()
Sets the call timeout returning the current value.
Member Data Documentation
◆ oaddressFrom
| 
 | protected | 
◆ oaddressTo
| 
 | protected | 
◆ oapiVersion
| 
 | protected | 
◆ ocomms
| 
 | protected | 
◆ oerror
| 
 | protected | 
The call return error;.
◆ ohalfDuplex
| 
 | protected | 
Half duplex mode.
◆ olockCall
| 
 | protected | 
Lock for RPC calls. Only one at a time.
◆ olockTx
| 
 | protected | 
Lock for TX.
◆ opacketRpcCmd
| 
 | protected | 
Waiting for RPC reply to cmd.
◆ opacketRpcDoneSema
| 
 | protected | 
Wait RPC complete semaphore.
◆ opacketRpcSema
| 
 | protected | 
Wait RPC reply semaphore.
◆ opacketRx
| 
 | protected | 
The RX packet.
◆ opacketRxBase
| 
 | protected | 
◆ opacketTx
| 
 | protected | 
The TX packet.
◆ opacketTxBase
| 
 | protected | 
◆ oreqSize
| 
 | protected | 
The maximum request size.
◆ othreaded
| 
 | protected | 
Threaded operation.
◆ otimeout
| 
 | protected | 
The timeout in us for calls.
The documentation for this class was generated from the following files:
Generated by
 1.8.14
  1.8.14  
