diff --git a/header/fsw_misc.h b/header/fsw_misc.h --- a/header/fsw_misc.h +++ b/header/fsw_misc.h @@ -70,10 +70,10 @@ extern gptimer_regs_t *gptimer_regs; extern void ASR16_get_FPRF_IURF_ErrorCounters( unsigned int*, unsigned int* ); extern void CCR_getInstructionAndDataErrorCounters( unsigned int*, unsigned int* ); -rtems_name name_hk_rate_monotonic; // name of the HK rate monotonic -rtems_id HK_id; // id of the HK rate monotonic period -rtems_name name_avgv_rate_monotonic; // name of the AVGV rate monotonic -rtems_id AVGV_id; // id of the AVGV rate monotonic period +rtems_name name_hk_rate_monotonic = 0; // name of the HK rate monotonic +rtems_id HK_id = RTEMS_ID_NONE;// id of the HK rate monotonic period +rtems_name name_avgv_rate_monotonic = 0; // name of the AVGV rate monotonic +rtems_id AVGV_id = RTEMS_ID_NONE;// id of the AVGV rate monotonic period void timer_configure( unsigned char timer, unsigned int clock_divider, unsigned char interrupt_level, rtems_isr (*timer_isr)() ); diff --git a/src/fsw_globals.c b/src/fsw_globals.c --- a/src/fsw_globals.c +++ b/src/fsw_globals.c @@ -26,15 +26,15 @@ #define NB_OF_MISC_NAMES 5 // RTEMS GLOBAL VARIABLES -rtems_name misc_name[NB_OF_MISC_NAMES]; -rtems_name Task_name[NB_OF_TASKS]; /* array of task names */ -rtems_id Task_id[NB_OF_TASKS]; /* array of task ids */ -rtems_name timecode_timer_name; -rtems_id timecode_timer_id; +rtems_name misc_name[NB_OF_MISC_NAMES] = {0}; +rtems_name Task_name[NB_OF_TASKS] = {0}; /* array of task names */ +rtems_id Task_id[NB_OF_TASKS] = {0}; /* array of task ids */ +rtems_name timecode_timer_name = {0}; +rtems_id timecode_timer_id = {0}; int fdSPW = 0; int fdUART = 0; -unsigned char lfrCurrentMode; -unsigned char pa_bia_status_info; +unsigned char lfrCurrentMode = 0; +unsigned char pa_bia_status_info = 0; unsigned char thisIsAnASMRestart = 0; unsigned char oneTcLfrUpdateTimeReceived = 0; @@ -43,18 +43,18 @@ unsigned char oneTcLfrUpdateTimeReceived // WAVEFORMS GLOBAL VARIABLES // 2688 * 3 * 4 + 2 * 4 = 32256 + 8 bytes = 32264 // 127 * 256 = 32512 => delta = 248 bytes = 62 words // F0 F1 F2 F3 -volatile int wf_buffer_f0[ NB_RING_NODES_F0 * WFRM_BUFFER ] __attribute__((aligned(0x100))); -volatile int wf_buffer_f1[ NB_RING_NODES_F1 * WFRM_BUFFER ] __attribute__((aligned(0x100))); -volatile int wf_buffer_f2[ NB_RING_NODES_F2 * WFRM_BUFFER ] __attribute__((aligned(0x100))); -volatile int wf_buffer_f3[ NB_RING_NODES_F3 * WFRM_BUFFER ] __attribute__((aligned(0x100))); +volatile int wf_buffer_f0[ NB_RING_NODES_F0 * WFRM_BUFFER ] __attribute__((aligned(0x100))) = {0}; +volatile int wf_buffer_f1[ NB_RING_NODES_F1 * WFRM_BUFFER ] __attribute__((aligned(0x100))) = {0}; +volatile int wf_buffer_f2[ NB_RING_NODES_F2 * WFRM_BUFFER ] __attribute__((aligned(0x100))) = {0}; +volatile int wf_buffer_f3[ NB_RING_NODES_F3 * WFRM_BUFFER ] __attribute__((aligned(0x100))) = {0}; //*********************************** // SPECTRAL MATRICES GLOBAL VARIABLES // alignment constraints for the spectral matrices buffers => the first data after the time (8 bytes) shall be aligned on 0x00 -volatile int sm_f0[ NB_RING_NODES_SM_F0 * TOTAL_SIZE_SM ] __attribute__((aligned(0x100))); -volatile int sm_f1[ NB_RING_NODES_SM_F1 * TOTAL_SIZE_SM ] __attribute__((aligned(0x100))); -volatile int sm_f2[ NB_RING_NODES_SM_F2 * TOTAL_SIZE_SM ] __attribute__((aligned(0x100))); +volatile int sm_f0[ NB_RING_NODES_SM_F0 * TOTAL_SIZE_SM ] __attribute__((aligned(0x100))) = {0}; +volatile int sm_f1[ NB_RING_NODES_SM_F1 * TOTAL_SIZE_SM ] __attribute__((aligned(0x100))) = {0}; +volatile int sm_f2[ NB_RING_NODES_SM_F2 * TOTAL_SIZE_SM ] __attribute__((aligned(0x100))) = {0}; // APB CONFIGURATION REGISTERS time_management_regs_t *time_management_regs = (time_management_regs_t*) REGS_ADDR_TIME_MANAGEMENT; @@ -63,40 +63,40 @@ waveform_picker_regs_0_1_18_t *wavefor spectral_matrix_regs_t *spectral_matrix_regs = (spectral_matrix_regs_t*) REGS_ADDR_SPECTRAL_MATRIX; // MODE PARAMETERS -Packet_TM_LFR_PARAMETER_DUMP_t parameter_dump_packet; -struct param_local_str param_local; -unsigned int lastValidEnterModeTime; +Packet_TM_LFR_PARAMETER_DUMP_t parameter_dump_packet = {0}; +struct param_local_str param_local = {0}; +unsigned int lastValidEnterModeTime = {0}; // HK PACKETS -Packet_TM_LFR_HK_t housekeeping_packet; -unsigned char cp_rpw_sc_rw_f_flags; +Packet_TM_LFR_HK_t housekeeping_packet = {0}; +unsigned char cp_rpw_sc_rw_f_flags = 0; // message queues occupancy -unsigned char hk_lfr_q_sd_fifo_size_max; -unsigned char hk_lfr_q_rv_fifo_size_max; -unsigned char hk_lfr_q_p0_fifo_size_max; -unsigned char hk_lfr_q_p1_fifo_size_max; -unsigned char hk_lfr_q_p2_fifo_size_max; +unsigned char hk_lfr_q_sd_fifo_size_max = 0; +unsigned char hk_lfr_q_rv_fifo_size_max = 0; +unsigned char hk_lfr_q_p0_fifo_size_max = 0; +unsigned char hk_lfr_q_p1_fifo_size_max = 0; +unsigned char hk_lfr_q_p2_fifo_size_max = 0; // sequence counters are incremented by APID (PID + CAT) and destination ID -unsigned short sequenceCounters_SCIENCE_NORMAL_BURST; -unsigned short sequenceCounters_SCIENCE_SBM1_SBM2; -unsigned short sequenceCounters_TC_EXE[SEQ_CNT_NB_DEST_ID]; -unsigned short sequenceCounters_TM_DUMP[SEQ_CNT_NB_DEST_ID]; +unsigned short sequenceCounters_SCIENCE_NORMAL_BURST = 0; +unsigned short sequenceCounters_SCIENCE_SBM1_SBM2 = 0; +unsigned short sequenceCounters_TC_EXE[SEQ_CNT_NB_DEST_ID] = {0}; +unsigned short sequenceCounters_TM_DUMP[SEQ_CNT_NB_DEST_ID] = {0}; unsigned short sequenceCounterHK; -spw_stats grspw_stats; +spw_stats grspw_stats = {0}; // TC_LFR_UPDATE_INFO -float cp_rpw_sc_rw1_f1; -float cp_rpw_sc_rw1_f2; -float cp_rpw_sc_rw2_f1; -float cp_rpw_sc_rw2_f2; -float cp_rpw_sc_rw3_f1; -float cp_rpw_sc_rw3_f2; -float cp_rpw_sc_rw4_f1; -float cp_rpw_sc_rw4_f2; +float cp_rpw_sc_rw1_f1 = INIT_FLOAT; +float cp_rpw_sc_rw1_f2 = INIT_FLOAT; +float cp_rpw_sc_rw2_f1 = INIT_FLOAT; +float cp_rpw_sc_rw2_f2 = INIT_FLOAT; +float cp_rpw_sc_rw3_f1 = INIT_FLOAT; +float cp_rpw_sc_rw3_f2 = INIT_FLOAT; +float cp_rpw_sc_rw4_f1 = INIT_FLOAT; +float cp_rpw_sc_rw4_f2 = INIT_FLOAT; // TC_LFR_LOAD_FILTER_PAR -filterPar_t filterPar; +filterPar_t filterPar = {0}; -fbins_masks_t fbins_masks; +fbins_masks_t fbins_masks = {0}; unsigned int acquisitionDurations[NB_ACQUISITION_DURATION] = {ACQUISITION_DURATION_F0, ACQUISITION_DURATION_F1, ACQUISITION_DURATION_F2}; diff --git a/src/fsw_spacewire.c b/src/fsw_spacewire.c --- a/src/fsw_spacewire.c +++ b/src/fsw_spacewire.c @@ -13,14 +13,14 @@ #include "fsw_spacewire.h" -rtems_name semq_name; -rtems_id semq_id; +rtems_name semq_name = 0; +rtems_id semq_id = RTEMS_ID_NONE; //***************** // waveform headers -Header_TM_LFR_SCIENCE_CWF_t headerCWF; -Header_TM_LFR_SCIENCE_SWF_t headerSWF; -Header_TM_LFR_SCIENCE_ASM_t headerASM; +Header_TM_LFR_SCIENCE_CWF_t headerCWF = {0}; +Header_TM_LFR_SCIENCE_SWF_t headerSW = {0}; +Header_TM_LFR_SCIENCE_ASM_t headerASM = {0}; unsigned char previousTimecodeCtr = 0; unsigned int *grspwPtr = (unsigned int *) (REGS_ADDR_GRSPW + APB_OFFSET_GRSPW_TIME_REGISTER); diff --git a/src/processing/avf0_prc0.c b/src/processing/avf0_prc0.c --- a/src/processing/avf0_prc0.c +++ b/src/processing/avf0_prc0.c @@ -8,27 +8,26 @@ */ #include "avf0_prc0.h" -#include "fsw_processing.h" -nb_sm_before_bp_asm_f0 nb_sm_before_f0; +nb_sm_before_bp_asm_f0 nb_sm_before_f0 = {0}; //*** // F0 -ring_node_asm asm_ring_norm_f0 [ NB_RING_NODES_ASM_NORM_F0 ]; -ring_node_asm asm_ring_burst_sbm_f0 [ NB_RING_NODES_ASM_BURST_SBM_F0 ]; +ring_node_asm asm_ring_norm_f0 [ NB_RING_NODES_ASM_NORM_F0 ] = {0}; +ring_node_asm asm_ring_burst_sbm_f0 [ NB_RING_NODES_ASM_BURST_SBM_F0 ] = {0}; -ring_node ring_to_send_asm_f0 [ NB_RING_NODES_ASM_F0 ]; -int buffer_asm_f0 [ NB_RING_NODES_ASM_F0 * TOTAL_SIZE_SM ]; +ring_node ring_to_send_asm_f0 [ NB_RING_NODES_ASM_F0 ] = {0}; +int buffer_asm_f0 [ NB_RING_NODES_ASM_F0 * TOTAL_SIZE_SM ] = {0}; -float asm_f0_patched_norm [ TOTAL_SIZE_SM ]; -float asm_f0_patched_burst_sbm [ TOTAL_SIZE_SM ]; -float asm_f0_reorganized [ TOTAL_SIZE_SM ]; +float asm_f0_patched_norm [ TOTAL_SIZE_SM ] = {0}; +float asm_f0_patched_burst_sbm [ TOTAL_SIZE_SM ] = {0}; +float asm_f0_reorganized [ TOTAL_SIZE_SM ] = {0}; -float compressed_sm_norm_f0[ TOTAL_SIZE_COMPRESSED_ASM_NORM_F0]; -float compressed_sm_sbm_f0 [ TOTAL_SIZE_COMPRESSED_ASM_SBM_F0 ]; +float compressed_sm_norm_f0[ TOTAL_SIZE_COMPRESSED_ASM_NORM_F0] = {0}; +float compressed_sm_sbm_f0 [ TOTAL_SIZE_COMPRESSED_ASM_SBM_F0 ] = {0}; -float k_coeff_intercalib_f0_norm[ NB_BINS_COMPRESSED_SM_F0 * NB_K_COEFF_PER_BIN ]; // 11 * 32 = 352 -float k_coeff_intercalib_f0_sbm[ NB_BINS_COMPRESSED_SM_SBM_F0 * NB_K_COEFF_PER_BIN ]; // 22 * 32 = 704 +float k_coeff_intercalib_f0_norm[ NB_BINS_COMPRESSED_SM_F0 * NB_K_COEFF_PER_BIN ] = {0}; // 11 * 32 = 352 +float k_coeff_intercalib_f0_sbm[ NB_BINS_COMPRESSED_SM_SBM_F0 * NB_K_COEFF_PER_BIN ] = {0}; // 22 * 32 = 704 //************ // RTEMS TASKS diff --git a/src/processing/avf1_prc1.c b/src/processing/avf1_prc1.c --- a/src/processing/avf1_prc1.c +++ b/src/processing/avf1_prc1.c @@ -9,27 +9,25 @@ #include "avf1_prc1.h" -nb_sm_before_bp_asm_f1 nb_sm_before_f1; - -extern ring_node sm_ring_f1[ ]; +nb_sm_before_bp_asm_f1 nb_sm_before_f1 = {0}; //*** // F1 -ring_node_asm asm_ring_norm_f1 [ NB_RING_NODES_ASM_NORM_F1 ]; -ring_node_asm asm_ring_burst_sbm_f1 [ NB_RING_NODES_ASM_BURST_SBM_F1 ]; +ring_node_asm asm_ring_norm_f1 [ NB_RING_NODES_ASM_NORM_F1 ] = {0}; +ring_node_asm asm_ring_burst_sbm_f1 [ NB_RING_NODES_ASM_BURST_SBM_F1 ] = {0}; -ring_node ring_to_send_asm_f1 [ NB_RING_NODES_ASM_F1 ]; -int buffer_asm_f1 [ NB_RING_NODES_ASM_F1 * TOTAL_SIZE_SM ]; +ring_node ring_to_send_asm_f1 [ NB_RING_NODES_ASM_F1 ] = {0}; +int buffer_asm_f1 [ NB_RING_NODES_ASM_F1 * TOTAL_SIZE_SM ] = {0}; -float asm_f1_patched_norm [ TOTAL_SIZE_SM ]; -float asm_f1_patched_burst_sbm [ TOTAL_SIZE_SM ]; -float asm_f1_reorganized [ TOTAL_SIZE_SM ]; +float asm_f1_patched_norm [ TOTAL_SIZE_SM ] = {0}; +float asm_f1_patched_burst_sbm [ TOTAL_SIZE_SM ] = {0}; +float asm_f1_reorganized [ TOTAL_SIZE_SM ] = {0}; -float compressed_sm_norm_f1[ TOTAL_SIZE_COMPRESSED_ASM_NORM_F1]; -float compressed_sm_sbm_f1 [ TOTAL_SIZE_COMPRESSED_ASM_SBM_F1 ]; +float compressed_sm_norm_f1[ TOTAL_SIZE_COMPRESSED_ASM_NORM_F1] = {0}; +float compressed_sm_sbm_f1 [ TOTAL_SIZE_COMPRESSED_ASM_SBM_F1 ] = {0}; -float k_coeff_intercalib_f1_norm[ NB_BINS_COMPRESSED_SM_F1 * NB_K_COEFF_PER_BIN ]; // 13 * 32 = 416 -float k_coeff_intercalib_f1_sbm[ NB_BINS_COMPRESSED_SM_SBM_F1 * NB_K_COEFF_PER_BIN ]; // 26 * 32 = 832 +float k_coeff_intercalib_f1_norm[ NB_BINS_COMPRESSED_SM_F1 * NB_K_COEFF_PER_BIN ] = {0}; // 13 * 32 = 416 +float k_coeff_intercalib_f1_sbm[ NB_BINS_COMPRESSED_SM_SBM_F1 * NB_K_COEFF_PER_BIN ] = {0}; // 26 * 32 = 832 //************ // RTEMS TASKS diff --git a/src/processing/avf2_prc2.c b/src/processing/avf2_prc2.c --- a/src/processing/avf2_prc2.c +++ b/src/processing/avf2_prc2.c @@ -9,23 +9,21 @@ #include "avf2_prc2.h" -nb_sm_before_bp_asm_f2 nb_sm_before_f2; - -extern ring_node sm_ring_f2[ ]; +nb_sm_before_bp_asm_f2 nb_sm_before_f2 = {0}; //*** // F2 -ring_node_asm asm_ring_norm_f2 [ NB_RING_NODES_ASM_NORM_F2 ]; +ring_node_asm asm_ring_norm_f2 [ NB_RING_NODES_ASM_NORM_F2 ] = {0}; -ring_node ring_to_send_asm_f2 [ NB_RING_NODES_ASM_F2 ]; -int buffer_asm_f2 [ NB_RING_NODES_ASM_F2 * TOTAL_SIZE_SM ]; +ring_node ring_to_send_asm_f2 [ NB_RING_NODES_ASM_F2 ] = {0}; +int buffer_asm_f2 [ NB_RING_NODES_ASM_F2 * TOTAL_SIZE_SM ] = {0}; -float asm_f2_patched_norm [ TOTAL_SIZE_SM ]; -float asm_f2_reorganized [ TOTAL_SIZE_SM ]; +float asm_f2_patched_norm [ TOTAL_SIZE_SM ] = {0}; +float asm_f2_reorganized [ TOTAL_SIZE_SM ] = {0}; -float compressed_sm_norm_f2[ TOTAL_SIZE_COMPRESSED_ASM_NORM_F2]; +float compressed_sm_norm_f2[ TOTAL_SIZE_COMPRESSED_ASM_NORM_F2] = {0}; -float k_coeff_intercalib_f2[ NB_BINS_COMPRESSED_SM_F2 * NB_K_COEFF_PER_BIN ]; // 12 * 32 = 384 +float k_coeff_intercalib_f2[ NB_BINS_COMPRESSED_SM_F2 * NB_K_COEFF_PER_BIN ] = {0}; // 12 * 32 = 384 //************ // RTEMS TASKS diff --git a/src/processing/fsw_processing.c b/src/processing/fsw_processing.c --- a/src/processing/fsw_processing.c +++ b/src/processing/fsw_processing.c @@ -11,10 +11,10 @@ #include "fsw_processing_globals.c" #include "fsw_init.h" -unsigned int nb_sm_f0; -unsigned int nb_sm_f0_aux_f1; -unsigned int nb_sm_f1; -unsigned int nb_sm_f0_aux_f2; +unsigned int nb_sm_f0 = 0; +unsigned int nb_sm_f0_aux_f1= 0; +unsigned int nb_sm_f1 = 0; +unsigned int nb_sm_f0_aux_f2= 0; typedef enum restartState_t { @@ -25,15 +25,15 @@ typedef enum restartState_t //************************ // spectral matrices rings -ring_node sm_ring_f0[ NB_RING_NODES_SM_F0 ]; -ring_node sm_ring_f1[ NB_RING_NODES_SM_F1 ]; -ring_node sm_ring_f2[ NB_RING_NODES_SM_F2 ]; -ring_node *current_ring_node_sm_f0; -ring_node *current_ring_node_sm_f1; -ring_node *current_ring_node_sm_f2; -ring_node *ring_node_for_averaging_sm_f0; -ring_node *ring_node_for_averaging_sm_f1; -ring_node *ring_node_for_averaging_sm_f2; +ring_node sm_ring_f0[ NB_RING_NODES_SM_F0 ] = {0}; +ring_node sm_ring_f1[ NB_RING_NODES_SM_F1 ] = {0}; +ring_node sm_ring_f2[ NB_RING_NODES_SM_F2 ] = {0}; +ring_node *current_ring_node_sm_f0 = NULL; +ring_node *current_ring_node_sm_f1 = NULL; +ring_node *current_ring_node_sm_f2 = NULL; +ring_node *ring_node_for_averaging_sm_f0= NULL; +ring_node *ring_node_for_averaging_sm_f1= NULL; +ring_node *ring_node_for_averaging_sm_f2= NULL; // ring_node * getRingNodeForAveraging( unsigned char frequencyChannel) diff --git a/src/tc_acceptance.c b/src/tc_acceptance.c --- a/src/tc_acceptance.c +++ b/src/tc_acceptance.c @@ -10,7 +10,7 @@ #include "tc_acceptance.h" #include -unsigned int lookUpTableForCRC[CONST_256]; +unsigned int lookUpTableForCRC[CONST_256] = {0}; //********************** // GENERAL USE FUNCTIONS diff --git a/src/tc_load_dump_parameters.c b/src/tc_load_dump_parameters.c --- a/src/tc_load_dump_parameters.c +++ b/src/tc_load_dump_parameters.c @@ -14,10 +14,10 @@ #include "tc_load_dump_parameters.h" -Packet_TM_LFR_KCOEFFICIENTS_DUMP_t kcoefficients_dump_1; -Packet_TM_LFR_KCOEFFICIENTS_DUMP_t kcoefficients_dump_2; -ring_node kcoefficient_node_1; -ring_node kcoefficient_node_2; +Packet_TM_LFR_KCOEFFICIENTS_DUMP_t kcoefficients_dump_1 = {0}; +Packet_TM_LFR_KCOEFFICIENTS_DUMP_t kcoefficients_dump_2 = {0}; +ring_node kcoefficient_node_1 = {0}; +ring_node kcoefficient_node_2 = {0}; int action_load_common_par(ccsdsTelecommandPacket_t *TC) { diff --git a/src/wf_handler.c b/src/wf_handler.c --- a/src/wf_handler.c +++ b/src/wf_handler.c @@ -12,24 +12,24 @@ //*************** // waveform rings // F0 -ring_node waveform_ring_f0[NB_RING_NODES_F0]; -ring_node *current_ring_node_f0; -ring_node *ring_node_to_send_swf_f0; +ring_node waveform_ring_f0[NB_RING_NODES_F0]= {0}; +ring_node *current_ring_node_f0 = NULL; +ring_node *ring_node_to_send_swf_f0 = NULL; // F1 -ring_node waveform_ring_f1[NB_RING_NODES_F1]; -ring_node *current_ring_node_f1; -ring_node *ring_node_to_send_swf_f1; -ring_node *ring_node_to_send_cwf_f1; +ring_node waveform_ring_f1[NB_RING_NODES_F1] = {0}; +ring_node *current_ring_node_f1 = NULL; +ring_node *ring_node_to_send_swf_f1 = NULL; +ring_node *ring_node_to_send_cwf_f1 = NULL; // F2 -ring_node waveform_ring_f2[NB_RING_NODES_F2]; -ring_node *current_ring_node_f2; -ring_node *ring_node_to_send_swf_f2; -ring_node *ring_node_to_send_cwf_f2; +ring_node waveform_ring_f2[NB_RING_NODES_F2] = {0}; +ring_node *current_ring_node_f2 = NULL; +ring_node *ring_node_to_send_swf_f2 = NULL; +ring_node *ring_node_to_send_cwf_f2 = NULL; // F3 -ring_node waveform_ring_f3[NB_RING_NODES_F3]; -ring_node *current_ring_node_f3; -ring_node *ring_node_to_send_cwf_f3; -char wf_cont_f3_light[ (NB_SAMPLES_PER_SNAPSHOT) * NB_BYTES_CWF3_LIGHT_BLK ]; +ring_node waveform_ring_f3[NB_RING_NODES_F3] = {0}; +ring_node *current_ring_node_f3 = NULL; +ring_node *ring_node_to_send_cwf_f3 = NULL; +char wf_cont_f3_light[ (NB_SAMPLES_PER_SNAPSHOT) * NB_BYTES_CWF3_LIGHT_BLK ] = {0}; bool extractSWF1 = false; bool extractSWF2 = false; @@ -38,10 +38,10 @@ bool swf0_ready_flag_f2 = false; bool swf1_ready = false; bool swf2_ready = false; -int swf1_extracted[ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) ]; -int swf2_extracted[ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) ]; -ring_node ring_node_swf1_extracted; -ring_node ring_node_swf2_extracted; +int swf1_extracted[ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) ] = {0}; +int swf2_extracted[ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) ] = {0}; +ring_node ring_node_swf1_extracted = {0}; +ring_node ring_node_swf2_extracted = {0}; typedef enum resynchro_state_t {