PX4 Firmware
PX4 Autopilot Software http://px4.io
px4::logger::LoggerSubscription Struct Reference

#include <logger.h>

Inheritance diagram for px4::logger::LoggerSubscription:
Collaboration diagram for px4::logger::LoggerSubscription:

Public Member Functions

 LoggerSubscription ()=default
 
 LoggerSubscription (const orb_metadata *meta, uint32_t interval_ms=0, uint8_t instance=0)
 
- Public Member Functions inherited from uORB::SubscriptionInterval
 SubscriptionInterval (const orb_metadata *meta, uint32_t interval_us=0, uint8_t instance=0)
 Constructor. More...
 
 SubscriptionInterval ()
 
 ~SubscriptionInterval ()=default
 
bool subscribe ()
 
bool advertised ()
 
bool updated ()
 Check if there is a new update. More...
 
bool update (void *dst)
 Copy the struct if updated. More...
 
bool copy (void *dst)
 Copy the struct. More...
 
bool valid () const
 
uint8_t get_instance () const
 
orb_id_t get_topic () const
 
void set_interval_us (uint32_t interval)
 Set the interval in microseconds. More...
 
void set_interval_ms (uint32_t interval)
 Set the interval in milliseconds. More...
 

Public Attributes

uint8_t msg_id {MSG_ID_INVALID}
 

Additional Inherited Members

- Protected Attributes inherited from uORB::SubscriptionInterval
Subscription _subscription
 
uint64_t _last_update {0}
 
uint32_t _interval_us {0}
 

Detailed Description

Definition at line 88 of file logger.h.

Constructor & Destructor Documentation

◆ LoggerSubscription() [1/2]

px4::logger::LoggerSubscription::LoggerSubscription ( )
default

◆ LoggerSubscription() [2/2]

px4::logger::LoggerSubscription::LoggerSubscription ( const orb_metadata meta,
uint32_t  interval_ms = 0,
uint8_t  instance = 0 
)
inline

Definition at line 94 of file logger.h.

Member Data Documentation

◆ msg_id

uint8_t px4::logger::LoggerSubscription::msg_id {MSG_ID_INVALID}

Definition at line 90 of file logger.h.

Referenced by px4::logger::Logger::write_add_logged_msg().


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