#include <BoapMc.h>
Public Member Functions | |
BoapMcComms () | |
virtual | ~BoapMcComms () |
void | setComms (BComms &comms) |
Sets the communications interface to use. | |
void | setAddress (BUInt8 addressTo, BUInt8 addressFrom) |
Sets the to and from addresses. | |
virtual BError | process () |
Check and process any received packets. | |
virtual BError | processPacket (BoapMcPacket &rx, BoapMcPacket &tx) |
Process a recieved packet. | |
Protected Member Functions | |
BError | performCall () |
Performs a RPC call to the service. | |
BError | performSend () |
Performs a send. | |
BError | performRecv (BUInt8 cmd=0) |
Performs a receive. | |
Protected Attributes | |
BComms * | ocomms |
BUInt32 | oapiVersion |
BUInt8 | oaddressTo |
BUInt8 | oaddressFrom |
BoapMcPacket | opacketTx |
BoapMcPacket | opacketRx |
BoapMcComms::BoapMcComms | ( | ) |
BoapMcComms::~BoapMcComms | ( | ) | [virtual] |
BError BoapMcComms::performCall | ( | ) | [protected] |
Performs a RPC call to the service.
BError BoapMcComms::performSend | ( | ) | [protected] |
Performs a send.
BError BoapMcComms::process | ( | ) | [virtual] |
Check and process any received packets.
BError BoapMcComms::processPacket | ( | BoapMcPacket & | rx, | |
BoapMcPacket & | tx | |||
) | [virtual] |
Process a recieved packet.
Sets the to and from addresses.
void BoapMcComms::setComms | ( | BComms & | comms | ) |
Sets the communications interface to use.
BUInt8 BoapMcComms::oaddressFrom [protected] |
BUInt8 BoapMcComms::oaddressTo [protected] |
BUInt32 BoapMcComms::oapiVersion [protected] |
BComms* BoapMcComms::ocomms [protected] |
BoapMcPacket BoapMcComms::opacketRx [protected] |
BoapMcPacket BoapMcComms::opacketTx [protected] |