Public Member Functions | Private Types | List of all members
uavcan_linux::SubNode Class Reference

#include <helpers.hpp>

Inheritance diagram for uavcan_linux::SubNode:
Inheritance graph
[legend]

Public Member Functions

 SubNode (DriverPackPtr driver_pack)
 
 SubNode (uavcan::ICanDriver &can_driver, uavcan::ISystemClock &clock)
 
- Public Member Functions inherited from uavcan_linux::NodeBase< uavcan::SubNode< NodeMemPoolSize > >
DriverPackPtrgetDriverPack ()
 
const DriverPackPtrgetDriverPack () const
 
BlockingServiceClientPtr< DataType > makeBlockingServiceClient ()
 
PublisherPtr< DataType > makePublisher (uavcan::MonotonicDuration tx_timeout=uavcan::Publisher< DataType >::getDefaultTxTimeout())
 
ServiceClientPtr< DataType > makeServiceClient (const typename uavcan::ServiceClient< DataType >::Callback &cb)
 
ServiceServerPtr< DataType > makeServiceServer (const typename uavcan::ServiceServer< DataType >::Callback &cb)
 
SubscriberPtr< DataType > makeSubscriber (const typename uavcan::Subscriber< DataType >::Callback &cb)
 
TimerPtr makeTimer (uavcan::MonotonicDuration period, const typename uavcan::Timer::Callback &cb)
 
TimerPtr makeTimer (uavcan::MonotonicTime deadline, const typename uavcan::Timer::Callback &cb)
 
 NodeBase (DriverPackPtr driver_pack)
 
 NodeBase (uavcan::ICanDriver &can_driver, uavcan::ISystemClock &clock)
 
- Public Member Functions inherited from uavcan::SubNode< NodeMemPoolSize >
virtual RemoveReference< Allocator >::Type & getAllocator ()
 
uint64_t getInternalFailureCount () const
 
virtual SchedulergetScheduler ()
 
virtual const SchedulergetScheduler () const
 
 SubNode (ICanDriver &can_driver, ISystemClock &system_clock)
 
 SubNode (ICanDriver &can_driver, ISystemClock &system_clock, IPoolAllocator &allocator)
 
- Public Member Functions inherited from uavcan::INode
DispatchergetDispatcher ()
 
const DispatchergetDispatcher () const
 
MonotonicTime getMonotonicTime () const
 
NodeID getNodeID () const
 
virtual const SchedulergetScheduler () const =0
 
ISystemClockgetSystemClock ()
 
UtcTime getUtcTime () const
 
int injectTxFrame (const CanFrame &frame, MonotonicTime tx_deadline, uint8_t iface_mask, CanIOFlags flags=0)
 
void installRxFrameListener (IRxFrameListener *lst)
 
bool isPassiveMode () const
 
void removeRxFrameListener ()
 
bool setNodeID (NodeID nid)
 
int spin (MonotonicDuration duration)
 
int spin (MonotonicTime deadline)
 
int spinOnce ()
 
virtual ~INode ()
 

Private Types

typedef NodeBase< uavcan::SubNode< NodeMemPoolSize > > Base
 

Additional Inherited Members

- Protected Member Functions inherited from uavcan::SubNode< NodeMemPoolSize >
virtual void registerInternalFailure (const char *msg)
 
- Static Protected Member Functions inherited from uavcan_linux::NodeBase< uavcan::SubNode< NodeMemPoolSize > >
static void enforce (int error, const std::string &msg)
 
static std::string getDataTypeName ()
 
- Protected Attributes inherited from uavcan_linux::NodeBase< uavcan::SubNode< NodeMemPoolSize > >
DriverPackPtr driver_pack_
 

Detailed Description

Wrapper for uavcan::SubNode with some additional convenience functions. Do not instantiate this class directly; instead use the factory functions defined below.

Definition at line 338 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ SubNode() [1/2]

uavcan_linux::SubNode::SubNode ( uavcan::ICanDriver can_driver,
uavcan::ISystemClock clock 
)
inline

Simple forwarding constructor, compatible with uavcan::Node.

Definition at line 346 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.

◆ SubNode() [2/2]

uavcan_linux::SubNode::SubNode ( DriverPackPtr  driver_pack)
inlineexplicit

Takes ownership of the driver container via the shared pointer.

Definition at line 351 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:05