Firmware
Classes | Public Member Functions | Static Public Member Functions | List of all members
uORB::KraitFastRpcChannel Class Reference
Inheritance diagram for uORB::KraitFastRpcChannel:
uORBCommunicator::IChannel

Public Member Functions

virtual int16_t topic_advertised (const char *messageName)
 Interface to notify the remote entity of a topic being advertised. More...
 
virtual int16_t topic_unadvertised (const char *messageName)
 Interface to notify the remote entity of a topic being unadvertised and is no longer publishing messages. More...
 
virtual int16_t add_subscription (const char *messageName, int32_t msgRateInHz)
 Interface to notify the remote entity of interest of a subscription for a message. More...
 
virtual int16_t remove_subscription (const char *messageName)
 Interface to notify the remote entity of removal of a subscription. More...
 
virtual int16_t register_handler (uORBCommunicator::IChannelRxHandler *handler)
 Register Message Handler. More...
 
virtual int16_t send_message (const char *messageName, int32_t length, uint8_t *data)
 Sends the data message over the communication link. More...
 
void Start ()
 
void Stop ()
 

Static Public Member Functions

static uORB::KraitFastRpcChannelGetInstance ()
 static method to get the IChannel Implementor.
 
static bool isInstance ()
 Static method to check if there is an instance.
 

Member Function Documentation

§ add_subscription()

int16_t uORB::KraitFastRpcChannel::add_subscription ( const char *  messageName,
int32_t  msgRateInHz 
)
virtual

Interface to notify the remote entity of interest of a subscription for a message.

Parameters
messageNameThis represents the uORB message name; This message name should be globally unique.
msgRateThe max rate at which the subscriber can accept the messages.
Returns
0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.

Implements uORBCommunicator::IChannel.

§ register_handler()

int16_t uORB::KraitFastRpcChannel::register_handler ( uORBCommunicator::IChannelRxHandler handler)
virtual

Register Message Handler.

This is internal for the IChannel implementer*

Implements uORBCommunicator::IChannel.

§ remove_subscription()

int16_t uORB::KraitFastRpcChannel::remove_subscription ( const char *  messageName)
virtual

Interface to notify the remote entity of removal of a subscription.

Parameters
messageNameThis represents the uORB message name; This message name should be globally unique.
Returns
0 = success; This means the messages is successfully sent to the receiver Note: This does not necessarily mean that the receiver as received it. otherwise = failure.

Implements uORBCommunicator::IChannel.

§ send_message()

int16_t uORB::KraitFastRpcChannel::send_message ( const char *  messageName,
int32_t  length,
uint8_t *  data 
)
virtual

Sends the data message over the communication link.

Parameters
messageNameThis represents the uORB message name; This message name should be globally unique.
lengthThe length of the data buffer to be sent.
dataThe actual data to be sent.
Returns
0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.

Implements uORBCommunicator::IChannel.

§ topic_advertised()

int16_t uORB::KraitFastRpcChannel::topic_advertised ( const char *  messageName)
virtual

Interface to notify the remote entity of a topic being advertised.

Parameters
messageNameThis represents the uORB message name(aka topic); This message name should be globally unique.
Returns
0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.

Implements uORBCommunicator::IChannel.

§ topic_unadvertised()

int16_t uORB::KraitFastRpcChannel::topic_unadvertised ( const char *  messageName)
virtual

Interface to notify the remote entity of a topic being unadvertised and is no longer publishing messages.

Parameters
messageNameThis represents the uORB message name(aka topic); This message name should be globally unique.
Returns
0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.

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