APM:Libraries
|
#include <Device.h>
Classes | |
struct | callback_info |
Public Member Functions | |
DeviceBus (uint8_t _thread_priority=APM_I2C_PRIORITY) | |
AP_HAL::Device::PeriodicHandle | register_periodic_callback (uint32_t period_usec, AP_HAL::Device::PeriodicCb, AP_HAL::Device *hal_device) |
bool | adjust_timer (AP_HAL::Device::PeriodicHandle h, uint32_t period_usec) |
Static Public Member Functions | |
static void * | bus_thread (void *arg) |
Public Attributes | |
struct DeviceBus * | next |
Semaphore | semaphore |
Private Attributes | |
struct PX4::DeviceBus::callback_info * | callbacks |
uint8_t | thread_priority |
pthread_t | thread_ctx |
bool | thread_started |
AP_HAL::Device * | hal_device |
|
inline |
bool PX4::DeviceBus::adjust_timer | ( | AP_HAL::Device::PeriodicHandle | h, |
uint32_t | period_usec | ||
) |
Definition at line 140 of file Device.cpp.
Referenced by PX4::I2CDevice::adjust_periodic_callback(), and PX4::SPIDevice::adjust_periodic_callback().
|
static |
Definition at line 34 of file Device.cpp.
Referenced by register_periodic_callback().
AP_HAL::Device::PeriodicHandle PX4::DeviceBus::register_periodic_callback | ( | uint32_t | period_usec, |
AP_HAL::Device::PeriodicCb | cb, | ||
AP_HAL::Device * | hal_device | ||
) |
Definition at line 102 of file Device.cpp.
Referenced by PX4::I2CDevice::register_periodic_callback(), and PX4::SPIDevice::register_periodic_callback().
|
private |
Referenced by bus_thread(), and register_periodic_callback().
|
private |
Definition at line 46 of file Device.h.
Referenced by bus_thread(), and register_periodic_callback().
struct DeviceBus* PX4::DeviceBus::next |
Definition at line 29 of file Device.h.
Referenced by PX4::SPIDeviceManager::get_device().
Semaphore PX4::DeviceBus::semaphore |
Definition at line 30 of file Device.h.
Referenced by bus_thread(), PX4::I2CDevice::get_semaphore(), and PX4::SPIDevice::get_semaphore().
|
private |
Definition at line 44 of file Device.h.
Referenced by adjust_timer(), and register_periodic_callback().
|
private |
Definition at line 43 of file Device.h.
Referenced by register_periodic_callback().
|
private |
Definition at line 45 of file Device.h.
Referenced by register_periodic_callback().