PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Interface to enable remote subscriptions. More...
#include <uORBCommunicator.hpp>
Public Member Functions | |
virtual int16_t | topic_advertised (const char *messageName)=0 |
Interface to notify the remote entity of a topic being advertised. More... | |
virtual int16_t | add_subscription (const char *messageName, int32_t msgRateInHz)=0 |
Interface to notify the remote entity of a topic being unadvertised and is no longer publishing messages. More... | |
virtual int16_t | remove_subscription (const char *messageName)=0 |
Interface to notify the remote entity of removal of a subscription. More... | |
virtual int16_t | register_handler (uORBCommunicator::IChannelRxHandler *handler)=0 |
Register Message Handler. More... | |
virtual int16_t | send_message (const char *messageName, int32_t length, uint8_t *data)=0 |
Sends the data message over the communication link. More... | |
Interface to enable remote subscriptions.
The implementor of this interface shall manage the communication channel. It can be fastRPC or tcp or ip.
Definition at line 51 of file uORBCommunicator.hpp.
|
pure virtual |
Interface to notify the remote entity of a topic being unadvertised and is no longer publishing messages.
messageName | This represents the uORB message name(aka topic); This message name should be globally unique. |
messageName | This represents the uORB message name; This message name should be globally unique. |
msgRate | The max rate at which the subscriber can accept the messages. |
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
Referenced by uORB::DeviceNode::add_internal_subscriber().
|
pure virtual |
Register Message Handler.
This is internal for the IChannel implementer*
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
Referenced by uORB::Manager::node_open().
|
pure virtual |
Interface to notify the remote entity of removal of a subscription.
messageName | This represents the uORB message name; This message name should be globally unique. |
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
Referenced by uORB::DeviceNode::remove_internal_subscriber().
|
pure virtual |
Sends the data message over the communication link.
messageName | This represents the uORB message name; This message name should be globally unique. |
length | The length of the data buffer to be sent. |
data | The actual data to be sent. |
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
Referenced by uORB::DeviceNode::publish(), and uORB::DeviceNode::remove_internal_subscriber().
|
pure virtual |
Interface to notify the remote entity of a topic being advertised.
messageName | This represents the uORB message name(aka topic); This message name should be globally unique. |
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
Referenced by uORB::DeviceNode::unadvertise().