#include <dispatcher.hpp>
Classes | |
class | ListenerRegistry |
Private Member Functions | |
void | handleFrame (const CanRxFrame &can_frame) |
void | handleLoopbackFrame (const CanRxFrame &can_frame) |
void | notifyRxFrameListener (const CanRxFrame &can_frame, CanIOFlags flags) |
![]() | |
Noncopyable () | |
~Noncopyable () | |
This class performs low-level CAN frame routing.
Definition at line 80 of file dispatcher.hpp.
|
inline |
Definition at line 136 of file dispatcher.hpp.
void uavcan::Dispatcher::cleanup | ( | MonotonicTime | ts | ) |
Definition at line 306 of file uc_dispatcher.cpp.
|
inline |
Definition at line 234 of file dispatcher.hpp.
|
inline |
Definition at line 233 of file dispatcher.hpp.
|
inline |
These methods can be used to retreive lists of messages, service requests and service responses the dispatcher is currently listening to. Note that the list of service response listeners is very volatile, because a response listener will be removed from this list as soon as the corresponding service call is complete.
Definition at line 188 of file dispatcher.hpp.
|
inline |
Definition at line 192 of file dispatcher.hpp.
|
inline |
Definition at line 196 of file dispatcher.hpp.
|
inline |
Definition at line 207 of file dispatcher.hpp.
|
inline |
Node ID can be set only once. Non-unicast Node ID puts the node into passive mode.
Definition at line 222 of file dispatcher.hpp.
|
inline |
Definition at line 177 of file dispatcher.hpp.
|
inline |
Definition at line 178 of file dispatcher.hpp.
|
inline |
Definition at line 179 of file dispatcher.hpp.
|
inline |
Definition at line 204 of file dispatcher.hpp.
|
inline |
Definition at line 209 of file dispatcher.hpp.
|
inline |
Definition at line 231 of file dispatcher.hpp.
|
inline |
Definition at line 230 of file dispatcher.hpp.
|
inline |
Definition at line 237 of file dispatcher.hpp.
|
inline |
Definition at line 236 of file dispatcher.hpp.
|
private |
Definition at line 149 of file uc_dispatcher.cpp.
|
private |
Definition at line 199 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::hasPublisher | ( | DataTypeID | dtid | ) | const |
Definition at line 364 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::hasServer | ( | DataTypeID | dtid | ) | const |
Definition at line 369 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::hasSubscriber | ( | DataTypeID | dtid | ) | const |
Definition at line 359 of file uc_dispatcher.cpp.
|
inline |
Definition at line 211 of file dispatcher.hpp.
|
inline |
Refer to the specs to learn more about passive mode.
Definition at line 228 of file dispatcher.hpp.
|
private |
Definition at line 212 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::registerMessageListener | ( | TransferListener * | listener | ) |
Definition at line 314 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::registerServiceRequestListener | ( | TransferListener * | listener | ) |
Definition at line 324 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::registerServiceResponseListener | ( | TransferListener * | listener | ) |
Definition at line 334 of file uc_dispatcher.cpp.
|
inline |
Definition at line 210 of file dispatcher.hpp.
int uavcan::Dispatcher::send | ( | const Frame & | frame, |
MonotonicTime | tx_deadline, | ||
MonotonicTime | blocking_deadline, | ||
CanIOFlags | flags, | ||
uint8_t | iface_mask | ||
) |
Refer to CanIOManager::send() for the parameter description
Definition at line 287 of file uc_dispatcher.cpp.
bool uavcan::Dispatcher::setNodeID | ( | NodeID | nid | ) |
Definition at line 374 of file uc_dispatcher.cpp.
int uavcan::Dispatcher::spin | ( | MonotonicTime | deadline | ) |
This version returns strictly when the deadline is reached.
Definition at line 221 of file uc_dispatcher.cpp.
int uavcan::Dispatcher::spinOnce | ( | ) |
This version does not return until all available frames are processed.
Definition at line 252 of file uc_dispatcher.cpp.
void uavcan::Dispatcher::unregisterMessageListener | ( | TransferListener * | listener | ) |
Definition at line 344 of file uc_dispatcher.cpp.
void uavcan::Dispatcher::unregisterServiceRequestListener | ( | TransferListener * | listener | ) |
Definition at line 349 of file uc_dispatcher.cpp.
void uavcan::Dispatcher::unregisterServiceResponseListener | ( | TransferListener * | listener | ) |
Definition at line 354 of file uc_dispatcher.cpp.
|
private |
Definition at line 82 of file dispatcher.hpp.
|
private |
Definition at line 117 of file dispatcher.hpp.
|
private |
Definition at line 122 of file dispatcher.hpp.
|
private |
Definition at line 118 of file dispatcher.hpp.
|
private |
Definition at line 119 of file dispatcher.hpp.
|
private |
Definition at line 84 of file dispatcher.hpp.
|
private |
Definition at line 85 of file dispatcher.hpp.
|
private |
Definition at line 123 of file dispatcher.hpp.
|
private |
Definition at line 126 of file dispatcher.hpp.
|
private |
Definition at line 127 of file dispatcher.hpp.
|
private |
Definition at line 83 of file dispatcher.hpp.