wf_handler.h
40 lines
| 1.2 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[ ]; | ||
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
|
r21 | rtems_isr waveforms_isr_alternative( 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 ); | ||
void reset_waveforms( void ); | ||||
void send_waveform( ExtendedTMHeader_t *header, volatile int *waveform, unsigned int sid, spw_ioctl_pkt_send *spw_ioctl_send); | ||||
void init_waveform_picker_regs(); | ||||
paul@pc-solar1.lab-lpp.local
|
r21 | void set_data_shaping_parameters(unsigned char parameters); | ||
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 | ||