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