##// END OF EJS Templates
the interrupt sub routine related to the waveform picker is now lighter...
the interrupt sub routine related to the waveform picker is now lighter no more picks are observed on the waveforms

File last commit:

r106:4b288e043b64 VHDLib206
r112:5b5da8d2c053 VHDLib206
Show More
wf_handler.h
98 lines | 3.5 KiB | text/x-c | CLexer
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 #ifndef WF_HANDLER_H_INCLUDED
#define WF_HANDLER_H_INCLUDED
paul
Minor changes in .h inclusion
r45 #include <rtems.h>
#include <grspw.h>
#include <stdio.h>
#include <math.h>
paul
packet emission task added...
r33
paul
Minor changes in .h inclusion
r45 #include "fsw_params.h"
paul
sequence counters management added
r56 #include "fsw_spacewire.h"
#include "fsw_misc.h"
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18
#define pi 3.1415
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
extern int fdSPW;
paul
First version of the rings for the waveform picker.
r87
//*****************
// waveform buffers
// F0
paul
ICD 2.0...
r92 //extern volatile int wf_snap_f0[ ];
paul
VHDL_DEV implemented. The code is compatible with:...
r91 // F1 F2
paul
SM simulator functionnal...
r100 extern volatile int wf_snap_f0[ ][ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) + TIME_OFFSET + 62 ];
extern volatile int wf_snap_f1[ ][ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) + TIME_OFFSET + 62 ];
extern volatile int wf_snap_f2[ ][ (NB_SAMPLES_PER_SNAPSHOT * NB_WORDS_SWF_BLK) + TIME_OFFSET + 62 ];
paul
First version of the rings for the waveform picker.
r87 // F3
paul
Integration of the VHDL_DEV option...
r90 extern volatile int wf_cont_f3_a[ ];
extern volatile int wf_cont_f3_b[ ];
paul
CWF_F3 packets are now compliant with the ICD...
r38 extern char wf_cont_f3_light[ ];
paul
First version of the rings for the waveform picker.
r87
paul
Integration of the VHDL_DEV option...
r90 extern waveform_picker_regs_new_t *waveform_picker_regs;
paul
Minor changes in .h inclusion
r45 extern time_management_regs_t *time_management_regs;
extern Packet_TM_LFR_HK_t housekeeping_packet;
extern Packet_TM_LFR_PARAMETER_DUMP_t parameter_dump_packet;
extern struct param_local_str param_local;
paul
sequence counters management added
r56 extern unsigned short sequenceCounters_SCIENCE_NORMAL_BURST;
extern unsigned short sequenceCounters_SCIENCE_SBM1_SBM2;
paul
Minor changes in .h inclusion
r45 extern rtems_id Task_id[20]; /* array of task ids */
paul
Ignore doc files...
r46
paul
Minor changes in .h inclusion
r45 extern unsigned char lfrCurrentMode;
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
paul
snapshot extraction for the waveform ring is operational...
r105 //**********
// RTEMS_ISR
paul
snapshots extraction fully functionnal in SBM1 and SBM2
r106 void reset_extractSWF( void );
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 rtems_isr waveforms_isr( rtems_vector_number vector );
paul
snapshot extraction for the waveform ring is operational...
r105
//***********
// RTEMS_TASK
paul
CWF_F3 packets are now compliant with the ICD...
r38 rtems_task wfrm_task( rtems_task_argument argument );
rtems_task cwf3_task( rtems_task_argument argument );
rtems_task cwf2_task( rtems_task_argument argument );
rtems_task cwf1_task( rtems_task_argument argument );
paul
snapshot extraction for the waveform ring is operational...
r105 rtems_task swbd_task( rtems_task_argument argument );
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
paul@pc-solar1.lab-lpp.local
automatic reconnexion of the spacewire link...
r17 //******************
// general functions
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18 void init_waveforms( void );
paul
First version of the rings for the waveform picker.
r87 void init_waveform_rings( void );
void reset_current_ring_nodes( void );
paul
packet emission task added...
r33 //
paul
CWF_F3 packets are now compliant with the ICD...
r38 int init_header_snapshot_wf_table( unsigned int sid, Header_TM_LFR_SCIENCE_SWF_t *headerSWF );
int init_header_continuous_wf_table( unsigned int sid, Header_TM_LFR_SCIENCE_CWF_t *headerCWF );
paul
ICD 2.0...
r92 int init_header_continuous_cwf3_light_table( Header_TM_LFR_SCIENCE_CWF_t *headerCWF );
paul
packet emission task added...
r33 //
paul
CWF_F3 packets are now compliant with the ICD...
r38 int send_waveform_SWF( volatile int *waveform, unsigned int sid, Header_TM_LFR_SCIENCE_SWF_t *headerSWF, rtems_id queue_id );
int send_waveform_CWF( volatile int *waveform, unsigned int sid, Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id );
int send_waveform_CWF3( volatile int *waveform, unsigned int sid, Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id );
int send_waveform_CWF3_light( volatile int *waveform, Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id );
paul
Minor changes in .h inclusion
r45 //
paul
rev 1.0.0.1
r98 void compute_acquisition_time(unsigned int coarseTime, unsigned int fineTime,
unsigned int sid, unsigned char pa_lfr_pkt_nr, unsigned char *acquisitionTime );
paul
snapshots extraction fully functionnal in SBM1 and SBM2
r106 void build_snapshot_from_ring(ring_node *ring_node_to_send , unsigned char frequencyChannel );
void build_acquisition_time( unsigned long long int * acquisitionTimeAslong, ring_node *current_ring_node );
paul
Minor changes
r93 //
paul
Minor changes in .h inclusion
r45 rtems_id get_pkts_queue_id( void );
paul@pc-solar1.lab-lpp.local
All modes implemented for the waveforms...
r23
//**************
// wfp registers
paul
Sync
r97 // RESET
void reset_wfp_burst_enable( void );
void reset_wfp_status(void);
void reset_waveform_picker_regs( void );
// SET
void set_wfp_data_shaping(void);
paul
Integration of the VHDL_DEV option...
r90 void set_wfp_burst_enable_register( unsigned char mode );
paul
Sync
r97 void set_wfp_delta_snapshot( void );
void set_wfp_delta_f0_f0_2( void );
void set_wfp_delta_f1( void );
void set_wfp_delta_f2( void );
paul
sy_lfr_n_swf_p implemented...
r32
//*****************
// local parameters
paul
Minor modifications to meet Logiscope requirements
r77 void set_local_nb_interrupt_f0_MAX( void );
paul@pc-solar1.lab-lpp.local
automatic reconnexion of the spacewire link...
r17
paul
sequence counters management added
r56 void increment_seq_counter_source_id( unsigned char *packet_sequence_control, unsigned int sid );
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 #endif // WF_HANDLER_H_INCLUDED