APM:Libraries
|
#include <PollerThread.h>
Classes | |
class | WrapperCb |
Public Types | |
using | PeriodicCb = AP_HAL::Device::PeriodicCb |
Public Member Functions | |
virtual | ~TimerPollable () |
void | on_can_read () override |
bool | setup_timer (uint32_t timeout_usec) |
bool | adjust_timer (uint32_t timeout_usec) |
![]() | |
Pollable (int fd) | |
Pollable () | |
virtual | ~Pollable () |
int | get_fd () const |
virtual void | on_can_write () |
virtual void | on_error () |
virtual void | on_hang_up () |
Protected Member Functions | |
TimerPollable (PeriodicCb cb, WrapperCb *wrapper) | |
Protected Attributes | |
PeriodicCb | _cb |
WrapperCb * | _wrapper |
bool | _removeme = false |
![]() | |
int | _fd = -1 |
Friends | |
class | PollerThread |
Definition at line 29 of file PollerThread.h.
using Linux::TimerPollable::PeriodicCb = AP_HAL::Device::PeriodicCb |
Definition at line 41 of file PollerThread.h.
|
inlinevirtual |
|
inlineprotected |
Definition at line 51 of file PollerThread.h.
Referenced by Linux::PollerThread::add_timer().
bool Linux::TimerPollable::adjust_timer | ( | uint32_t | timeout_usec | ) |
Definition at line 71 of file PollerThread.cpp.
Referenced by setup_timer(), Linux::PollerThread::~PollerThread(), and ~TimerPollable().
|
overridevirtual |
Reimplemented from Linux::Pollable.
Definition at line 28 of file PollerThread.cpp.
Referenced by ~TimerPollable().
bool Linux::TimerPollable::setup_timer | ( | uint32_t | timeout_usec | ) |
Definition at line 51 of file PollerThread.cpp.
Referenced by Linux::PollerThread::add_timer(), and ~TimerPollable().
|
friend |
Definition at line 30 of file PollerThread.h.
|
protected |
Definition at line 57 of file PollerThread.h.
Referenced by on_can_read().
|
protected |
Definition at line 59 of file PollerThread.h.
Referenced by Linux::PollerThread::_cleanup_timers(), and on_can_read().
|
protected |
Definition at line 58 of file PollerThread.h.
Referenced by on_can_read().