wf_handler.h
55 lines
| 2.0 KiB
| text/x-c
|
CLexer
/ header / wf_handler.h
paul@pc-solar1.lab-lpp.local
|
r5 | #ifndef WF_HANDLER_H_INCLUDED | ||
#define WF_HANDLER_H_INCLUDED | ||||
#include <rtems.h> | ||||
#include <fsw_params.h> | ||||
#include <grspw.h> | ||||
#include <grlib_regs.h> | ||||
#include <ccsds_types.h> | ||||
#include <stdio.h> | ||||
#include <fsw_init.h> | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | #include <math.h> | ||
#define pi 3.1415 | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
//#include <sys/ioctl.h> | ||||
extern rtems_id Task_id[]; /* array of task ids */ | ||||
extern int fdSPW; | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | extern volatile int wf_snap_f0[ ]; | ||
extern volatile int wf_snap_f1[ ]; | ||||
paul@pc-solar1.lab-lpp.local
|
r19 | extern volatile int wf_snap_f1_bis[ ]; | ||
paul@pc-solar1.lab-lpp.local
|
r18 | extern volatile int wf_snap_f2[ ]; | ||
paul@pc-solar1.lab-lpp.local
|
r22 | extern volatile int wf_snap_f2_bis[ ]; | ||
paul@pc-solar1.lab-lpp.local
|
r18 | extern volatile int wf_cont_f3[ ]; | ||
extern waveform_picker_regs_t *waveform_picker_regs; | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
rtems_isr waveforms_isr( rtems_vector_number vector ); | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | rtems_isr waveforms_simulator_isr( rtems_vector_number vector ); | ||
paul@pc-solar1.lab-lpp.local
|
r9 | rtems_task wfrm_task(rtems_task_argument argument); | ||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
paul@pc-solar1.lab-lpp.local
|
r17 | //****************** | ||
// general functions | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | void init_waveforms( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r23 | void init_header_snapshot_wf( Header_TM_LFR_SCIENCE_SWF_t *header ); | ||
void init_header_continuous_wf( Header_TM_LFR_SCIENCE_CWF_t *header ); | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | void reset_waveforms( void ); | ||
paul@pc-solar1.lab-lpp.local
|
r23 | void send_waveform_norm(Header_TM_LFR_SCIENCE_SWF_t *header, spw_ioctl_pkt_send *spw_ioctl_send); | ||
void send_waveform_burst(Header_TM_LFR_SCIENCE_CWF_t *header, spw_ioctl_pkt_send *spw_ioctl_send); | ||||
void send_waveform_sbm1(Header_TM_LFR_SCIENCE_CWF_t *header, spw_ioctl_pkt_send *spw_ioctl_send); | ||||
void send_waveform_sbm2(Header_TM_LFR_SCIENCE_CWF_t *header, spw_ioctl_pkt_send *spw_ioctl_send); | ||||
void send_waveform_SWF( Header_TM_LFR_SCIENCE_SWF_t *header, volatile int *waveform, | ||||
unsigned int sid, spw_ioctl_pkt_send *spw_ioctl_send); | ||||
void send_waveform_CWF( Header_TM_LFR_SCIENCE_CWF_t *header, volatile int *waveform, | ||||
unsigned int sid, spw_ioctl_pkt_send *spw_ioctl_send); | ||||
//************** | ||||
// wfp registers | ||||
void set_wfp_data_shaping(unsigned char data_shaping); | ||||
void set_wfp_delta_snapshot(unsigned int delta_snapshot); | ||||
void reset_wfp_burst_enable(); | ||||
void reset_wfp_regs(); | ||||
// | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | int build_value(int value1, int value0); | ||
paul@pc-solar1.lab-lpp.local
|
r17 | |||
paul@pc-solar1.lab-lpp.local
|
r5 | #endif // WF_HANDLER_H_INCLUDED | ||