##// END OF EJS Templates
ICD 4.0 taken into account
paul -
r45:c3197ff831df default
parent child
Show More
@@ -93,6 +93,16 typedef struct
93 93 unsigned char set5;
94 94 unsigned char set6;
95 95 unsigned char set7[8];
96 unsigned char set8_cp_rpw_sc_rw1_f1[4];
97 unsigned char set8_cp_rpw_sc_rw1_f2[4];
98 unsigned char set8_cp_rpw_sc_rw2_f1[4];
99 unsigned char set8_cp_rpw_sc_rw2_f2[4];
100 unsigned char set8_cp_rpw_sc_rw3_f1[4];
101 unsigned char set8_cp_rpw_sc_rw3_f2[4];
102 unsigned char set8_cp_rpw_sc_rw4_f1[4];
103 unsigned char set8_cp_rpw_sc_rw4_f2[4];
104 unsigned char set9_spare;
105 unsigned char set9_rw_f_flags;
96 106 unsigned char spare1[2];
97 107 unsigned char spare2[2];
98 108 unsigned char spare3[2];
@@ -108,23 +118,6 typedef struct
108 118 unsigned char spare13[2];
109 119 unsigned char spare14[2];
110 120 unsigned char spare15[2];
111 unsigned char spare16[2];
112 unsigned char spare17[2];
113 unsigned char spare18[2];
114 unsigned char spare19[2];
115 unsigned char spare20[2];
116 unsigned char spare21[2];
117 unsigned char spare22[2];
118 unsigned char spare23[2];
119 unsigned char spare24[2];
120 unsigned char spare25[2];
121 unsigned char spare26[2];
122 unsigned char spare27[2];
123 unsigned char spare28[2];
124 unsigned char spare29[2];
125 unsigned char spare30[2];
126 unsigned char spare31[2];
127 unsigned char spare32[2];
128 121 unsigned char crc[2];
129 122 } Packet_TC_LFR_UPDATE_INFO_t;
130 123
@@ -232,4 +225,21 typedef struct
232 225
233 226 } Packet_TC_LFR_DUMP_KCOEFFICIENTS_t;
234 227
228 typedef struct
229 { // the CCSDS header is added by LPPMON
230 unsigned char packetID[2];
231 unsigned char packetSequenceControl[2];
232 unsigned char packetLength[2];
233 // DATA FIELD HEADER
234 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
235 unsigned char serviceType;
236 unsigned char serviceSubType;
237 unsigned char sourceID;
238 unsigned char spare_sy_lfr_pas_filter_enabled;
239 unsigned char sy_lfr_pas_filter_modulus;
240 unsigned char sy_lfr_pas_filter_nstd;
241 unsigned char sy_lfr_pas_filter_offset;
242 unsigned char crc[2];
243 } Packet_TC_LFR_LOAD_PAS_FILTER_t;
244
235 245 #endif // TC_TYPES_H
@@ -73,38 +73,40
73 73 #define TC_TYPE_TIME 9
74 74
75 75 // TC SUBTYPES
76 #define TC_SUBTYPE_RESET 1
77 #define TC_SUBTYPE_LOAD_COMM 11
78 #define TC_SUBTYPE_LOAD_NORM 13
79 #define TC_SUBTYPE_LOAD_BURST 19
80 #define TC_SUBTYPE_LOAD_SBM1 25
81 #define TC_SUBTYPE_LOAD_SBM2 27
82 #define TC_SUBTYPE_DUMP 31
83 #define TC_SUBTYPE_ENTER 41
84 #define TC_SUBTYPE_UPDT_INFO 51
85 #define TC_SUBTYPE_EN_CAL 61
86 #define TC_SUBTYPE_DIS_CAL 63
87 #define TC_SUBTYPE_LOAD_K 93
88 #define TC_SUBTYPE_DUMP_K 95
89 #define TC_SUBTYPE_LOAD_FBINS 91
90 #define TC_SUBTYPE_UPDT_TIME 129
76 #define TC_SUBTYPE_RESET 1
77 #define TC_SUBTYPE_LOAD_COMM 11
78 #define TC_SUBTYPE_LOAD_NORM 13
79 #define TC_SUBTYPE_LOAD_BURST 19
80 #define TC_SUBTYPE_LOAD_SBM1 25
81 #define TC_SUBTYPE_LOAD_SBM2 27
82 #define TC_SUBTYPE_DUMP 31
83 #define TC_SUBTYPE_ENTER 41
84 #define TC_SUBTYPE_UPDT_INFO 51
85 #define TC_SUBTYPE_EN_CAL 61
86 #define TC_SUBTYPE_DIS_CAL 63
87 #define TC_SUBTYPE_LOAD_K 93
88 #define TC_SUBTYPE_DUMP_K 95
89 #define TC_SUBTYPE_LOAD_FBINS 91
90 #define TC_SUBTYPE_LOAD_PAS_FILTER_PAR 97
91 #define TC_SUBTYPE_UPDT_TIME 129
91 92
92 93 // TC LEN
93 #define TC_LEN_RESET 12
94 #define TC_LEN_LOAD_COMM 14
95 #define TC_LEN_LOAD_NORM 22
96 #define TC_LEN_LOAD_BURST 14
97 #define TC_LEN_LOAD_SBM1 14
98 #define TC_LEN_LOAD_SBM2 14
99 #define TC_LEN_DUMP 12
100 #define TC_LEN_ENTER 20
101 #define TC_LEN_UPDT_INFO 110
102 #define TC_LEN_EN_CAL 12
103 #define TC_LEN_DIS_CAL 12
104 #define TC_LEN_LOAD_K 142
105 #define TC_LEN_DUMP_K 12
106 #define TC_LEN_LOAD_FBINS 60
107 #define TC_LEN_UPDT_TIME 18
94 #define TC_LEN_RESET 12
95 #define TC_LEN_LOAD_COMM 14
96 #define TC_LEN_LOAD_NORM 22
97 #define TC_LEN_LOAD_BURST 14
98 #define TC_LEN_LOAD_SBM1 14
99 #define TC_LEN_LOAD_SBM2 14
100 #define TC_LEN_DUMP 12
101 #define TC_LEN_ENTER 20
102 #define TC_LEN_UPDT_INFO 110
103 #define TC_LEN_EN_CAL 12
104 #define TC_LEN_DIS_CAL 12
105 #define TC_LEN_LOAD_K 142
106 #define TC_LEN_DUMP_K 12
107 #define TC_LEN_LOAD_FBINS 60
108 #define TC_LEN_LOAD_PAS_FILTER_PAR 16
109 #define TC_LEN_UPDT_TIME 18
108 110
109 111 // PACKET CODES
110 112 #define TM_CODE_K_DUMP 0xb5600b00 // 181 (0xb5) ** 96 (0x60) ** 11 (0x0b) ** 0 (0x00)
@@ -243,7 +245,7 enum apid_destid{
243 245 #define PACKET_LENGTH_TC_EXE_ERROR (24 - CCSDS_TC_TM_PACKET_OFFSET)
244 246 #define PACKET_LENGTH_TC_EXE_CORRUPTED (32 - CCSDS_TC_TM_PACKET_OFFSET)
245 247 #define PACKET_LENGTH_HK (136 - CCSDS_TC_TM_PACKET_OFFSET)
246 #define PACKET_LENGTH_PARAMETER_DUMP (84 - CCSDS_TC_TM_PACKET_OFFSET)
248 #define PACKET_LENGTH_PARAMETER_DUMP (88 - CCSDS_TC_TM_PACKET_OFFSET)
247 249 #define PACKET_LENGTH_K_DUMP (3920 - CCSDS_TC_TM_PACKET_OFFSET)
248 250 // SCIENCE ASM
249 251 #define PACKET_LENGTH_TM_LFR_SCIENCE_ASM_F0_1 (3230 - CCSDS_TC_TM_PACKET_OFFSET) // 32 * 25 * 4 + 30 => 32 bins (32 + 32 + 24 ), 3 packets
@@ -672,8 +674,8 typedef struct {
672 674 // hk_lfr_ahb_
673 675 unsigned char hk_lfr_ahb_correctable;
674 676 unsigned char hk_lfr_ahb_uncorrectable;
675 // spare
676 unsigned char parameters_spare;
677 // reaction wheel frequency
678 unsigned char hk_lfr_sw_rw_f_flags;
677 679 } Packet_TM_LFR_HK_t;
678 680
679 681 typedef struct {
@@ -738,6 +740,12 typedef struct {
738 740 unsigned char sy_lfr_fbins_f2_word3[4];
739 741 unsigned char sy_lfr_fbins_f2_word4[4];
740 742
743 // PAS FILTER PARAMETERS
744 unsigned char spare_sy_lfr_pas_filter_enabled;
745 unsigned char sy_lfr_pas_filter_modulus;
746 unsigned char sy_lfr_pas_filter_nstd;
747 unsigned char sy_lfr_pas_filter_offset;
748
741 749 // SPARE
742 750 unsigned char source_data_spare;
743 751 } Packet_TM_LFR_PARAMETER_DUMP_t;
@@ -42,6 +42,12
42 42 #define NB_BYTES_PER_FREQ_MASK 16
43 43 #define NB_BYTES_PER_FBINS_MASK 4
44 44
45 // TC_LFR_LOAD_PAS_FILTER_PAR
46 #define DATAFIELD_POS_SY_LFR_PAS_FILTER_ENABLED 0
47 #define DATAFIELD_POS_SY_LFR_PAS_FILTER_MODULUS 1
48 #define DATAFIELD_POS_SY_LFR_PAS_FILTER_NSTD 2
49 #define DATAFIELD_POS_SY_LFR_PAS_FILTER_OFFSET 3
50
45 51 // TC_LFR_LOAD_KCOEFFICIENTS
46 52 #define NB_BYTES_PER_FLOAT 4
47 53 #define DATAFIELD_POS_SY_LFR_KCOEFF_FREQUENCY 0 // 10 - 10
General Comments 0
You need to be logged in to leave comments. Login now