39 #include <px4_platform_common/posix.h> 85 void showTop(
char **topic_filter,
int num_filters);
102 char **topic_filter,
int num_filters);
119 void lock() {
do {}
while (px4_sem_wait(&_lock) != 0); }
List< uORB::DeviceNode * > _node_list
An intrusive linked list.
int addNewDeviceNodes(DeviceNodeStatisticsData **first_node, int &num_topics, size_t &max_topic_name_length, char **topic_filter, int num_filters)
int reset(enum LPS22HB_BUS busid)
Reset the driver.
uORB::DeviceNode * getDeviceNodeLocked(const struct orb_metadata *meta, const uint8_t instance)
Find a node give its name.
Per-object device instance.
uint32_t last_lost_msg_count
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
hrt_abstime _last_statistics_output
void showTop(char **topic_filter, int num_filters)
Continuously print statistics, like the unix top command for processes.
unsigned int pub_msg_delta
px4_sem_t _lock
lock to protect access to all class members (also for derived classes)
Master control device for ObjDev.
DeviceNodeStatisticsData * next
uORB::DeviceNode * getDeviceNode(const char *node_name)
Public interface for getDeviceNodeLocked().
void printStatistics(bool reset)
Print statistics for each existing topic.
unsigned int last_pub_msg_count
int advertise(const struct orb_metadata *meta, bool is_advertiser, int *instance, int priority)
This is implemented as a singleton.