IoT::CANopen

class FrameScheduler

File Information

Library: IoT/CANopen
Package: CANcore
Header: IoT/CANopen/FrameScheduler.h

Inheritance

Direct Base Classes: Poco::Runnable

All Base Classes: Poco::Runnable

Member Summary

Member Functions: run, sendFrame, start, stop

Inherited Functions: run

Constructors

FrameScheduler

FrameScheduler(
    CANInterface & canInterface,
    long interFrameDelay
);

Creates the FrameScheduler with the given CANInterface and inter-frame delay in milliseconds.

FrameScheduler

FrameScheduler(
    CANInterface & canInterface,
    int bitrate,
    int busUtilization
);

Creates the FrameScheduler with the given CANInterface, bitrate (bits per second) and bus utilization in percent (1 - 100).

Member Functions

sendFrame

void sendFrame(
    const CANFrame & frame
);

Enqueues the given CANFrame on the send queue.

start

void start();

Starts scheduling frames.

stop

void stop();

Stops scheduling frames.

run protected virtual

void run();

Variables

interfaceError

Poco::BasicEvent < const Poco::Exception > interfaceError;

Fired when a send frame operation on the CAN interface fails with an exception.

Securely control IoT edge devices from anywhere   Connect a Device