##// END OF EJS Templates
Sync...
Sync Beginning of the BP packets emission implementation NORMAL and SBM1 packets are emitted together when in SBM1

File last commit:

r116:4710a866a7d2 VHDLib206
r116:4710a866a7d2 VHDLib206
Show More
fsw_processing.h
108 lines | 3.8 KiB | text/x-c | CLexer
paul
Minor changes in .h inclusion
r45 #ifndef FSW_PROCESSING_H_INCLUDED
#define FSW_PROCESSING_H_INCLUDED
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
paul
Minor changes in .h inclusion
r45 #include <rtems.h>
#include <grspw.h>
#include <math.h>
#include <stdlib.h> // abs() is in the stdlib
#include <stdio.h> // printf()
paul
sequence counters management added
r56 #include <math.h>
paul
Minor changes in .h inclusion
r45
#include "fsw_params.h"
paul
sequence counters management added
r56 #include "fsw_spacewire.h"
paul
Minor changes in .h inclusion
r45
paul
Sync...
r116 typedef struct ring_node_sm
{
struct ring_node_sm *previous;
int buffer_address;
struct ring_node_sm *next;
unsigned int status;
unsigned int coarseTime;
unsigned int fineTime;
} ring_node_sm;
typedef struct ring_node_bp
{
struct ring_node_bp *previous;
struct ring_node_bp *next;
unsigned int status;
unsigned int coarseTime;
unsigned int fineTime;
Header_TM_LFR_SCIENCE_BP_t header;
unsigned char data[ 30 * 22 ]; // MAX size is 22 * 30 TM_LFR_SCIENCE_BURST_BP2_F1
} ring_node_bp;
typedef struct ring_node_bp_with_spare
{
struct ring_node_bp_with_spare *previous;
struct ring_node_bp_with_spare *next;
unsigned int status;
unsigned int coarseTime;
unsigned int fineTime;
Header_TM_LFR_SCIENCE_BP_with_spare_t header;
unsigned char data[ 9 * 22 ];
} ring_node_bp_with_spare;
paul
snapshots extraction fully functionnal in SBM1 and SBM2
r106 extern volatile int sm_f0[ ];
extern volatile int sm_f1[ ];
extern volatile int sm_f2[ ];
paul
sy_lfr_n_swf_p implemented...
r32
// parameters
extern struct param_local_str param_local;
// registers
paul
SID corrected in TM_LFR_TC_EXE packets...
r31 extern time_management_regs_t *time_management_regs;
extern spectral_matrix_regs_t *spectral_matrix_regs;
paul
Minor changes in .h inclusion
r45 extern rtems_name misc_name[5];
extern rtems_id Task_id[20]; /* array of task ids */
paul
Sync
r95 void init_sm_rings( void );
void reset_current_sm_ring_nodes( void );
paul
Sync...
r116 void reset_current_bp_ring_nodes( void );
paul
Minor changes
r93
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 // ISR
paul
Sync
r99 void reset_nb_sm_f0( void );
paul
SID corrected in TM_LFR_TC_EXE packets...
r31 rtems_isr spectral_matrices_isr( rtems_vector_number vector );
paul
Commit before working on the ERR 4 due to message queue...
r34 rtems_isr spectral_matrices_isr_simu( rtems_vector_number vector );
paul
SID corrected in TM_LFR_TC_EXE packets...
r31
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 // RTEMS TASKS
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 rtems_task avf0_task(rtems_task_argument argument);
paul
SID corrected in TM_LFR_TC_EXE packets...
r31 rtems_task smiq_task(rtems_task_argument argument); // added to test the spectral matrix simulator
rtems_task matr_task(rtems_task_argument argument);
paul@pc-solar1.lab-lpp.local
automatic reconnexion of the spacewire link...
r17
paul
Sync
r115 //*****************************
// Spectral matrices processing
paul
Sync...
r116 void SM_average(float *averaged_spec_mat_f0, float *averaged_spec_mat_f1,
paul
sync
r113 ring_node_sm *ring_node_tab[],
unsigned int firstTimeF0, unsigned int firstTimeF1 );
paul
Sync
r115 void ASM_reorganize_and_divide(float *averaged_spec_mat, float *averaged_spec_mat_reorganized,
float divider );
void ASM_compress_reorganize_and_divide(float *averaged_spec_mat, float *compressed_spec_mat,
float divider,
unsigned char nbBinsCompressedMatrix, unsigned char nbBinsToAverage , unsigned char ASMIndexStart);
paul
the function asm_reorganize format the spectral matrix to the ICD format
r103 void ASM_convert(volatile float *input_matrix, char *output_matrix);
void ASM_send(Header_TM_LFR_SCIENCE_ASM_t *header, char *spectral_matrix,
paul
Last commit before release 0-13...
r35 unsigned int sid, spw_ioctl_pkt_send *spw_ioctl_send, rtems_id queue_id);
paul
Sync
r115
paul
Sync...
r116 void BP_send(char *data,
rtems_id queue_id ,
unsigned int nbBytesToSend );
paul
Sync
r115
void init_header_asm( Header_TM_LFR_SCIENCE_ASM_t *header);
paul
Sync...
r116 void init_bp_ring_sbm1_bp1( void );
void init_bp_ring_sbm1_bp2( void );
void init_headers_bp_ring_sbm1_bp1();
void init_header_bp(Header_TM_LFR_SCIENCE_BP_t *header,
unsigned int apid, unsigned char sid,
unsigned int packetLength , unsigned char blkNr);
void init_header_bp_with_spare(Header_TM_LFR_SCIENCE_BP_with_spare_t *header,
unsigned int apid, unsigned char sid,
unsigned int packetLength, unsigned char blkNr );
paul
Sync
r115
void reset_spectral_matrix_regs( void );
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
paul
Sync...
r116 void set_time( unsigned char *time, unsigned int coarseTime, unsigned int fineTime );
paul
Minor changes in .h inclusion
r45 #endif // FSW_PROCESSING_H_INCLUDED