PX4 Firmware
PX4 Autopilot Software http://px4.io
|
All bus events are reported as POLLIN. More...
#include <thread.hpp>
Public Member Functions | |
BusEvent (CanDriver &can_driver) | |
~BusEvent () | |
void | registerSignalCallback (SignalCallbackHandler handler) |
bool | wait (uavcan::MonotonicDuration duration) |
void | signalFromInterrupt () |
Private Types | |
using | SignalCallbackHandler = void(*)() |
Private Attributes | |
SignalCallbackHandler | signal_cb_ {nullptr} |
sem_t | sem_ |
All bus events are reported as POLLIN.
Definition at line 29 of file thread.hpp.
|
private |
Definition at line 31 of file thread.hpp.
uavcan_kinetis::BusEvent::BusEvent | ( | CanDriver & | can_driver | ) |
Definition at line 14 of file uc_kinetis_thread.cpp.
References sem_.
uavcan_kinetis::BusEvent::~BusEvent | ( | ) |
Definition at line 20 of file uc_kinetis_thread.cpp.
References sem_.
|
inline |
Definition at line 40 of file thread.hpp.
References signal_cb_, signalFromInterrupt(), and wait().
void uavcan_kinetis::BusEvent::signalFromInterrupt | ( | ) |
Definition at line 52 of file uc_kinetis_thread.cpp.
References sem_, and signal_cb_.
Referenced by registerSignalCallback().
bool uavcan_kinetis::BusEvent::wait | ( | uavcan::MonotonicDuration | duration | ) |
Definition at line 25 of file uc_kinetis_thread.cpp.
References sem_.
Referenced by registerSignalCallback().
|
private |
Definition at line 34 of file thread.hpp.
Referenced by BusEvent(), signalFromInterrupt(), wait(), and ~BusEvent().
|
private |
Definition at line 33 of file thread.hpp.
Referenced by registerSignalCallback(), and signalFromInterrupt().