PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Class passed to the communication link implement to provide callback for received messages over a channel. More...
#include <uORBCommunicator.hpp>
Public Member Functions | |
virtual int16_t | process_remote_topic (const char *topic_name, bool isAdvertisement)=0 |
Interface to process a received topic from remote. More... | |
virtual int16_t | process_add_subscription (const char *messageName, int32_t msgRateInHz)=0 |
Interface to process a received AddSubscription from remote. More... | |
virtual int16_t | process_remove_subscription (const char *messageName)=0 |
Interface to process a received control msg to remove subscription. More... | |
virtual int16_t | process_received_message (const char *messageName, int32_t length, uint8_t *data)=0 |
Interface to process the received data message. More... | |
Class passed to the communication link implement to provide callback for received messages over a channel.
Definition at line 153 of file uORBCommunicator.hpp.
|
pure virtual |
Interface to process a received AddSubscription from remote.
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. |
Referenced by px4muorb_add_subscriber().
|
pure virtual |
Interface to process the received data message.
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. |
Referenced by uORB::KraitFastRpcChannel::fastrpc_recv_thread(), and px4muorb_send_topic_data().
|
pure virtual |
Interface to process a received topic from remote.
topic_name | This represents the uORB message Name (topic); This message Name should be globally unique. |
isAdvertisement | Represents if the topic has been advertised or is no longer avialable. |
Referenced by uORB::KraitFastRpcChannel::fastrpc_recv_thread(), px4muorb_topic_advertised(), and px4muorb_topic_unadvertised().
|
pure virtual |
Interface to process a received control msg to remove subscription.
messageName | This represents the uORB message Name; This message Name should be globally unique. |
Referenced by px4muorb_remove_subscriber().