Public Member Functions | Private Attributes
puma_motor_driver::SocketCANGateway Class Reference

#include <socketcan_gateway.h>

Inheritance diagram for puma_motor_driver::SocketCANGateway:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool connect ()
virtual bool isConnected ()
void msgToFrame (Message *msg, can_frame *frame)
virtual void queue (const Message &msg)
virtual bool recv (Message *msg)
virtual bool sendAllQueued ()
 SocketCANGateway (std::string canbus_dev)

Private Attributes

std::string canbus_dev_
bool is_connected_
int socket_
can_frame write_frames_ [1024]
int write_frames_index_

Detailed Description

Definition at line 49 of file socketcan_gateway.h.


Constructor & Destructor Documentation

puma_motor_driver::SocketCANGateway::SocketCANGateway ( std::string  canbus_dev) [explicit]

Definition at line 44 of file socketcan_gateway.cpp.


Member Function Documentation

Implements puma_motor_driver::Gateway.

Definition at line 51 of file socketcan_gateway.cpp.

Implements puma_motor_driver::Gateway.

Definition at line 95 of file socketcan_gateway.cpp.

void puma_motor_driver::SocketCANGateway::msgToFrame ( Message msg,
can_frame *  frame 
)

Definition at line 157 of file socketcan_gateway.cpp.

void puma_motor_driver::SocketCANGateway::queue ( const Message msg) [virtual]

Queue specified message to be sent on the bus.

Implements puma_motor_driver::Gateway.

Definition at line 133 of file socketcan_gateway.cpp.

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.

Implements puma_motor_driver::Gateway.

Definition at line 101 of file socketcan_gateway.cpp.

Send the queued messages on the bus.

Implements puma_motor_driver::Gateway.

Definition at line 146 of file socketcan_gateway.cpp.


Member Data Documentation

Definition at line 64 of file socketcan_gateway.h.

Definition at line 65 of file socketcan_gateway.h.

Definition at line 63 of file socketcan_gateway.h.

Definition at line 67 of file socketcan_gateway.h.

Definition at line 68 of file socketcan_gateway.h.


The documentation for this class was generated from the following files:


puma_motor_driver
Author(s):
autogenerated on Sat Jun 8 2019 18:55:15