Public Member Functions | |
virtual | ~CommunicationsBus () |
virtual thread::Mutex & | getMutex () const =0 |
virtual void | open (int port)=0 |
virtual void | close ()=0 |
virtual bool | isOpen () const =0 |
virtual int | send (int busId, const unsigned char *data, size_t len) const =0 |
virtual int | receive (int expectedBusId, unsigned char *data, size_t &len, bool blocking=true, bool realtime=false) const |
virtual int | receiveRaw (int &busId, unsigned char *data, size_t &len, bool blocking=true) const =0 |
Static Public Attributes | |
static const size_t | MAX_MESSAGE_LEN = 8 |
static const double | TIMEOUT = 1.0 |
virtual barrett::bus::CommunicationsBus::~CommunicationsBus | ( | ) | [inline, virtual] |
Bus connection timeout limit in seconds
virtual thread::Mutex& barrett::bus::CommunicationsBus::getMutex | ( | ) | const [pure virtual] |
Destructor
Implemented in barrett::bus::CANSocket, and barrett::bus::BusManager.
const double barrett::bus::CommunicationsBus::TIMEOUT = 1.0 [static] |
The maximum of any of the available communications buses