Firmware
Classes | Public Member Functions | Friends | List of all members
uORB::DeviceMaster Class Reference

Master control device for ObjDev. More...

#include <uORBDeviceMaster.hpp>

Public Member Functions

int advertise (const struct orb_metadata *meta, int *instance, int priority)
 
uORB::DeviceNodegetDeviceNode (const char *node_name)
 Public interface for getDeviceNodeLocked(). More...
 
uORB::DeviceNodegetDeviceNode (const struct orb_metadata *meta, const uint8_t instance)
 
void printStatistics (bool reset)
 Print statistics for each existing topic. More...
 
void showTop (char **topic_filter, int num_filters)
 Continuously print statistics, like the unix top command for processes. More...
 

Friends

class uORB::Manager
 

Detailed Description

Master control device for ObjDev.

Used primarily to create new objects via the ORBIOCCREATE ioctl.

Member Function Documentation

§ getDeviceNode()

uORB::DeviceNode * uORB::DeviceMaster::getDeviceNode ( const char *  node_name)

Public interface for getDeviceNodeLocked().

Takes care of synchronization.

Returns
node if exists, nullptr otherwise

§ printStatistics()

void uORB::DeviceMaster::printStatistics ( bool  reset)

Print statistics for each existing topic.

Parameters
resetif true, reset statistics afterwards

§ showTop()

void uORB::DeviceMaster::showTop ( char **  topic_filter,
int  num_filters 
)

Continuously print statistics, like the unix top command for processes.

Exited when the user presses the enter key.

Parameters
topic_filterlist of topic filters: if set, each string can be a substring for topics to match. Or it can be '-a', which means to print all topics instead of only currently publishing ones.
num_filters

The documentation for this class was generated from the following files: