10 #include <nuttx/config.h> 11 #include <nuttx/fs/fs.h> 18 #include <uavcan/uavcan.hpp> 42 bool wait(uavcan::MonotonicDuration duration);
59 return pthread_mutex_init(&mutex_, UAVCAN_NULLPTR);
64 return pthread_mutex_destroy(&mutex_);
69 (void)pthread_mutex_lock(&mutex_);
74 (void)pthread_mutex_unlock(&mutex_);
void(*)() SignalCallbackHandler
BusEvent(CanDriver &can_driver)
MutexLocker(Mutex &mutex)
CAN driver, incorporates all available CAN ifaces.
void init()
Activates/configures the hardware registers.
void signalFromInterrupt()
All bus events are reported as POLLIN.
void registerSignalCallback(SignalCallbackHandler handler)
SignalCallbackHandler signal_cb_
bool wait(uavcan::MonotonicDuration duration)