@@ -99,12 +99,15 | |||||
99 | #define TC_LEN_LOAD_FBINS 60 |
|
99 | #define TC_LEN_LOAD_FBINS 60 | |
100 | #define TC_LEN_UPDT_TIME 18 |
|
100 | #define TC_LEN_UPDT_TIME 18 | |
101 |
|
101 | |||
|
102 | // PACKET CODES | |||
|
103 | #define TM_CODE_K_DUMP 0xb5600b00 // 181 (0xb5) ** 96 (0x60) ** 11 (0x0b) ** 0 (0x00) | |||
|
104 | ||||
102 | // TM TYPES |
|
105 | // TM TYPES | |
103 | #define TM_TYPE_TC_EXE 1 |
|
106 | #define TM_TYPE_TC_EXE 1 | |
104 | #define TM_TYPE_HK 3 |
|
107 | #define TM_TYPE_HK 3 | |
105 | #define TM_TYPE_LFR_SCIENCE 21 |
|
108 | #define TM_TYPE_LFR_SCIENCE 21 | |
106 | #define TM_TYPE_PARAMETER_DUMP 181 |
|
109 | #define TM_TYPE_PARAMETER_DUMP 181 | |
107 |
#define TM_TYPE_K |
|
110 | #define TM_TYPE_K_DUMP 181 | |
108 |
|
111 | |||
109 | // TM SUBTYPES |
|
112 | // TM SUBTYPES | |
110 | #define TM_SUBTYPE_EXE_OK 7 |
|
113 | #define TM_SUBTYPE_EXE_OK 7 | |
@@ -704,5 +707,29 typedef struct { | |||||
704 | unsigned char source_data_spare; |
|
707 | unsigned char source_data_spare; | |
705 | } Packet_TM_LFR_PARAMETER_DUMP_t; |
|
708 | } Packet_TM_LFR_PARAMETER_DUMP_t; | |
706 |
|
709 | |||
|
710 | typedef struct { | |||
|
711 | unsigned char targetLogicalAddress; | |||
|
712 | unsigned char protocolIdentifier; | |||
|
713 | unsigned char reserved; | |||
|
714 | unsigned char userApplication; | |||
|
715 | unsigned char packetID[2]; | |||
|
716 | unsigned char packetSequenceControl[2]; | |||
|
717 | unsigned char packetLength[2]; | |||
|
718 | // DATA FIELD HEADER | |||
|
719 | unsigned char spare1_pusVersion_spare2; | |||
|
720 | unsigned char serviceType; | |||
|
721 | unsigned char serviceSubType; | |||
|
722 | unsigned char destinationID; | |||
|
723 | unsigned char time[6]; | |||
|
724 | unsigned char sid; | |||
|
725 | unsigned char pkt_cnt; | |||
|
726 | unsigned char pkt_nr; | |||
|
727 | unsigned char blk_nr; | |||
|
728 | ||||
|
729 | //****************** | |||
|
730 | // SOURCE DATA repeated N times with N in [0 .. PA_LFR_KCOEFF_BLK_NR] | |||
|
731 | unsigned char kcoeff_blks[3900]; // one blk is 2 + 4 * 32 = 130 bytes, 30 blks max in one packet (30 * 130 = 3900) | |||
|
732 | ||||
|
733 | } Packet_TM_LFR_KCOEFFICIENTS_DUMP_t; | |||
707 |
|
734 | |||
708 | #endif // CCSDS_TYPES_H_INCLUDED |
|
735 | #endif // CCSDS_TYPES_H_INCLUDED |
@@ -34,4 +34,9 | |||||
34 | #define BYTE_POS_CP_MODE_LFR_SET 11 |
|
34 | #define BYTE_POS_CP_MODE_LFR_SET 11 | |
35 | #define BYTE_POS_CP_LFR_ENTER_MODE_TIME 12 |
|
35 | #define BYTE_POS_CP_LFR_ENTER_MODE_TIME 12 | |
36 |
|
36 | |||
|
37 | // TC_LFR_LOAD_KCOEFFICIENTS | |||
|
38 | #define NB_BYTES_PER_FLOAT 4 | |||
|
39 | #define DATAFIELD_POS_SY_LFR_KCOEFF_FREQUENCY 0 // 10 - 10 | |||
|
40 | #define DATAFIELD_POS_SY_LFR_KCOEFF_1 2 // 12 - 10 | |||
|
41 | ||||
37 | #endif // TM_BYTE_POSITIONS_H |
|
42 | #endif // TM_BYTE_POSITIONS_H |
@@ -41,6 +41,7 | |||||
41 | #define ASM_F2_INDICE_START 6 // 7 - 1, (-1) due to the VHDL behaviour |
|
41 | #define ASM_F2_INDICE_START 6 // 7 - 1, (-1) due to the VHDL behaviour | |
42 | #define ASM_F2_INDICE_STOP 101 // 102 - 1, 2 packets of 48 bins |
|
42 | #define ASM_F2_INDICE_STOP 101 // 102 - 1, 2 packets of 48 bins | |
43 | // |
|
43 | // | |
|
44 | #define KCOEFF_BLK_SIZE 130 | |||
44 | #define NB_BINS_COMPRESSED_SM_F0 11 |
|
45 | #define NB_BINS_COMPRESSED_SM_F0 11 | |
45 | #define NB_BINS_COMPRESSED_SM_F1 13 |
|
46 | #define NB_BINS_COMPRESSED_SM_F1 13 | |
46 | #define NB_BINS_COMPRESSED_SM_F2 12 |
|
47 | #define NB_BINS_COMPRESSED_SM_F2 12 |
@@ -3,8 +3,6 | |||||
3 |
|
3 | |||
4 | #define BYTE_POS_CP_LFR_MODE 11 |
|
4 | #define BYTE_POS_CP_LFR_MODE 11 | |
5 |
|
5 | |||
6 | // TC_LFR_LOAD_COMMON_PAR |
|
|||
7 |
|
||||
8 | // TC_LFR_LOAD_NORMAL_PAR |
|
6 | // TC_LFR_LOAD_NORMAL_PAR | |
9 | #define BYTE_POS_SY_LFR_N_SWF_L 0 |
|
7 | #define BYTE_POS_SY_LFR_N_SWF_L 0 | |
10 | #define BYTE_POS_SY_LFR_N_SWF_P 2 |
|
8 | #define BYTE_POS_SY_LFR_N_SWF_P 2 | |
@@ -13,11 +11,4 | |||||
13 | #define BYTE_POS_SY_LFR_N_BP_P1 7 |
|
11 | #define BYTE_POS_SY_LFR_N_BP_P1 7 | |
14 | #define BYTE_POS_SY_LFR_N_CWF_LONG_F3 8 |
|
12 | #define BYTE_POS_SY_LFR_N_CWF_LONG_F3 8 | |
15 |
|
13 | |||
16 | // TC_LFR_LOAD_BURST_PAR |
|
|||
17 |
|
||||
18 | // TC_LFR_LOAD_SBM1_PAR |
|
|||
19 |
|
||||
20 | // TC_LFR_LOAD_SBM2_PAR |
|
|||
21 |
|
||||
22 |
|
||||
23 | #endif // TM_BYTE_POSITIONS_H |
|
14 | #endif // TM_BYTE_POSITIONS_H |
General Comments 0
You need to be logged in to leave comments.
Login now