Class SerialGateway

Inheritance Relationships

Base Type

Class Documentation

class SerialGateway : public puma_motor_driver::Gateway

Public Functions

explicit SerialGateway(serial::Serial &serial)
virtual bool connect()
virtual bool isConnected()
virtual bool recv(Message *msg)

Receive the next available message from the bus, blocking for timeout_millis if nonzero.

Returns:

True if a message was returned false if timeout occurred.

virtual void queue(const Message &msg)

Queue specified message to be sent on the bus.

virtual bool sendAllQueued()