|
Firmware
|
Subscription wrapper class. More...
#include <Subscription.hpp>
Public Member Functions | |
| Subscription (const struct orb_metadata *meta, unsigned interval=0, unsigned instance=0, List< SubscriptionNode *> *list=nullptr) | |
| Constructor. More... | |
| Subscription (const Subscription &)=delete | |
| Subscription & | operator= (const Subscription &)=delete |
| Subscription (Subscription &&)=delete | |
| Subscription & | operator= (Subscription &&)=delete |
| bool | update () override |
| Create an update function that uses the embedded struct. | |
| bool | forcedUpdate () override |
| Like update(), but does not check first if there is data available. | |
| const T & | get () const |
Public Member Functions inherited from uORB::SubscriptionNode | |
| SubscriptionNode (const struct orb_metadata *meta, unsigned interval=0, unsigned instance=0, List< SubscriptionNode *> *list=nullptr) | |
| Constructor. More... | |
Public Member Functions inherited from uORB::SubscriptionBase | |
| SubscriptionBase (const struct orb_metadata *meta, unsigned interval=0, unsigned instance=0) | |
| Constructor. More... | |
| SubscriptionBase (const SubscriptionBase &)=delete | |
| SubscriptionBase & | operator= (const SubscriptionBase &)=delete |
| SubscriptionBase (SubscriptionBase &&)=delete | |
| SubscriptionBase & | operator= (SubscriptionBase &&)=delete |
| bool | updated () |
| Check if there is a new update. | |
| bool | update (void *data) |
| Update the struct. More... | |
| int | getHandle () const |
| const orb_metadata * | getMeta () const |
| unsigned | getInstance () const |
Public Member Functions inherited from ListNode< SubscriptionNode *> | |
| void | setSibling (SubscriptionNode * sibling) |
| const SubscriptionNode * | getSibling () const |
Additional Inherited Members | |
Protected Attributes inherited from uORB::SubscriptionBase | |
| const struct orb_metadata * | _meta |
| unsigned | _instance |
| int | _handle {-1} |
Protected Attributes inherited from ListNode< SubscriptionNode *> | |
| SubscriptionNode * | _sibling |
Subscription wrapper class.
|
inline |
Constructor.
| meta | The uORB metadata (usually from the ORB_ID() macro) for the topic. |
| interval | The minimum interval in milliseconds between updates |
| list | A list interface for adding to list during construction |
1.8.12