Skip to content

Commit

Permalink
Merge pull request #39 from kylemanna/tiny_remove_rxframelistener
Browse files Browse the repository at this point in the history
libuavcan: Disable Frame Listener with UAVCAN_TINY
  • Loading branch information
pavel-kirienko committed Jun 10, 2015
2 parents 7b44bf8 + b01f2bc commit c6dc048
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libuavcan/include/uavcan/node/abstract_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,14 @@ class UAVCAN_EXPORT INode
return getDispatcher().getCanIOManager().send(frame, tx_deadline, MonotonicTime(), iface_mask, qos, flags);
}

#if !UAVCAN_TINY
/**
* 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); }
#endif
};

}
Expand Down

0 comments on commit c6dc048

Please sign in to comment.