Firmware
|
Objects of this class are owned by the sub-node thread. More...
#include <uavcan_virtual_can_driver.hpp>
Public Member Functions | |
VirtualCanIface (uavcan::IPoolAllocator &allocator, uavcan::ISystemClock &clock, pthread_mutex_t &arg_mutex, unsigned quota_per_queue) | |
void | addRxFrame (const uavcan::CanRxFrame &frame, uavcan::CanIOFlags flags) |
Note that RX queue overwrites oldest items when overflowed. More... | |
void | flushTxQueueTo (uavcan::INode &main_node, std::uint8_t iface_index) |
Call this from the main thread only. More... | |
bool | hasDataInRxQueue () |
Call this from the sub-node thread only. More... | |
Objects of this class are owned by the sub-node thread.
This class does not use heap memory.
|
inline |
Note that RX queue overwrites oldest items when overflowed.
Call this from the main thread only. No additional locking is required.
|
inline |
Call this from the main thread only.
No additional locking is required.
|
inline |
Call this from the sub-node thread only.
No additional locking is required.