Firmware
Classes | Public Member Functions | List of all members
VirtualCanIface Class Reference

Objects of this class are owned by the sub-node thread. More...

#include <uavcan_virtual_can_driver.hpp>

Inheritance diagram for VirtualCanIface:

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...
 

Detailed Description

Objects of this class are owned by the sub-node thread.

This class does not use heap memory.

Member Function Documentation

§ addRxFrame()

void VirtualCanIface::addRxFrame ( const uavcan::CanRxFrame &  frame,
uavcan::CanIOFlags  flags 
)
inline

Note that RX queue overwrites oldest items when overflowed.

Call this from the main thread only. No additional locking is required.

§ flushTxQueueTo()

void VirtualCanIface::flushTxQueueTo ( uavcan::INode &  main_node,
std::uint8_t  iface_index 
)
inline

Call this from the main thread only.

No additional locking is required.

§ hasDataInRxQueue()

bool VirtualCanIface::hasDataInRxQueue ( )
inline

Call this from the sub-node thread only.

No additional locking is required.


The documentation for this class was generated from the following file: