##// END OF EJS Templates
SID corrected in TM_LFR_TC_EXE packets...
SID corrected in TM_LFR_TC_EXE packets fsw ready to test the spectral matrix unit tests performed on the Virtex 5 board

File last commit:

r31:bd675edcd40d default
r31:bd675edcd40d default
Show More
fsw_processing.h
55 lines | 2.1 KiB | text/x-c | CLexer
#ifndef FSW_RTEMS_PROCESSING_H_INCLUDED
#define FSW_RTEMS_PROCESSING_H_INCLUDED
#include <rtems.h>
#include <grspw.h>
#include <leon.h>
#include <fsw_init.h>
#include <fsw_params.h>
#include <grlib_regs.h>
#include <ccsds_types.h>
#include <stdio.h>
#include <stdlib.h>
extern volatile int spec_mat_f0_a[ ];
extern volatile int spec_mat_f0_b[ ];
extern volatile int spec_mat_f0_c[ ];
extern volatile int spec_mat_f0_d[ ];
extern volatile int spec_mat_f0_e[ ];
extern volatile int spec_mat_f0_f[ ];
extern volatile int spec_mat_f0_g[ ];
extern volatile int spec_mat_f0_h[ ];
extern rtems_id Task_id[ ]; /* array of task ids */
extern time_management_regs_t *time_management_regs;
extern spectral_matrix_regs_t *spectral_matrix_regs;
// ISR
rtems_isr spectral_matrices_isr( rtems_vector_number vector );
// RTEMS TASKS
rtems_task spw_bppr_task(rtems_task_argument argument);
rtems_task avf0_task(rtems_task_argument argument);
rtems_task bpf0_task(rtems_task_argument argument);
rtems_task smiq_task(rtems_task_argument argument); // added to test the spectral matrix simulator
rtems_task matr_task(rtems_task_argument argument);
rtems_task spw_bppr_task_rate_monotonic(rtems_task_argument argument);
void matrix_average(volatile int *spec_mat, volatile float *averaged_spec_mat);
void matrix_compression(volatile float *averaged_spec_mat, unsigned char fChannel, float *compressed_spec_mat);
void matrix_reset(volatile float *averaged_spec_mat);
void BP1_set(float * compressed_spec_mat, unsigned char nb_bins_compressed_spec_mat, unsigned char * LFR_BP1);
void BP2_set(float * compressed_spec_mat, unsigned char nb_bins_compressed_spec_mat);
//
void init_header_asm( Header_TM_LFR_SCIENCE_ASM_t *header);
void send_spectral_matrix(Header_TM_LFR_SCIENCE_ASM_t *header, char *spectral_matrix,
unsigned int sid, spw_ioctl_pkt_send *spw_ioctl_send);
void convert_averaged_spectral_matrix(volatile float *input_matrix, char *output_matrix);
void init_averaged_spectral_matrix();
void reset_spectral_matrix_regs();
#endif // FSW_RTEMS_PROCESSING_H_INCLUDED