TReK C++
5.3.3
Telemetry/Command API
|
This class holds all of the responses associated with a single command uplink. Only methods that are expected to be used by user applications are documented. More...
#include <track_item.h>
Public Member Functions | |
uint32_t | GetToken () |
Returns the token associated with the command uplink. More... | |
const char * | GetCommandName () |
Returns the command name associated with the uplink. More... | |
TrekTime & | GetUplinkTime () |
Returns the time associated with the command uplink. More... | |
uint32_t | GetNumberOfResponses () |
Returns the number of responses available. More... | |
int32_t | GetResponse (uint32_t index, struct response_item &item) |
Gets the information about the specified response as a structure. More... | |
int32_t | GetResponse (uint32_t index, char *name, uint32_t &value, uint32_t &seconds, uint32_t &subsecs, uint32_t &subsecsper) |
Gets the information about the specified response as individual parameters. More... | |
Constructors, Destructor, and Other Basic Methods | |
TrackItem () | |
Default constructor of the class. | |
virtual | ~TrackItem () |
Class destructor. More... | |
This class holds all of the responses associated with a single command uplink. Only methods that are expected to be used by user applications are documented.
|
virtual |
Class destructor.
Removes all resources created with this instance of the class.
const char * trek::TrackItem::GetCommandName | ( | ) |
Returns the command name associated with the uplink.
Example:
uint32_t trek::TrackItem::GetNumberOfResponses | ( | ) |
Returns the number of responses available.
Example:
int32_t trek::TrackItem::GetResponse | ( | uint32_t | index, |
char * | name, | ||
uint32_t & | value, | ||
uint32_t & | seconds, | ||
uint32_t & | subsecs, | ||
uint32_t & | subsecsper | ||
) |
Gets the information about the specified response as individual parameters.
param[in] index - location of response to retrieve param[out] name - the response name (up to 32 characters) param[out] value - the value of the response param[out] seconds - seconds of time param[out] subsecs - sub-seconds of time param[out] subsecsper - number of sub-seconds per second of time
Example:
int32_t trek::TrackItem::GetResponse | ( | uint32_t | index, |
struct response_item & | item | ||
) |
Gets the information about the specified response as a structure.
param[in] index - location of response to retrieve param[out] item - populated with the details for the item
Example:
uint32_t trek::TrackItem::GetToken | ( | ) |
TrekTime & trek::TrackItem::GetUplinkTime | ( | ) |
Returns the time associated with the command uplink.
Example: