|
|
|
@ -36,41 +36,41 @@
@@ -36,41 +36,41 @@
|
|
|
|
|
|
|
|
|
|
namespace px4muorb |
|
|
|
|
{ |
|
|
|
|
class KraitRpcWrapper; |
|
|
|
|
class KraitRpcWrapper; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class px4muorb::KraitRpcWrapper |
|
|
|
|
{ |
|
|
|
|
public: |
|
|
|
|
/**
|
|
|
|
|
* Constructor |
|
|
|
|
*/ |
|
|
|
|
KraitRpcWrapper() {} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* destructor |
|
|
|
|
*/ |
|
|
|
|
~KraitRpcWrapper() {} |
|
|
|
|
/**
|
|
|
|
|
* Constructor |
|
|
|
|
*/ |
|
|
|
|
KraitRpcWrapper() {} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initiatizes the rpc channel px4 muorb |
|
|
|
|
*/ |
|
|
|
|
bool Initialize() { return true; } |
|
|
|
|
/**
|
|
|
|
|
* destructor |
|
|
|
|
*/ |
|
|
|
|
~KraitRpcWrapper() {} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Terminate to clean up the resources. This should be called at program exit |
|
|
|
|
*/ |
|
|
|
|
bool Terminate() { return true; } |
|
|
|
|
/**
|
|
|
|
|
* Initiatizes the rpc channel px4 muorb |
|
|
|
|
*/ |
|
|
|
|
bool Initialize() { return true; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Muorb related functions to pub/sub of orb topic from krait to adsp |
|
|
|
|
*/ |
|
|
|
|
int32_t AddSubscriber( const char* topic ) { return 1; } |
|
|
|
|
int32_t RemoveSubscriber( const char* topic ) { return 1; } |
|
|
|
|
int32_t SendData( const char* topic, int32_t length_in_bytes, const uint8_t* data ) { return 1; } |
|
|
|
|
int32_t ReceiveData( int32_t* msg_type, char** topic, int32_t* length_in_bytes, uint8_t** data ) { return 1; } |
|
|
|
|
int32_t IsSubscriberPresent( const char* topic, int32_t* status ) { return 1; } |
|
|
|
|
int32_t ReceiveBulkData( uint8_t** bulk_data, int32_t* length_in_bytes, int32_t* topic_count ) { return 1; } |
|
|
|
|
int32_t UnblockReceiveData() { return 1; } |
|
|
|
|
/**
|
|
|
|
|
* Terminate to clean up the resources. This should be called at program exit |
|
|
|
|
*/ |
|
|
|
|
bool Terminate() { return true; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Muorb related functions to pub/sub of orb topic from krait to adsp |
|
|
|
|
*/ |
|
|
|
|
int32_t AddSubscriber(const char *topic) { return 1; } |
|
|
|
|
int32_t RemoveSubscriber(const char *topic) { return 1; } |
|
|
|
|
int32_t SendData(const char *topic, int32_t length_in_bytes, const uint8_t *data) { return 1; } |
|
|
|
|
int32_t ReceiveData(int32_t *msg_type, char **topic, int32_t *length_in_bytes, uint8_t **data) { return 1; } |
|
|
|
|
int32_t IsSubscriberPresent(const char *topic, int32_t *status) { return 1; } |
|
|
|
|
int32_t ReceiveBulkData(uint8_t **bulk_data, int32_t *length_in_bytes, int32_t *topic_count) { return 1; } |
|
|
|
|
int32_t UnblockReceiveData() { return 1; } |
|
|
|
|
}; |
|
|
|
|
#endif // _px4muorb_KraitWrapper_hpp_
|
|
|
|
|