TReK .NET Framework
5.3.3
Telemetry/Command API
|
**************************************************************** More...
#include <trek_user_api_dotnet.h>
Static Public Member Functions | |
static int | Get_Next_Raw_Value (PACKET_TYPE packet_type, PARAMETER_TYPE parameter_type, System::String^ identifier, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< array< System::Byte >^>^ value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Next_Converted_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Next_Converted_Unsigned_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::UInt32 >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
Provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is an integer. More... | |
static int | Get_Next_Converted_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Double >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Next_Converted_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out] System::Int32 size_of_data, [System::Runtime::InteropServices::Out]array< System::String^>^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a string. More... | |
static int | Get_Next_Converted_Time_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< Trek_Time >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is a time. More... | |
static int | Get_Next_Calibrated_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Double >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Next_Calibrated_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out] System::Int32 size_of_data, [System::Runtime::InteropServices::Out]array< System::String^>^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple next sample(s) for a parameter that when calibrated is a string. More... | |
static int | Get_Newest_Raw_Value (PACKET_TYPE packet_type, PARAMETER_TYPE parameter_type, System::String^ identifier, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< array< System::Byte >^>^ value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Newest_Converted_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is an integer. More... | |
static int | Get_Newest_Converted_Unsigned_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::UInt32 >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Newest_Converted_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Double >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Newest_Converted_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out] System::Int32 size_of_data, [System::Runtime::InteropServices::Out]array< System::String^>^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a string. More... | |
static int | Get_Newest_Converted_Time_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< Trek_Time >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when converted is a time. More... | |
static int | Get_Newest_Calibrated_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Double >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Newest_Calibrated_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out] System::Int32 size_of_data, [System::Runtime::InteropServices::Out]array< System::String^>^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %status) |
This function provides a way to retrieve one or multiple newest sample(s) for a parameter that when calibrated is a string. More... | |
static int | Get_Same_Packet_Raw_Value (PACKET_TYPE packet_type, PARAMETER_TYPE parameter_type, System::String^ identifier, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< array< System::Byte >^>^ value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Converted_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Converted_Unsigned_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]array< System::UInt32 >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Converted_Double_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]array< System::Double >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Converted_String_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out] System::Int32 size_of_data, [System::Runtime::InteropServices::Out]array< System::String^>^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Converted_Time_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]array< Trek_Time >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Calibrated_Double_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]array< System::Double >^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_Same_Packet_Calibrated_String_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out] System::UInt32 %number_samples, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out] System::Int32 size_of_data, [System::Runtime::InteropServices::Out]array< System::String^>^ %value, [System::Runtime::InteropServices::Out]array< System::String^>^ %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... | |
static int | Get_API_Return_Code_As_String ([System::Runtime::InteropServices::Out]System::Int32 api_code, [System::Runtime::InteropServices::Out]System::Int32 size_of_data, [System::Runtime::InteropServices::Out]System::String^ %message) |
This function provides a way to retrieve a string value that corresponds to an API integer value return code. More... | |
static int | Get_Parameter_Information (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, System::String^ processing_flag, [System::Runtime::InteropServices::Out]measurement_properties %meas_prop) |
This function provides a way to retrieve parameter information about a MSID. More... | |
static int | Get_Packet_Arrival_Event_Name (PACKET_TYPE packet_type, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]System::String^ %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... | |
static int | Get_Newest_Datazone (PACKET_TYPE packet_type, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< System::Byte >^ value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available data zone for the specified packet. More... | |
static int | Get_Next_Datazone (PACKET_TYPE packet_type, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< System::Byte >^ value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available data zone for the specified packet. More... | |
static int | Wait_For_Packet_Arrival ([System::Runtime::InteropServices::Out]System::String^ %event_name, [System::Runtime::InteropServices::Out]System::UInt32 %timeout) |
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... | |
static int | Unregister_Packet_Arrival_Event (PACKET_TYPE packet_type, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]System::String^ %event_name) |
Removes the specified event name associated with packet arrival. More... | |
static int | Initialize_Multiple_Parameters (PACKET_TYPE packet_type, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< multiple_add_struct >^ %add_struct, System::Int32 number_parameters) |
This function immediately returns SUCCESS. More... | |
static int | Set_Monitor_Log_File (System::String^ 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... | |
static int | Start_Monitor_Logging () |
This function starts logging of monitoring messages. Only messages occurring after the function call will be written to the file. More... | |
static int | Stop_Monitor_Logging () |
This function stops logging of monitoring messages. More... | |
static int | Get_One_Next_Raw_Value (PACKET_TYPE packet_type, PARAMETER_TYPE parameter_type, System::String^ identifier, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< System::Byte >^ value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available raw (unprocessed/binary) value for the specified parameter. More... | |
static int | Get_One_Next_Converted_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available integer value for the specified parameter. More... | |
static int | Get_One_Next_Converted_Unsigned_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::UInt32 %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available unsigned integer value for the specified parameter. More... | |
static int | Get_One_Next_Converted_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Double %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available double value for the specified parameter. More... | |
static int | Get_One_Next_Converted_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available string value for the specified parameter. More... | |
static int | Get_One_Next_Converted_Time_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available time string value for the specified parameter. More... | |
static int | Get_One_Next_Calibrated_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available calibrated string (enumerator) value for the specified parameter. More... | |
static int | Get_One_Next_Converted_Time_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]Trek_Time %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available time string value for the specified parameter. More... | |
static int | Get_One_Next_Calibrated_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Double %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the next available calibrated double value for the specified parameter. More... | |
static int | Get_One_Newest_Raw_Value (PACKET_TYPE packet_type, PARAMETER_TYPE parameter_type, System::String^ identifier, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< System::Byte >^ value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the raw value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Newest_Converted_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the integer value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Newest_Converted_Unsigned_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::UInt32 %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the integer value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Newest_Converted_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Double %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the integer value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Newest_Converted_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the integer value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Newest_Converted_Time_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available time string value for the specified parameter. More... | |
static int | Get_One_Newest_Converted_Time_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]Trek_Time %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available time string value for the specified parameter. More... | |
static int | Get_One_Newest_Calibrated_String_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available calibrated string (enumerator) value for the specified parameter. More... | |
static int | Get_One_Newest_Calibrated_Double_Value (PACKET_TYPE packet_type, System::String^ msid, System::String^ apid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]System::Double %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available calibrated string (enumerator) value for the specified parameter. More... | |
static int | Get_One_Same_Packet_Raw_Value (PACKET_TYPE packet_type, PARAMETER_TYPE parameter_type, System::String^ identifier, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]array< System::Byte >^ value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the raw value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Same_Packet_Converted_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Int32 %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the integer value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Same_Packet_Converted_Unsigned_Integer_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::UInt32 %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the unsigned integer value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Same_Packet_Converted_Double_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Double %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the double value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Same_Packet_Converted_String_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the string value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Same_Packet_Converted_Time_String_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the time value for the specified parameter from the same packet as another parameter. More... | |
static int | Get_One_Same_Packet_Converted_Time_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]Trek_Time %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available time value for the specified parameter. More... | |
static int | Get_One_Same_Packet_Calibrated_String_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Int32 %size_of_data, [System::Runtime::InteropServices::Out]System::String^ %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available calibrated string (enumerator) value for the specified parameter. More... | |
static int | Get_One_Same_Packet_Calibrated_Double_Value (PACKET_TYPE packet_type, System::String^ msid, DATA_MODE data_mode, SENSING limit_es_flag, [System::Runtime::InteropServices::Out]array< System::Int32 >^ token, [System::Runtime::InteropServices::Out]array< System::Int32 >^ from_this_pkt_token, [System::Runtime::InteropServices::Out]System::Double %value, [System::Runtime::InteropServices::Out]System::String^ %status) |
Gets the newest available calibrated double value for the specified parameter. More... | |
****************************************************************
This class describes a packet composed of one or more parameters.
The Packet class encapsulates one or more parameters that can be built or extracted. The Packet class has three zones: header, data, and trailer. For the Packet to be considered valid, at least one zone must be populated. Each zone can be populated with a ParameterCollection or another Packet. The example below shows a packet that has all three zones populated. The Header and Trailer zones consist of a parameter collection and the Data zone consists of another Packet which only has two zones populated (Header and Data).
|
static |
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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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
|
static |
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] | number_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:
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
Provides a way to retrieve one or multiple next sample(s) for a parameter that when converted is an integer.
[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 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] | number_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
|
static |
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
|
static |
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] | number_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
|
static |
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. |
[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
|
static |
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
|
static |
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] | 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
|
static |
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] | 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
|
static |
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] | 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
|
static |
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
|
static |
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. |
[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
|
static |
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] | 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
|
static |
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] | 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
|
static |
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
|
static |
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
|
static |
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
|
static |
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
|
static |
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
|
static |
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
|
static |
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. |
[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
|
static |
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
|
static |
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
|
static |
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] | 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
|
static |
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] | 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). . |
[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
|
static |
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
|
static |
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
|
static |
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
|
static |
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. |
[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
|
static |
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] | 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:
|
static |
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
|
static |
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
|
static |
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
|
static |
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
|
static |
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] | number_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 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:
|
static |
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] | number_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:
|
static |
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] | number_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 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:
|
static |
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] | number_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 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:
|
static |
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] | number_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 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
|
static |
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] | number_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 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:
|
static |
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] | number_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
|
static |
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] | number_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
|
static |
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. |
|
static |
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
|
static |
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
|
static |
This function stops logging of monitoring messages.
Example:
Longer examples that include this method:
None
|
static |
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
|
static |
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] | 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