PX4 Firmware
PX4 Autopilot Software http://px4.io
uORB::PublicationMulti< T > Class Template Reference

Base publication multi wrapper class. More...

#include <PublicationMulti.hpp>

Inheritance diagram for uORB::PublicationMulti< T >:
Collaboration diagram for uORB::PublicationMulti< T >:

Public Member Functions

 PublicationMulti (const orb_metadata *meta, uint8_t priority=ORB_PRIO_DEFAULT)
 Constructor. More...
 
 ~PublicationMulti ()
 
bool publish (const T &data)
 Publish the struct. More...
 

Protected Attributes

const orb_metadata_meta
 
orb_advert_t _handle {nullptr}
 
const uint8_t _priority
 

Detailed Description

template<typename T>
class uORB::PublicationMulti< T >

Base publication multi wrapper class.

Definition at line 52 of file PublicationMulti.hpp.

Constructor & Destructor Documentation

◆ PublicationMulti()

template<typename T>
uORB::PublicationMulti< T >::PublicationMulti ( const orb_metadata meta,
uint8_t  priority = ORB_PRIO_DEFAULT 
)
inline

Constructor.

Parameters
metaThe uORB metadata (usually from the ORB_ID() macro) for the topic.
priorityThe priority for multi pub/sub, 0 means don't publish as multi

Definition at line 62 of file PublicationMulti.hpp.

◆ ~PublicationMulti()

template<typename T>
uORB::PublicationMulti< T >::~PublicationMulti ( )
inline

Definition at line 67 of file PublicationMulti.hpp.

Member Function Documentation

◆ publish()

Member Data Documentation

◆ _handle

◆ _meta

template<typename T>
const orb_metadata* uORB::PublicationMulti< T >::_meta
protected

◆ _priority

template<typename T>
const uint8_t uORB::PublicationMulti< T >::_priority
protected

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