Libbarrett  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines
Public Member Functions | Static Public Attributes
barrett::bus::CommunicationsBus Class Reference
Inheritance diagram for barrett::bus::CommunicationsBus:
barrett::bus::BusManager barrett::bus::CANSocket

List of all members.

Public Member Functions

virtual ~CommunicationsBus ()
virtual thread::MutexgetMutex () 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

Constructor & Destructor Documentation

Bus connection timeout limit in seconds


Member Function Documentation

virtual thread::Mutex& barrett::bus::CommunicationsBus::getMutex ( ) const [pure virtual]

Destructor

Implemented in barrett::bus::CANSocket, and barrett::bus::BusManager.


Member Data Documentation

const double barrett::bus::CommunicationsBus::TIMEOUT = 1.0 [static]

The maximum of any of the available communications buses


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines