Go to the documentation of this file.
5 #ifndef UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_SERVER_HPP_INCLUDED
6 #define UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_SERVER_HPP_INCLUDED
16 namespace dynamic_node_id_server
79 if (uptime <
max(allocation_activity_timeout, min_uptime))
97 if (since_allocation_activity < allocation_activity_timeout)
114 #endif // Include guard
int init(const TransferPriority priority)
MonotonicTime getMonotonicTime() const
NodeDiscoverer node_discoverer_
AllocationRequestManager allocation_request_manager_
AbstractServer(INode &node, IEventTracer &tracer)
static MonotonicDuration fromMSec(int64_t ms)
MonotonicTime started_at_
int init(const TransferPriority priority)
const UniqueID & getOwnUniqueID() const
const UAVCAN_EXPORT T & max(const T &a, const T &b)
bool hasUnknownNodes() const
int init(const UniqueID &own_unique_id, const TransferPriority priority)
MonotonicTime getTimeOfLastAllocationActivity() const
const NodeDiscoverer & getNodeDiscoverer() const
bool guessIfAllDynamicNodesAreAllocated(const MonotonicDuration &allocation_activity_timeout=MonotonicDuration::fromMSec(Allocation::MAX_REQUEST_PERIOD_MS *2), const MonotonicDuration &min_uptime=MonotonicDuration::fromMSec(6000)) const
protocol::dynamic_node_id::server::Entry::FieldTypes::unique_id UniqueID