TReK ANSI-C
5.3.3
All ANSI-C APIs
|
The ANSI C version of the TReK Release API (trek_user_api). More...
Functions | |
Raw/Unprocessed Data API Functions | |
This section addresses functions that can be used to retreive raw data. There are functions to retrieve raw data for an entire packet, a subset, or an MSID. | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestRawValue (int packet_type, int parameter_type, const char *identifier, const char *apid, int data_mode, long *token, long *size_of_data, unsigned char *value, char *status) |
Gets the newest available raw (unprocessed/binary) value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextRawValue (int packet_type, int parameter_type, const char *identifier, const char *apid, int data_mode, long *token, long *size_of_data, unsigned char *value, char *status) |
Gets the next available raw (unprocessed/binary) value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketRawValue (int packet_type, int parameter_type, const char *identifier, int data_mode, long *token, long *from_this_pkt_token, long *size_of_data, unsigned char *value, char *status) |
Gets the raw value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestRawValue (int packet_type, int parameter_type, const char *identifier, const char *apid, int data_mode, unsigned long *number_samples, long *token, long *size_of_data, unsigned char **value, char **status) |
This function provides a way to retrieve one or multiple samples of the newest raw value for a specified parameter. A parameter can be an entire packet, a subset, or an MSID. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextRawValue (int packet_type, int parameter_type, const char *identifier, const char *apid, int data_mode, unsigned long *number_samples, long *token, long *size_of_data, unsigned char **value, char **status) |
This function provides a way to retrieve one or multiple samples of the next raw value for a specified parameter. A parameter can be an entire packet, a subset, or an MSID. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketRawValue (int packet_type, int parameter_type, const char *identifier, int data_mode, unsigned long *number_samples, long *token, long *from_this_pkt_token, long *size_of_data, unsigned char **value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter as raw (unprocessed) data from the same packet as another parameter. A parameter can be an entire packet, a subset, or an MSID. More... | |
Converted Data API Functions | |
This section addresses functions that can be used to retrieve converted data. Each function is designed to retrieve data of a particular data type. | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestConvertedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, long *value, char *status) |
Gets the newest available integer value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestConvertedUnsignedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, unsigned long *value, char *status) |
Gets the newest available unsigned integer value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestConvertedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, double *value, char *status) |
Gets the newest available double value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestConvertedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, long *token, long *size_of_data, char *value, char *status) |
Gets the newest available string value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestConvertedTimeValue (int packet_type, const char *msid, const char *apid, int data_mode, long *token, TReK_Time *value, char *status) |
Gets the newest available time value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestConvertedTimeStringValue (int packet_type, const char *msid, const char *apid, int data_mode, long *token, long *size_of_data, char *value, char *status) |
Gets the newest available time string value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextConvertedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, long *value, char *status) |
Gets the next available integer value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextConvertedUnsignedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, unsigned long *value, char *status) |
Gets the next available unsigned integer value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextConvertedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, double *value, char *status) |
Gets the next available double value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextConvertedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, long *token, long *size_of_data, char *value, char *status) |
Gets the next available string value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextConvertedTimeValue (int packet_type, const char *msid, const char *apid, int data_mode, long *token, TReK_Time *value, char *status) |
Gets the next available time value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextConvertedTimeStringValue (int packet_type, const char *msid, const char *apid, int data_mode, long *token, long *size_of_data, char *value, char *status) |
Gets the next available time string value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketConvertedIntegerValue (int packet_type, const char *msid, int data_mode, int limit_es_flag, long *token, long *from_this_pkt_token, long *value, char *status) |
Gets the integer value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketConvertedUnsignedIntegerValue (int packet_type, const char *msid, int data_mode, int limit_es_flag, long *token, long *from_this_pkt_token, unsigned long *value, char *status) |
Gets the unsigned integer value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketConvertedDoubleValue (int packet_type, const char *msid, int data_mode, int limit_es_flag, long *token, long *from_this_pkt_token, double *value, char *status) |
Gets the double value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketConvertedStringValue (int packet_type, const char *msid, int data_mode, long *token, long *from_this_pkt_token, long *size_of_data, char *value, char *status) |
Gets the string value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketConvertedTimeValue (int packet_type, const char *msid, int data_mode, long *token, long *from_this_pkt_token, TReK_Time *value, char *status) |
Gets the time value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketConvertedTimeStringValue (int packet_type, const char *msid, int data_mode, long *token, long *from_this_pkt_token, long *size_of_data, char *value, char *status) |
Gets the time string value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestConvertedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is an integer. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestConvertedUnsignedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, unsigned long *value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is an unsigned integer. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestConvertedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, double *value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a floating point. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestConvertedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, long *token, long *size_of_data, char **value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a string. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestConvertedTimeValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, long *token, TReK_Time *value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a time. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextConvertedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is an integer. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextConvertedUnsignedIntegerValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, unsigned long *value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is an unsigned integer. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextConvertedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, double *value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a floating point. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextConvertedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, long *token, long *size_of_data, char **value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a string. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextConvertedTimeValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, long *token, TReK_Time *value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a time. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketConvertedIntegerValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *from_this_pkt_token, long *value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as an integer. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketConvertedUnsignedIntegerValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *from_this_pkt_token, unsigned long *value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as an unsigned integer. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketConvertedDoubleValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *from_this_pkt_token, double *value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as a double. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketConvertedStringValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, long *token, long *from_this_pkt_token, long *size_of_data, char **value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as a character string. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketConvertedTimeValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, long *token, long *from_this_pkt_token, TReK_Time *value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as a time value. The time value is returned via a TReK_Time structure. The definition of the TReK_Time structure is located in the trek.h file. The TReK_Time structure contains a variable that is a tm_time structure. The tm_time structure is defined in the C Run-time library. More... | |
Calibrated Data API Functions | |
This section addresses functions that can be used to retrieve converted data. Each function is designed to retrieve data of a particular data type. | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestCalibratedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, double *value, char *status) |
Gets the newest available calibrated double value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNewestCalibratedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, long *size_of_data, char *value, char *status) |
Gets the newest available calibrated string (enumerator) value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextCalibratedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, double *value, char *status) |
Gets the next available calibrated double value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneNextCalibratedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, int limit_es_flag, long *token, long *size_of_data, char *value, char *status) |
Gets the next available calibrated string (enumerator) value for the specified parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketCalibratedDoubleValue (int packet_type, const char *msid, int data_mode, int limit_es_flag, long *token, long *from_this_pkt_token, double *value, char *status) |
Gets the calibrated double value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOneSamePacketCalibratedStringValue (int packet_type, const char *msid, int data_mode, int limit_es_flag, long *token, long *from_this_pkt_token, long *size_of_data, char *value, char *status) |
Gets the calibrated string value for the specified parameter from the same packet as another parameter. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestCalibratedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, double *value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when calibrated is a floating point. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestCalibratedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *size_of_data, char **value, char **status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when calibrated is a string. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextCalibratedDoubleValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, double *value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when calibrated is a floating point. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextCalibratedStringValue (int packet_type, const char *msid, const char *apid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *size_of_data, char **value, char **status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when calibrated is a string. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketCalibratedDoubleValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *from_this_pkt_token, double *value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is calibrated as a double. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetSamePacketCalibratedStringValue (int packet_type, const char *msid, int data_mode, unsigned long *number_samples, int limit_es_flag, long *token, long *from_this_pkt_token, long *size_of_data, char **value, char **status) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is calibrated as a character string. More... | |
General API Functions | |
These functions do not fit in the other categories. | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetAPIReturnCodeAsString (int api_code, long size_of_data, char *message) |
This function provides a way to retrieve a string value that corresponds to an API integer value return code. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetPacketArrivalEventName (int packet_type, const char *apid, int data_mode, char **event_name) |
This function gets the event name associated with packet arrival. This string can be used with the WaitForPacketArrival() function. When a packet arrives the WaitForPacketArrival() function releases and you can get new data from the packet. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetParameterInformation (int packet_type, const char *msid, int data_mode, const char *processing_flag, Measurement_Properties *meas_prop) |
This function provides a way to retrieve parameter information about a MSID. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNewestDatazone (int packet_type, const char *apid, int data_mode, long *token, long *size_of_data, unsigned char *value, char *status) |
Gets the newest available data zone for the specified packet. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetNextDatazone (int packet_type, const char *apid, int data_mode, long *token, long *size_of_data, unsigned char *value, char *status) |
Gets the next available data zone for the specified packet. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | WaitForPacketArrival (const char *event_name, unsigned int timeout) |
This function waits for the event name retunred from the WaitForPacketArrival() function. When a packet arrives function returns and you can get new data from the packet. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | UnregisterPacketArrivalEvent (int packet_type, const char *apid, int data_mode, const char *event_name) |
Removes the specified event name associated with packet arrival. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | InitializeMultipleParameters (int packet_type, int data_mode, Multiple_Add_Struct *add_struct, unsigned long number_parameters) |
This function immediately returns SUCCESS. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | GetOverallStatus (int packet_type, const char *msid, int data_mode, const long *token, unsigned long *overall_status) |
int EXPORT_THIS_ANSI_C_FUNCTION | SetMonitorLogFile (const char *filename) |
This function sets the filename for writing monitoring messages for archival. The filename should include the full directory path. When the file is created a timestamp is appended to the name and a ".log" extension is added after the timestamp. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | StartMonitorLogging () |
This function starts logging of monitoring messages. Only messages occurring after the function call will be written to the file. More... | |
int EXPORT_THIS_ANSI_C_FUNCTION | StopMonitorLogging () |
This function stops logging of monitoring messages. More... | |
The ANSI C version of the TReK Release API (trek_user_api).
int EXPORT_THIS_ANSI_C_FUNCTION GetAPIReturnCodeAsString | ( | int | api_code, |
long | size_of_data, | ||
char * | message | ||
) |
This function provides a way to retrieve a string value that corresponds to an API integer value return code.
[in] | api_code | The API integer value return code. |
[in] | size_of_data | This parameter is an Input parameter. This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | message | On SUCCESS this parameter will contain the message string. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestCalibratedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when calibrated is a floating point.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestCalibratedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | size_of_data, | ||
char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when calibrated is a string.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestConvertedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a floating point.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestConvertedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is an integer.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestConvertedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | size_of_data, | ||
char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a string.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestConvertedTimeValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
TReK_Time * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a time.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestConvertedUnsignedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
unsigned long * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is an unsigned integer.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestDatazone | ( | int | packet_type, |
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
unsigned char * | value, | ||
char * | status | ||
) |
Gets the newest available data zone for the specified packet.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for a single sample of the data that is being returned. The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, than you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNewestRawValue | ( | int | packet_type, |
int | parameter_type, | ||
const char * | identifier, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | size_of_data, | ||
unsigned char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of the newest raw value for a specified parameter. A parameter can be an entire packet, a subset, or an MSID.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. | ||||||||||||
[in] | parameter_type | On a TReK System, any data aggregate is considered a parameter. Therefore packets, subsets, and MSIDs are all considered parameters. The parameter type argument identifies what type of parameter is being retrieved. The parameter_type information passed in should be one of the following values: CCSDS_PACKET, EHS_PACKET, SUBSET, or MSID. Please note that when you request to retrieve a CCSDS_PACKET, the API will return a complete CCSDS packet. This does not include the EHS header. You must pass in a parameter type of EHS_PACKET to retrieve the EHS header information. | ||||||||||||
[in] | identifier | The identifier for the parameter. The identifier is based on the parameter_type and should be one of the following:
| ||||||||||||
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). | ||||||||||||
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. | ||||||||||||
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. | ||||||||||||
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. | ||||||||||||
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. | ||||||||||||
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. | ||||||||||||
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextCalibratedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when calibrated is a floating point.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextCalibratedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | size_of_data, | ||
char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when calibrated is a string.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextConvertedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a floating point.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextConvertedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is an integer.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextConvertedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | size_of_data, | ||
char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a string.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextConvertedTimeValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
TReK_Time * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a time.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextConvertedUnsignedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
unsigned long * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is an unsigned integer.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextDatazone | ( | int | packet_type, |
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
unsigned char * | value, | ||
char * | status | ||
) |
Gets the next available data zone for the specified packet.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for a single sample of the data that is being returned. The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, than you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetNextRawValue | ( | int | packet_type, |
int | parameter_type, | ||
const char * | identifier, | ||
const char * | apid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | size_of_data, | ||
unsigned char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of the next raw value for a specified parameter. A parameter can be an entire packet, a subset, or an MSID.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. | ||||||||||||
[in] | parameter_type | On a TReK System, any data aggregate is considered a parameter. Therefore packets, subsets, and MSIDs are all considered parameters. The parameter type argument identifies what type of parameter is being retrieved. The parameter_type information passed in should be one of the following values: CCSDS_PACKET, EHS_PACKET, SUBSET, or MSID. Please note that when you request to retrieve a CCSDS_PACKET, the API will return a complete CCSDS packet. This does not include the EHS header. You must pass in a parameter type of EHS_PACKET to retrieve the EHS header information. | ||||||||||||
[in] | identifier | The identifier for the parameter. The identifier is based on the parameter_type and should be one of the following:
| ||||||||||||
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). | ||||||||||||
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. | ||||||||||||
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. | ||||||||||||
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. | ||||||||||||
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. | ||||||||||||
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. | ||||||||||||
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestCalibratedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char * | status | ||
) |
Gets the newest available calibrated double value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestCalibratedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the newest available calibrated string (enumerator) value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestConvertedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char * | status | ||
) |
Gets the newest available double value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestConvertedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | value, | ||
char * | status | ||
) |
Gets the newest available integer value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestConvertedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the newest available string value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestConvertedTimeStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the newest available time string value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestConvertedTimeValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
TReK_Time * | value, | ||
char * | status | ||
) |
Gets the newest available time value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestConvertedUnsignedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
unsigned long * | value, | ||
char * | status | ||
) |
Gets the newest available unsigned integer value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNewestRawValue | ( | int | packet_type, |
int | parameter_type, | ||
const char * | identifier, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
unsigned char * | value, | ||
char * | status | ||
) |
Gets the newest available raw (unprocessed/binary) value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. | ||||||||||||
[in] | parameter_type | On a TReK Release 3 System, any data aggregate is considered a parameter. Therefore packets, subsets, and MSIDs are all considered parameters. The parameter type argument identifies what type of parameter is being retrieved. The parameter_type information passed in should be one of the following values: CCSDS_PACKET, EHS_PACKET, SUBSET, or MSID. Please note that when you request to retrieve a CCSDS_PACKET, the API will return a complete CCSDS packet. This does not include the EHS header. You must pass in a parameter type of EHS_PACKET to retrieve the EHS header information. | ||||||||||||
[in] | identifier | The identifier for the parameter. The identifier is based on the parameter_type and should be one of the following:
| ||||||||||||
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). | ||||||||||||
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. | ||||||||||||
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. | ||||||||||||
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for a single sample of the data that is being returned. The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, than you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. | ||||||||||||
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. | ||||||||||||
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextCalibratedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char * | status | ||
) |
Gets the next available calibrated double value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextCalibratedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the next available calibrated string (enumerator) value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextConvertedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
double * | value, | ||
char * | status | ||
) |
Gets the next available double value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextConvertedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | value, | ||
char * | status | ||
) |
Gets the next available integer value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextConvertedStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the next available string value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextConvertedTimeStringValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the next available time string value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextConvertedTimeValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
TReK_Time * | value, | ||
char * | status | ||
) |
Gets the next available time value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextConvertedUnsignedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
const char * | apid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
unsigned long * | value, | ||
char * | status | ||
) |
Gets the next available unsigned integer value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneNextRawValue | ( | int | packet_type, |
int | parameter_type, | ||
const char * | identifier, | ||
const char * | apid, | ||
int | data_mode, | ||
long * | token, | ||
long * | size_of_data, | ||
unsigned char * | value, | ||
char * | status | ||
) |
Gets the next available raw (unprocessed/binary) value for the specified parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. | ||||||||||||
[in] | parameter_type | On a TReK Release 3 System, any data aggregate is considered a parameter. Therefore packets, subsets, and MSIDs are all considered parameters. The parameter type argument identifies what type of parameter is being retrieved. The parameter_type information passed in should be one of the following values: CCSDS_PACKET, EHS_PACKET, SUBSET, or MSID. Please note that when you request to retrieve a CCSDS_PACKET, the API will return a complete CCSDS packet. This does not include the EHS header. You must pass in a parameter type of EHS_PACKET to retrieve the EHS header information. | ||||||||||||
[in] | identifier | The identifier for the parameter. The identifier is based on the parameter_type and should be one of the following:
| ||||||||||||
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). | ||||||||||||
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. | ||||||||||||
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. | ||||||||||||
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for a single sample of the data that is being returned. The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, than you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. | ||||||||||||
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. | ||||||||||||
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketCalibratedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
double * | value, | ||
char * | status | ||
) |
Gets the calibrated double value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketCalibratedStringValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the calibrated string value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketConvertedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
double * | value, | ||
char * | status | ||
) |
Gets the double value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketConvertedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | value, | ||
char * | status | ||
) |
Gets the integer value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketConvertedStringValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the string value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketConvertedTimeStringValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
char * | value, | ||
char * | status | ||
) |
Gets the time string value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[in,out] | size_of_data | On Input, this field should indicate how much space you have allocated for the data that is being returned (i.e. how much space is available for the value parameter). If the value being returned is larger than the amount of space available, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. WARNING: If you tell the API that you have allocated enough space but you really haven’t, the API will believe you and will fill in the value parameter. Therefore, if there isn’t enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. On Output, the API will update the size_of_data parameter to indicate the size of the data returned in the value parameter. Please note that when strings are converted all of the characters are converted based on the length specified in the database. The entire length is copied into the value parameter (not just the NULL character). . |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketConvertedTimeValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
TReK_Time * | value, | ||
char * | status | ||
) |
Gets the time value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketConvertedUnsignedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
unsigned long * | value, | ||
char * | status | ||
) |
Gets the unsigned integer value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetOneSamePacketRawValue | ( | int | packet_type, |
int | parameter_type, | ||
const char * | identifier, | ||
int | data_mode, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
unsigned char * | value, | ||
char * | status | ||
) |
Gets the raw value for the specified parameter from the same packet as another parameter.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. | ||||||||||||
[in] | parameter_type | On a TReK Release 3 System, any data aggregate is considered a parameter. Therefore packets, subsets, and MSIDs are all considered parameters. The parameter type argument identifies what type of parameter is being retrieved. The parameter_type information passed in should be one of the following values: CCSDS_PACKET, EHS_PACKET, SUBSET, or MSID. Please note that when you request to retrieve a CCSDS_PACKET, the API will return a complete CCSDS packet. This does not include the EHS header. You must pass in a parameter type of EHS_PACKET to retrieve the EHS header information. | ||||||||||||
[in] | identifier | The identifier for the parameter. The identifier is based on the parameter_type and should be one of the following:
| ||||||||||||
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. | ||||||||||||
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. | ||||||||||||
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. | ||||||||||||
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. | ||||||||||||
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. | ||||||||||||
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetPacketArrivalEventName | ( | int | packet_type, |
const char * | apid, | ||
int | data_mode, | ||
char ** | event_name | ||
) |
This function gets the event name associated with packet arrival. This string can be used with the WaitForPacketArrival() function. When a packet arrives the WaitForPacketArrival() function releases and you can get new data from the packet.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[out] | event_name | This parameter is an Output parameter. The Output will be the Packet Arrival Event Name. Memory is created to hold the Packet Arrival Event Name. No memory is allocated if return code is not SUCCESS. The User is responsible for deallocating the memory. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetParameterInformation | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
const char * | processing_flag, | ||
Measurement_Properties * | meas_prop | ||
) |
This function provides a way to retrieve parameter information about a MSID.
[in] | packet_type | The packet type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The MSID for the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | processing_flag | The processing flag. This should be one of the following: PROCESSING_FLAG_UNPROCESSED, PROCESSING_FLAG_CONVERTED, or PROCESSING_FLAG_CALIBRATED. If the packet_type is GSE, GSE_MERGE, or CDP you can pass any of the processing flags. For all other packet types you should use PROCESSING_FLAG_UNPROCESSED. |
[out] | meas_prop | The measurement properties of the parameter. You must allocate memory for this structure. The Measurement_Properties struct is defined in the trek_user_api.h file. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketCalibratedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
double * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is calibrated as a double.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketCalibratedStringValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is calibrated as a character string.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketConvertedDoubleValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
double * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as a double.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketConvertedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as an integer.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketConvertedStringValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as a character string.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketConvertedTimeValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
TReK_Time * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as a time value. The time value is returned via a TReK_Time structure. The definition of the TReK_Time structure is located in the trek.h file. The TReK_Time structure contains a variable that is a tm_time structure. The tm_time structure is defined in the C Run-time library.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketConvertedUnsignedIntegerValue | ( | int | packet_type, |
const char * | msid, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
int | limit_es_flag, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
unsigned long * | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter from the same packet as another parameter when the desired parameter is converted as an unsigned integer.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | msid | The name of the parameter. |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. |
[in] | limit_es_flag | This parameter indicates whether Limit/Expected State Sensing should be performed. The value passed in should be NO_SENSE or SENSE. |
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. |
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed |
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. |
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION GetSamePacketRawValue | ( | int | packet_type, |
int | parameter_type, | ||
const char * | identifier, | ||
int | data_mode, | ||
unsigned long * | num_samples, | ||
long * | token, | ||
long * | from_this_pkt_token, | ||
long * | size_of_data, | ||
unsigned char ** | value, | ||
char ** | status | ||
) |
This function provides a way to retrieve one or multiple samples of a parameter as raw (unprocessed) data from the same packet as another parameter. A parameter can be an entire packet, a subset, or an MSID.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. | ||||||||||||
[in] | parameter_type | On a TReK System, any data aggregate is considered a parameter. Therefore packets, subsets, and MSIDs are all considered parameters. The parameter type argument identifies what type of parameter is being retrieved. The parameter_type information passed in should be one of the following values: CCSDS_PACKET, EHS_PACKET, SUBSET, or MSID. Please note that when you request to retrieve a CCSDS_PACKET, the API will return a complete CCSDS packet. This does not include the EHS header. You must pass in a parameter type of EHS_PACKET to retrieve the EHS header information. | ||||||||||||
[in] | identifier | The identifier for the parameter. The identifier is based on the parameter_type and should be one of the following:
| ||||||||||||
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. | ||||||||||||
[in,out] | num_samples | The number of samples that should be returned. On Input this parameter should indicate how many samples are requested. On Output the API will update this parameter to indicate how many samples were actually returned. | ||||||||||||
[in,out] | token | The token. The token is an array of three long integers. It is used by the TReK system to determine whether the data being retrieved is new or stale. There must be a unique token for each unique parameter request. The first time the API function is called each element in the token array should be initialized to zero. The token that is returned by the API will contain updated data and should be saved. This data should not be altered in any way. For each new call after the first call, the token passed in should be the token that was returned by the previous call. Therefore, the token returned from each call should be saved so it can be passed in on the next call. | ||||||||||||
[in] | from_this_pkt_token | The token returned by a call to another TReK Telemetry API function such as GetOneNewestConvertedInteger or GetNextRawValue. This token is used by TReK to determine which packet to retrieve the parameter specified by the identifier. The from_this_pkt_token value is not changed. | ||||||||||||
[in,out] | size_of_data | This field should indicate how much space you have allocated for a single sample of the data that is being returned (the largest sample). The value parameter can be used to return one or more samples of data. The size_of_data parameter indicates how much space is available to hold one of the samples in the value parameter. If the data being returned for a single sample is larger than the amount of space available for a single sample, as indicated by the size_of_data parameter, then you have not allocated enough space. In this case the API will output an error and will not fill in the value parameter. If the return code is TLM_API_LENGTH_ERR, then this value will be reset to the amount of space required to hold the sample. WARNING: If you tell the API that you have allocated enough space but you really have not, the API will believe you and will fill in the value parameter. Therefore, if there is not enough space, the API will undoubtedly overwrite some important memory and this will eventually lead to a crash. Therefore, you need to make sure that you allocate exactly what you say you are allocating. | ||||||||||||
[out] | value | The data returned. The calling application is responsible for allocating memory to hold the data returned. | ||||||||||||
[out] | status | The status string. This indicates the status of the data returned. The calling application is responsible for allocating memory to hold the status string that is returned. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION InitializeMultipleParameters | ( | int | packet_type, |
int | data_mode, | ||
Multiple_Add_Struct * | add_struct, | ||
unsigned long | number_parameters | ||
) |
This function immediately returns SUCCESS.
[in] | packet_type | Value not used. |
[in] | data_mode | Value not used. |
[in] | add_struct | Value not used. |
[in] | number_parameters | Value not used. |
int EXPORT_THIS_ANSI_C_FUNCTION SetMonitorLogFile | ( | const char * | filename | ) |
This function sets the filename for writing monitoring messages for archival. The filename should include the full directory path. When the file is created a timestamp is appended to the name and a ".log" extension is added after the timestamp.
[in] | filename | The filename for writing monitoring messages. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION StartMonitorLogging | ( | ) |
This function starts logging of monitoring messages. Only messages occurring after the function call will be written to the file.
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION StopMonitorLogging | ( | ) |
This function stops logging of monitoring messages.
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION UnregisterPacketArrivalEvent | ( | int | packet_type, |
const char * | apid, | ||
int | data_mode, | ||
const char * | event_name | ||
) |
Removes the specified event name associated with packet arrival.
[in] | packet_type | The stream type associated with the parameter. This should be one of the following: PDSS_PAYLOAD, PDSS_CORE, GSE, GSE_MERGE, CDP, UDSM, RPSM, SCS, CCSDS, FDP, VCDU, EXPRESS, PRCU, UFO, or IMAQ_ASCII. |
[in] | apid | The CCSDS application process identifier (i.e. the packet ID). If you pass in an empty string for apid, then the parameter data you have requested will be pulled from the last packet received that contains the parameter. However, if you pass in an apid instead of an empty string, the data requested will be extracted from that particular apid (packet). |
[in] | data_mode | The data mode. This should be one of the following: REAL_TIME, DUMP1, DUMP2, DUMP3, PLAYBACK1, PLAYBACK2, PLAYBACK3, PLAYBACK4, PLAYBACK5, PLAYBACK6, PLAYBACK7, PLAYBACK8, PLAYBACK9, PLAYBACK10, PLAYBACK11, NONE. |
[in] | event_name | The event name that is no longer needed for signalling packet arrival. |
Example:
Longer examples that include this method:
None
int EXPORT_THIS_ANSI_C_FUNCTION WaitForPacketArrival | ( | const char * | event_name, |
unsigned int | timeout | ||
) |
This function waits for the event name retunred from the WaitForPacketArrival() function. When a packet arrives function returns and you can get new data from the packet.
[in] | event_name | The name of the event to wait for. Returned by GetPacketArrivalEventName(). |
[in] | timeout | The amount of time to wait for the event in milliseonds. A value of 0 will be an infinite wait. |
Example:
Longer examples that include this method:
None