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
void run();
See also: Poco::Runnable::run()
Variables
interfaceError
Poco::BasicEvent < const Poco::Exception > interfaceError;
Fired when a send frame operation on the CAN interface fails with an exception.