##// END OF EJS Templates
TC_types removed from the repo because it is not used by the flight software...
TC_types removed from the repo because it is not used by the flight software ICD 4.1 taken into account

File last commit:

r46:81c3289ebd2a default
r46:81c3289ebd2a default
Show More
fsw_params_nb_bytes.h
68 lines | 2.5 KiB | text/x-c | CLexer
/ fsw_params_nb_bytes.h
#ifndef TM_BYTE_POSITIONS_H
#define TM_BYTE_POSITIONS_H
#define PACKET_POS_SEQUENCE_CNT 6 // 4 + 2
#define PACKET_POS_PA_LFR_SID_PKT 20 // 4 + 16
#define PACKET_POS_SERVICE_TYPE 11 // 4 + 7
// TC_LFR_LOAD_COMMON_PAR
// TC_LFR_LOAD_NORMAL_PAR
#define DATAFIELD_POS_SY_LFR_N_SWF_L 0
#define DATAFIELD_POS_SY_LFR_N_SWF_P 2
#define DATAFIELD_POS_SY_LFR_N_ASM_P 4
#define DATAFIELD_POS_SY_LFR_N_BP_P0 6
#define DATAFIELD_POS_SY_LFR_N_BP_P1 7
#define DATAFIELD_POS_SY_LFR_N_CWF_LONG_F3 8
// TC_LFR_LOAD_BURST_PAR
#define DATAFIELD_POS_SY_LFR_B_BP_P0 0
#define DATAFIELD_POS_SY_LFR_B_BP_P1 1
// TC_LFR_LOAD_SBM1_PAR
#define DATAFIELD_POS_SY_LFR_S1_BP_P0 0
#define DATAFIELD_POS_SY_LFR_S1_BP_P1 1
// TC_LFR_LOAD_SBM2_PAR
#define DATAFIELD_POS_SY_LFR_S2_BP_P0 0
#define DATAFIELD_POS_SY_LFR_S2_BP_P1 1
// TC_LFR_UPDATE_INFO
#define BYTE_POS_UPDATE_INFO_PARAMETERS_SET1 10
#define BYTE_POS_UPDATE_INFO_PARAMETERS_SET2 11
#define BYTE_POS_UPDATE_INFO_PARAMETERS_SET5 34
#define BYTE_POS_UPDATE_INFO_PARAMETERS_SET6 35
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW1_F1 44
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW1_F2 48
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW2_F1 52
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW2_F2 56
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW3_F1 60
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW3_F2 64
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW4_F1 68
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW4_F2 72
#define BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW_F_FLAGS 77
// TC_LFR_ENTER_MODE
#define BYTE_POS_CP_MODE_LFR_SET 11
#define BYTE_POS_CP_LFR_ENTER_MODE_TIME 12
//TC_LFR_LOAD_FBINS_MASK
#define NB_FBINS_MASKS 12
#define NB_BYTES_PER_FREQ_MASK 16
#define NB_BYTES_PER_FBINS_MASK 4
// TC_LFR_LOAD_FILTER_PAR
#define DATAFIELD_POS_PA_RPW_SPARE8_2 0 // 8 bits
#define DATAFIELD_POS_SY_LFR_PAS_FILTER_ENABLED 1 // 8 bits
#define DATAFIELD_POS_SY_LFR_PAS_FILTER_MODULUS 2 // 8 bits
#define DATAFIELD_POS_SY_LFR_PAS_FILTER_TBAD 3 // 32 bits
#define DATAFIELD_POS_SY_LFR_PAS_FILTER_OFFSET 7 // 8 bits
#define DATAFIELD_POS_SY_LFR_PAS_FILTER_SHIFT 8 // 32 bits
#define DATAFIELD_POS_SY_LFR_SC_RW_DELTA_F 12 // 32 bits
// TC_LFR_LOAD_KCOEFFICIENTS
#define NB_BYTES_PER_FLOAT 4
#define DATAFIELD_POS_SY_LFR_KCOEFF_FREQUENCY 0 // 10 - 10
#define DATAFIELD_POS_SY_LFR_KCOEFF_1 2 // 12 - 10
#endif // TM_BYTE_POSITIONS_H