##// END OF EJS Templates
DEFAULT modulus, tbad, offset and shift in finetime...
DEFAULT modulus, tbad, offset and shift in finetime abovementionned values are stored in finetime in filterPar_t (uint64_t)

File last commit:

r62:21ada9188279 R3++
r68:e904b329ff97 tip R3++
Show More
ccsds_types.h
907 lines | 34.1 KiB | text/x-c | CLexer
paul
Initial commit
r0 #ifndef CCSDS_TYPES_H_INCLUDED
#define CCSDS_TYPES_H_INCLUDED
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 #define TXBDCNT 50
#define RXBDCNT 10
#define TXDATASIZE 4096
#define TXHDRSIZE 34
#define RXPKTSIZE 200
#define SPW_RXSIZE 228
#define SPW_TXDSIZE 4096
paul
SPW_TXHSIZE and CCSDS_TC_PKT_MAX_SIZE modified to have a working configuration
r57 #define SPW_TXHSIZE 64
paul
Many corrections, mainly related to #807 Don_Enumeration
r56
#define BITS_PID_0 0x07
#define BITS_PID_1 0x0f
#define BITS_CAT 0x0f
paul
Initial commit
r0 #define CCSDS_PROTOCOLE_EXTRA_BYTES 4
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 #define CCSDS_TC_TM_PACKET_OFFSET 7
#define PROTID_RES_APP 3
paul
CCSDS_TC_PKT_MAX_SIZE updated
r55 #define CCSDS_TELEMETRY_HEADER_LENGTH (16+4)
paul
two constants added for logiscope rule complaince
r59 #define CCSDS_TC_HEADER_LENGTH 10
paul
Initial commit
r0 #define CCSDS_TM_PKT_MAX_SIZE 4412
paul
CCSDS_TC_PKT_MAX_SIZE updated
r55 #define CCSDS_TELECOMMAND_HEADER_LENGTH (10+4)
paul
SPW_TXHSIZE and CCSDS_TC_PKT_MAX_SIZE modified to have a working configuration
r57 #define CCSDS_TC_PKT_MAX_SIZE 232 // (228+3) with 3 for Prot ID, Reserved and User App bytes, SHALL BE A MULTIPLE OF 4
paul
Initial commit
r0 #define CCSDS_TC_PKT_MIN_SIZE 16
#define CCSDS_PROCESS_ID 76
#define CCSDS_PACKET_CATEGORY 12
#define CCSDS_NODE_ADDRESS 0xfe
#define CCSDS_USER_APP 0x00
#define DEFAULT_SPARE1_PUSVERSION_SPARE2 0x10
#define DEFAULT_RESERVED 0x00
#define DEFAULT_HKBIA 0x1e // 0001 1110
// PACKET ID
paul
sync
r14 #define TM_PACKET_PID_DEFAULT 76
#define TM_PACKET_PID_BURST_SBM1_SBM2 79
paul
Initial commit
r0 #define APID_TM_TC_EXE 0x0cc1 // PID 76 CAT 1
#define APID_TM_HK 0x0cc4 // PID 76 CAT 4
#define APID_TM_SCIENCE_NORMAL_BURST 0x0ccc // PID 76 CAT 12
#define APID_TM_SCIENCE_SBM1_SBM2 0x0cfc // PID 79 CAT 12
paul
Updates for the compliance with the ICD 3.7....
r13 #define APID_TM_PARAMETER_DUMP 0x0cc6 // PID 76 CAT 6
#define APID_TM_KCOEFFICIENTS_DUMP 0x0cc6 // PID 76 CAT 6
paul
Many corrections, mainly related to #807 Don_Enumeration
r56
paul
sync
r14 // PACKET CAT
#define TM_PACKET_CAT_TC_EXE 1
#define TM_PACKET_CAT_HK 4
#define TM_PACKET_CAT_SCIENCE 12
#define TM_PACKET_CAT_DUMP 6
paul
Initial commit
r0
// PACKET SEQUENCE CONTROL
#define TM_PACKET_SEQ_CTRL_CONTINUATION 0x00 // [0000 0000]
#define TM_PACKET_SEQ_CTRL_FIRST 0x40 // [0100 0000]
#define TM_PACKET_SEQ_CTRL_LAST 0x80 // [1000 0000]
#define TM_PACKET_SEQ_CTRL_STANDALONE 0xc0 // [1100 0000]
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 #define TM_PACKET_SEQ_CNT_DEFAULT 0x00 // [0000 0000]
#define TM_PACKET_SEQ_SHIFT 8
#define SEQ_CNT_MAX 16383
#define SEQ_CNT_NB_DEST_ID 12
#define SEQ_CNT_MASK 0x3fff // [0011 1111 1111 1111]
paul
Initial commit
r0
// DESTINATION ID
paul
Updates for the compliance with the ICD 3.7....
r13 #define TM_DESTINATION_ID_GROUND 0
#define TM_DESTINATION_ID_MISSION_TIMELINE 110
#define TM_DESTINATION_ID_TC_SEQUENCES 111
#define TM_DESTINATION_ID_RECOVERY_ACTION_COMMAND 112
#define TM_DESTINATION_ID_BACKUP_MISSION_TIMELINE 113
#define TM_DESTINATION_ID_DIRECT_CMD 120
#define TM_DESTINATION_ID_SPARE_GRD_SRC1 121
#define TM_DESTINATION_ID_SPARE_GRD_SRC2 122
#define TM_DESTINATION_ID_OBCP 15
#define TM_DESTINATION_ID_SYSTEM_CONTROL 14
#define TM_DESTINATION_ID_AOCS 11
paul
Initial commit
r0
paul
Updates for the compliance with the ICD 3.7....
r13 //*********************************************************
//*** /!\ change CCSDS_DESTINATION_ID before flight /!\ ***
//*********************************************************
paul
Initial commit
r0 #ifdef LPP_DPU_DESTID
#define CCSDS_DESTINATION_ID 32
#else
#define CCSDS_DESTINATION_ID 0x01
#endif
#define CCSDS_PROTOCOLE_ID 0x02
#define CCSDS_RESERVED 0x00
#define CCSDS_USER_APP 0x00
#define SIZE_TM_LFR_TC_EXE_NOT_IMPLEMENTED 24
#define SIZE_TM_LFR_TC_EXE_CORRUPTED 32
#define SIZE_HK_PARAMETERS 112
// TC TYPES
paul
Updates for the compliance with the ICD 3.7....
r13 #define TC_TYPE_GEN 181
#define TC_TYPE_TIME 9
paul
Initial commit
r0
// TC SUBTYPES
paul
ICD 4.0 taken into account
r45 #define TC_SUBTYPE_RESET 1
#define TC_SUBTYPE_LOAD_COMM 11
#define TC_SUBTYPE_LOAD_NORM 13
#define TC_SUBTYPE_LOAD_BURST 19
#define TC_SUBTYPE_LOAD_SBM1 25
#define TC_SUBTYPE_LOAD_SBM2 27
#define TC_SUBTYPE_DUMP 31
#define TC_SUBTYPE_ENTER 41
#define TC_SUBTYPE_UPDT_INFO 51
#define TC_SUBTYPE_EN_CAL 61
#define TC_SUBTYPE_DIS_CAL 63
#define TC_SUBTYPE_LOAD_K 93
#define TC_SUBTYPE_DUMP_K 95
#define TC_SUBTYPE_LOAD_FBINS 91
paul
TC_types removed from the repo because it is not used by the flight software...
r46 #define TC_SUBTYPE_LOAD_FILTER_PAR 97
paul
ICD 4.0 taken into account
r45 #define TC_SUBTYPE_UPDT_TIME 129
paul
Initial commit
r0
// TC LEN
paul
ICD 4.0 taken into account
r45 #define TC_LEN_RESET 12
#define TC_LEN_LOAD_COMM 14
#define TC_LEN_LOAD_NORM 22
#define TC_LEN_LOAD_BURST 14
#define TC_LEN_LOAD_SBM1 14
#define TC_LEN_LOAD_SBM2 14
#define TC_LEN_DUMP 12
#define TC_LEN_ENTER 20
#define TC_LEN_UPDT_INFO 110
#define TC_LEN_EN_CAL 12
#define TC_LEN_DIS_CAL 12
#define TC_LEN_LOAD_K 142
#define TC_LEN_DUMP_K 12
#define TC_LEN_LOAD_FBINS 60
paul
compliance with ICD 4.3
r60 #define TC_LEN_LOAD_FILTER_PAR 92
paul
ICD 4.0 taken into account
r45 #define TC_LEN_UPDT_TIME 18
paul
Initial commit
r0
paul
sync
r19 // PACKET CODES
#define TM_CODE_K_DUMP 0xb5600b00 // 181 (0xb5) ** 96 (0x60) ** 11 (0x0b) ** 0 (0x00)
paul
Initial commit
r0 // TM TYPES
paul
Updates for the compliance with the ICD 3.7....
r13 #define TM_TYPE_TC_EXE 1
#define TM_TYPE_HK 3
#define TM_TYPE_LFR_SCIENCE 21
#define TM_TYPE_PARAMETER_DUMP 181
paul
sync
r19 #define TM_TYPE_K_DUMP 181
paul
Initial commit
r0
// TM SUBTYPES
paul
Updates for the compliance with the ICD 3.7....
r13 #define TM_SUBTYPE_EXE_OK 7
#define TM_SUBTYPE_EXE_NOK 8
#define TM_SUBTYPE_HK 25
#define TM_SUBTYPE_LFR_SCIENCE_3 3 // TM packets with fixed size
#define TM_SUBTYPE_LFR_SCIENCE_6 6 // TM packets with variable size
#define TM_SUBTYPE_PARAMETER_DUMP 32
#define TM_SUBTYPE_K_DUMP 96
paul
Initial commit
r0
// FAILURE CODES
#define ILLEGAL_APID 0
#define WRONG_LEN_PKT 1
#define INCOR_CHECKSUM 2
#define ILL_TYPE 3
#define ILL_SUBTYPE 4
#define WRONG_APP_DATA 5 // 0x00 0x05
#define TC_NOT_EXE 42000 // 0xa4 0x10
#define WRONG_SRC_ID 42001 // 0xa4 0x11
#define FUNCT_NOT_IMPL 42002 // 0xa4 0x12
#define FAIL_DETECTED 42003 // 0xa4 0x13
#define NOT_ALLOWED 42004 // 0xa4 0x14
#define CORRUPTED 42005 // 0xa4 0x15
#define CCSDS_TM_VALID 7
paul
RID and CODE added to ccsds_type.h
r41 // HK_LFR_LAST_ER_RID
#define RID_LE_LFR_TIME 42119
#define RID_LE_LFR_DPU_SPW 42128
#define RID_LE_LFR_TIMEC 42129
#define RID_ME_LFR_DPU_SPW 42338
// HK_LFR_LAST_ER_CODE
#define CODE_PARITY 1
#define CODE_DISCONNECT 2
#define CODE_ESCAPE 3
#define CODE_CREDIT 4
#define CODE_WRITE_SYNC 5
#define CODE_EARLY_EOP_EEP 6
#define CODE_INVALID_ADDRESS 7
#define CODE_EEP 8
#define CODE_RX_TOO_BIG 9
#define CODE_HEADER_CRC 16
#define CODE_DATA_CRC 17
#define CODE_ERRONEOUS 20
#define CODE_MISSING 21
#define CODE_INVALID 22
#define CODE_TIMECODE_IT 24
#define CODE_NOT_SYNCHRO 25
#define CODE_TIMECODE_CTR 26
paul
Initial commit
r0 // TC SID
#define SID_TC_GROUND 0
#define SID_TC_MISSION_TIMELINE 110
#define SID_TC_TC_SEQUENCES 111
#define SID_TC_RECOVERY_ACTION_CMD 112
#define SID_TC_BACKUP_MISSION_TIMELINE 113
#define SID_TC_DIRECT_CMD 120
#define SID_TC_SPARE_GRD_SRC1 121
#define SID_TC_SPARE_GRD_SRC2 122
#define SID_TC_OBCP 15
#define SID_TC_SYSTEM_CONTROL 14
#define SID_TC_AOCS 11
#define SID_TC_RPW_INTERNAL 254
enum apid_destid{
GROUND,
MISSION_TIMELINE,
TC_SEQUENCES,
RECOVERY_ACTION_CMD,
BACKUP_MISSION_TIMELINE,
DIRECT_CMD,
SPARE_GRD_SRC1,
SPARE_GRD_SRC2,
OBCP,
SYSTEM_CONTROL,
AOCS,
RPW_INTERNAL
};
// TM SID
#define SID_HK 1
paul
Updates for the compliance with the ICD 3.7....
r13 #define SID_NORM_SWF_F0 3
#define SID_NORM_SWF_F1 4
#define SID_NORM_SWF_F2 5
#define SID_NORM_CWF_F3 1
#define SID_BURST_CWF_F2 2
#define SID_SBM1_CWF_F1 24
#define SID_SBM2_CWF_F2 25
#define SID_NORM_ASM_F0 11
#define SID_NORM_ASM_F1 12
#define SID_NORM_ASM_F2 13
#define SID_NORM_BP1_F0 14
#define SID_NORM_BP1_F1 15
#define SID_NORM_BP1_F2 16
#define SID_NORM_BP2_F0 19
#define SID_NORM_BP2_F1 20
#define SID_NORM_BP2_F2 21
#define SID_BURST_BP1_F0 17
#define SID_BURST_BP2_F0 22
#define SID_BURST_BP1_F1 18
#define SID_BURST_BP2_F1 23
#define SID_SBM1_BP1_F0 28
#define SID_SBM1_BP2_F0 31
#define SID_SBM2_BP1_F0 29
#define SID_SBM2_BP2_F0 32
#define SID_SBM2_BP1_F1 30
#define SID_SBM2_BP2_F1 33
paul
Initial commit
r0 #define SID_NORM_CWF_LONG_F3 34
paul
Updates for the compliance with the ICD 3.7....
r13 #define SID_PARAMETER_DUMP 10
#define SID_K_DUMP 11
paul
Initial commit
r0
// HEADER_LENGTH
paul
sync
r23 //#define TM_HEADER_LEN 16
#define HEADER_LENGTH_TM_LFR_SCIENCE_CWF 32
#define HEADER_LENGTH_TM_LFR_SCIENCE_SWF 34
#define HEADER_LENGTH_TM_LFR_SCIENCE_ASM 34
paul
Initial commit
r0 // PACKET_LENGTH
#define PACKET_LENGTH_TC_EXE_SUCCESS (20 - CCSDS_TC_TM_PACKET_OFFSET)
#define PACKET_LENGTH_TC_EXE_INCONSISTENT (26 - CCSDS_TC_TM_PACKET_OFFSET)
#define PACKET_LENGTH_TC_EXE_NOT_EXECUTABLE (26 - CCSDS_TC_TM_PACKET_OFFSET)
#define PACKET_LENGTH_TC_EXE_NOT_IMPLEMENTED (24 - CCSDS_TC_TM_PACKET_OFFSET)
#define PACKET_LENGTH_TC_EXE_ERROR (24 - CCSDS_TC_TM_PACKET_OFFSET)
#define PACKET_LENGTH_TC_EXE_CORRUPTED (32 - CCSDS_TC_TM_PACKET_OFFSET)
paul
Updates for the compliance with the ICD 3.7....
r13 #define PACKET_LENGTH_HK (136 - CCSDS_TC_TM_PACKET_OFFSET)
paul
compliance with ICD 4.3
r60 #define PACKET_LENGTH_PARAMETER_DUMP (212 - CCSDS_TC_TM_PACKET_OFFSET)
paul
Updates for the compliance with the ICD 3.7....
r13 #define PACKET_LENGTH_K_DUMP (3920 - CCSDS_TC_TM_PACKET_OFFSET)
// SCIENCE ASM
paul
sync
r23 #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
#define PACKET_LENGTH_TM_LFR_SCIENCE_ASM_F0_2 (2430 - CCSDS_TC_TM_PACKET_OFFSET) // 24 * 25 * 4 + 30 => 24 bins (32 + 32 + 24 ), 3 packets
#define PACKET_LENGTH_TM_LFR_SCIENCE_ASM_F1_1 (3630 - CCSDS_TC_TM_PACKET_OFFSET) // 36 * 25 * 4 + 30 => 36 bins (36 + 36 + 32 ), 3 packets
#define PACKET_LENGTH_TM_LFR_SCIENCE_ASM_F1_2 (3230 - CCSDS_TC_TM_PACKET_OFFSET) // 32 * 25 * 4 + 30 => 32 bins (36 + 36 + 32 ), 3 packets
paul
Updates for the compliance with the ICD 3.7....
r13 #define PACKET_LENGTH_TM_LFR_SCIENCE_ASM_F2 (3230 - CCSDS_TC_TM_PACKET_OFFSET) // 32 * 25 * 4 + 30 => 96 bins (32 + 32 + 32 ), 3 packets
// SCIENCE NORM
#define PACKET_LENGTH_TM_LFR_SCIENCE_NORM_BP1_F0 (150 - CCSDS_TC_TM_PACKET_OFFSET) // 11 * 11 + 29 (1 spare byte in the header)
#define PACKET_LENGTH_TM_LFR_SCIENCE_NORM_BP1_F1 (172 - CCSDS_TC_TM_PACKET_OFFSET) // 13 * 11 + 29 (1 spare byte in the header)
#define PACKET_LENGTH_TM_LFR_SCIENCE_NORM_BP1_F2 (160 - CCSDS_TC_TM_PACKET_OFFSET) // 12 * 11 + 28
#define PACKET_LENGTH_TM_LFR_SCIENCE_NORM_BP2_F0 (358 - CCSDS_TC_TM_PACKET_OFFSET) // 11 * 30 + 28
#define PACKET_LENGTH_TM_LFR_SCIENCE_NORM_BP2_F1 (418 - CCSDS_TC_TM_PACKET_OFFSET) // 13 * 30 + 28
#define PACKET_LENGTH_TM_LFR_SCIENCE_NORM_BP2_F2 (388 - CCSDS_TC_TM_PACKET_OFFSET) // 12 * 30 + 28
// SCIENCE SBM
#define PACKET_LENGTH_TM_LFR_SCIENCE_SBM_BP1_F0 (270 - CCSDS_TC_TM_PACKET_OFFSET) // 22 * 11 + 28
#define PACKET_LENGTH_TM_LFR_SCIENCE_SBM_BP2_F0 (688 - CCSDS_TC_TM_PACKET_OFFSET) // 22 * 30 + 28
#define PACKET_LENGTH_TM_LFR_SCIENCE_SBM_BP1_F1 (314 - CCSDS_TC_TM_PACKET_OFFSET) // 26 * 11 + 28
#define PACKET_LENGTH_TM_LFR_SCIENCE_SBM_BP2_F1 (808 - CCSDS_TC_TM_PACKET_OFFSET) // 26 * 30 + 28
paul
Initial commit
r0
#define PACKET_LENGTH_DELTA 11 // 7 + 4
#define SPARE1_PUSVERSION_SPARE2 0x10
paul
Updates for the compliance with the ICD 3.7....
r13 // R3
// one snapshot = 2048 samples = 6 packets * 304 + 224
#define TM_LEN_SCI_SWF_304 (3678 - CCSDS_TC_TM_PACKET_OFFSET) // 304 * 12 + 30
#define TM_LEN_SCI_SWF_224 (2718 - CCSDS_TC_TM_PACKET_OFFSET) // 224 * 12 + 30
// one continuous buffer = 2688 samples = 8 packets * 336
#define TM_LEN_SCI_CWF_336 (4060 - CCSDS_TC_TM_PACKET_OFFSET) // 336 * 12 + 28
#define TM_LEN_SCI_CWF_672 (4060 - CCSDS_TC_TM_PACKET_OFFSET) // 672 * 6 + 28
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 #define PKTCNT_SWF 0x07
#define PKTCNT_ASM 3
paul
Initial commit
r0 #define BLK_NR_304 0x0130
#define BLK_NR_224 0x00e0
#define BLK_NR_CWF 0x0150 // 336
#define BLK_NR_CWF_SHORT_F3 0x02a0 // 672
enum TM_TYPE{
TM_LFR_TC_EXE_OK,
TM_LFR_TC_EXE_ERR,
TM_LFR_HK,
TM_LFR_SCI,
TM_LFR_SCI_SBM,
TM_LFR_PAR_DUMP
};
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 #define BYTES_PER_PACKETID 2
#define BYTES_PER_SEQ_CTRL 2
#define BYTES_PER_PKT_LEN 2
#define BYTES_PER_TIME 6
#define BYTES_PER_ERR_CODE 2
#define BYTES_PER_STA_WRD 2
#define BYTES_PER_CRC 2
#define BYTES_PER_BLKNR 2
#define BYTES_PER_SW_VER 4
#define BYTES_PER_VHD_VER 3
#define COUNTER_2_BYTES 2
#define BYTES_PER_TYPE 2
#define BYTES_PER_SUBTYPE 2
#define BYTES_PER_ADDR 4
#define BYTES_PER_TEMP 2
#define BYTES_PER_V 2
#define BYTES_PER_WORD 4
#define BYTES_PER_MASK 16
#define BYTES_PER_MASKS_SET 48 // 4 * 4 * 3
#define COUNTER_2_BYTES 2
#define PARAM_2_BYTES 2
#define PARAM_4_BYTES 4
paul
Initial commit
r0 typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
// PACKET HEADER
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char telecommand_pkt_id[BYTES_PER_PACKETID];
unsigned char pkt_seq_control[BYTES_PER_SEQ_CTRL];
paul
Initial commit
r0 } Packet_TM_LFR_TC_EXE_SUCCESS_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
// PACKET HEADER
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char telecommand_pkt_id[BYTES_PER_PACKETID];
unsigned char pkt_seq_control[BYTES_PER_SEQ_CTRL];
unsigned char tc_failure_code[BYTES_PER_ERR_CODE];
paul
Initial commit
r0 unsigned char tc_service;
unsigned char tc_subtype;
unsigned char byte_position;
unsigned char rcv_value;
} Packet_TM_LFR_TC_EXE_INCONSISTENT_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
// PACKET HEADER
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char telecommand_pkt_id[BYTES_PER_PACKETID];
unsigned char pkt_seq_control[BYTES_PER_SEQ_CTRL];
unsigned char tc_failure_code[BYTES_PER_ERR_CODE];
paul
Initial commit
r0 unsigned char tc_service;
unsigned char tc_subtype;
unsigned char lfr_status_word[2];
} Packet_TM_LFR_TC_EXE_NOT_EXECUTABLE_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
// PACKET HEADER
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char telecommand_pkt_id[BYTES_PER_PACKETID];
unsigned char pkt_seq_control[BYTES_PER_SEQ_CTRL];
unsigned char tc_failure_code[BYTES_PER_ERR_CODE];
paul
Initial commit
r0 unsigned char tc_service;
unsigned char tc_subtype;
} Packet_TM_LFR_TC_EXE_NOT_IMPLEMENTED_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
// PACKET HEADER
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char telecommand_pkt_id[BYTES_PER_PACKETID];
unsigned char pkt_seq_control[BYTES_PER_SEQ_CTRL];
unsigned char tc_failure_code[BYTES_PER_ERR_CODE];
paul
Initial commit
r0 unsigned char tc_service;
unsigned char tc_subtype;
} Packet_TM_LFR_TC_EXE_ERROR_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
// PACKET HEADER
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 //
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char telecommand_pkt_id[BYTES_PER_PACKETID];
unsigned char pkt_seq_control[BYTES_PER_SEQ_CTRL];
unsigned char tc_failure_code[BYTES_PER_ERR_CODE];
paul
Initial commit
r0 unsigned char tc_service;
unsigned char tc_subtype;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char pkt_len_rcv_value[BYTES_PER_PKT_LEN];
unsigned char pkt_datafieldsize_cnt[BYTES_PER_PKT_LEN];
unsigned char rcv_crc[BYTES_PER_CRC];
unsigned char computed_crc[BYTES_PER_CRC];
paul
Initial commit
r0 } Packet_TM_LFR_TC_EXE_CORRUPTED_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 // AUXILIARY HEADER
unsigned char sid;
paul
TC_types removed from the repo because it is not used by the flight software...
r46 unsigned char pa_bia_status_info;
paul
Updates for the compliance with the ICD 3.7....
r13 unsigned char sy_lfr_common_parameters_spare;
unsigned char sy_lfr_common_parameters;
paul
Initial commit
r0 unsigned char pktCnt;
unsigned char pktNr;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char acquisitionTime[BYTES_PER_TIME];
unsigned char blkNr[BYTES_PER_BLKNR];
paul
Initial commit
r0 } Header_TM_LFR_SCIENCE_SWF_t;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 //*******************
// TM_LFR_SCIENCE_CWF
#define CWF_BLK_SIZE 6
paul
Initial commit
r0 typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 // AUXILIARY DATA HEADER
unsigned char sid;
paul
TC_types removed from the repo because it is not used by the flight software...
r46 unsigned char pa_bia_status_info;
paul
Updates for the compliance with the ICD 3.7....
r13 unsigned char sy_lfr_common_parameters_spare;
unsigned char sy_lfr_common_parameters;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char acquisitionTime[BYTES_PER_TIME];
unsigned char blkNr[BYTES_PER_BLKNR];
paul
Initial commit
r0 } Header_TM_LFR_SCIENCE_CWF_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 // AUXILIARY HEADER
unsigned char sid;
paul
TC_types removed from the repo because it is not used by the flight software...
r46 unsigned char pa_bia_status_info;
paul
Updates for the compliance with the ICD 3.7....
r13 unsigned char sy_lfr_common_parameters_spare;
unsigned char sy_lfr_common_parameters;
paul
Initial commit
r0 unsigned char pa_lfr_pkt_cnt_asm;
unsigned char pa_lfr_pkt_nr_asm;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char acquisitionTime[BYTES_PER_TIME];
unsigned char pa_lfr_asm_blk_nr[BYTES_PER_BLKNR];
paul
Initial commit
r0 } Header_TM_LFR_SCIENCE_ASM_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 // AUXILIARY HEADER
unsigned char sid;
paul
TC_types removed from the repo because it is not used by the flight software...
r46 unsigned char pa_bia_status_info;
paul
Updates for the compliance with the ICD 3.7....
r13 unsigned char sy_lfr_common_parameters_spare;
unsigned char sy_lfr_common_parameters;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char acquisitionTime[BYTES_PER_TIME];
paul
Initial commit
r0 unsigned char source_data_spare;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char pa_lfr_bp_blk_nr[BYTES_PER_BLKNR];
paul
Initial commit
r0 } Header_TM_LFR_SCIENCE_BP_with_spare_t;
typedef struct {
unsigned char targetLogicalAddress;
unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char spare1_pusVersion_spare2;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char destinationID;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char time[BYTES_PER_TIME];
paul
Initial commit
r0 // AUXILIARY HEADER
unsigned char sid;
paul
TC_types removed from the repo because it is not used by the flight software...
r46 unsigned char pa_bia_status_info;
paul
Updates for the compliance with the ICD 3.7....
r13 unsigned char sy_lfr_common_parameters_spare;
unsigned char sy_lfr_common_parameters;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char acquisitionTime[BYTES_PER_TIME];
unsigned char pa_lfr_bp_blk_nr[BYTES_PER_BLKNR];
paul
Initial commit
r0 } Header_TM_LFR_SCIENCE_BP_t;
typedef struct {
paul
CCSDS_TC_PKT_MAX_SIZE updated
r55 // TARGET LOGICAL ADDRESS (targetLogicalAddress) IS REMOVED BY THE GRSPW MODULE
paul
Initial commit
r0 unsigned char protocolIdentifier;
unsigned char reserved;
unsigned char userApplication;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 unsigned char packetID[BYTES_PER_PACKETID];
unsigned char packetSequenceControl[BYTES_PER_SEQ_CTRL];
unsigned char packetLength[BYTES_PER_PKT_LEN];
paul
Initial commit
r0 // DATA FIELD HEADER
unsigned char headerFlag_pusVersion_Ack;
unsigned char serviceType;
unsigned char serviceSubType;
unsigned char sourceID;
paul
two constants added for logiscope rule complaince
r59 unsigned char dataAndCRC[CCSDS_TC_PKT_MAX_SIZE-CCSDS_TC_HEADER_LENGTH];
paul
Initial commit
r0 } ccsdsTelecommandPacket_t;
paul
Many corrections, mainly related to #807 Don_Enumeration
r56 //**********
//**********
// TM_LFR_HK
#define STATUS_WORD_SC_POTENTIAL_FLAG_BIT 0x40 // [0100 0000]
#define STATUS_WORD_SC_POTENTIAL_FLAG_MASK 0xbf // [1011 1111]
#define STATUS_WORD_PAS_FILTER_ENABLED_BIT 0x20 // [0010 0000]
#define STATUS_WORD_PAS_FILTER_ENABLED_MASK 0xdf // [1101 1111]
#define STATUS_WORD_WATCHDOG_BIT 0x10 // [0001 0000]
#define STATUS_WORD_WATCHDOG_MASK 0xef // [1110 1111]
#define STATUS_WORD_CALIB_BIT 0x08 // [0000 1000]
#define STATUS_WORD_CALIB_MASK 0xf7 // [1111 0111]
#define STATUS_WORD_RESET_CAUSE_BITS 0x07 // [0000 0111]
#define STATUS_WORD_RESET_CAUSE_MASK 0xf8 // [1111 1000]
paul
HK_LFR_DPU_SPW_LINK_STATE: ERROR_WAIT = 1
r62 #define STATUS_WORD_LINK_STATE_BITS 0x07 // [0000 0111]
paul