IoT::CANopen

class CANInterface

File Information

Library: IoT/CANopen
Package: CANopen
Header: IoT/CANopen/CANInterface.h

Description

A CANInterface is responsible for sending and receiving CAN frames over a physical CAN interface.

Typically, an implementation of this class will use the services of a CAN protocol stack like SocketCAN to do its work.

Member Summary

Member Functions: receiveFrame, sendFrame

Destructor

~CANInterface virtual

virtual ~CANInterface();

Destroys the CANInterface.

Member Functions

receiveFrame virtual

virtual bool receiveFrame(
    CANFrame & frame,
    Poco::Timespan timeout
) = 0;

Attempts to receive a frame.

Returns true if a frame was received within the given timeout, or false otherwise.

sendFrame virtual

virtual void sendFrame(
    const CANFrame & frame
) = 0;

Sends a frame.

Securely control IoT edge devices from anywhere   Connect a Device