mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-12 04:03:34 +08:00
Exposed RX listener API via INode interface
This commit is contained in:
@@ -114,6 +114,13 @@ public:
|
||||
{
|
||||
return getDispatcher().getCanIOManager().send(frame, tx_deadline, MonotonicTime(), iface_mask, qos, flags);
|
||||
}
|
||||
|
||||
/**
|
||||
* The @ref IRxFrameListener interface allows one to monitor all incoming CAN frames.
|
||||
* This feature can be used to implement multithreaded nodes, or to add secondary protocol support.
|
||||
*/
|
||||
void removeRxFrameListener() { getDispatcher().removeRxFrameListener(); }
|
||||
void installRxFrameListener(IRxFrameListener* lst) { getDispatcher().installRxFrameListener(lst); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user