##// END OF EJS Templates
Last commit before release 0-13...
Last commit before release 0-13 Waveform transmission in all modes

File last commit:

r35:ca106d3b5c2f default
r35:ca106d3b5c2f default
Show More
tc_handler.h
87 lines | 3.4 KiB | text/x-c | CLexer
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 #ifndef TC_HANDLER_H_INCLUDED
#define TC_HANDLER_H_INCLUDED
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18
#include <rtems.h>
#include <bsp.h> // for the LEON_Unmask_interrupt function
#include <stdio.h>
#include <unistd.h> // for the read call
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 #include <sys/ioctl.h> // for the ioctl call
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18 #include <ccsds_types.h>
#include <grspw.h>
paul
packet emission task added...
r33
#include "fsw_init.h"
#include "fsw_misc.h"
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18
// MODE PARAMETERS
extern struct param_sbm1_str param_sbm1;
extern struct param_sbm2_str param_sbm2;
extern time_management_regs_t *time_management_regs;
extern waveform_picker_regs_t *waveform_picker_regs;
extern gptimer_regs_t *gptimer_regs;
//****
paul@pc-solar1.lab-lpp.local
Minor updates to use the time management VHDL module
r12 // ISR
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18 rtems_isr commutation_isr1( rtems_vector_number vector );
rtems_isr commutation_isr2( rtems_vector_number vector );
//**********************
// GENERAL USE FUNCTIONS
paul
packet emission task added...
r33 unsigned int Crc_opt( unsigned char D, unsigned int Chk);
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18 void initLookUpTableForCRC( void );
void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData);
paul
packet emission task added...
r33 void updateLFRCurrentMode();
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18
//*********************
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 // ACCEPTANCE FUNCTIONS
paul
Last commit before release 0-13...
r35 int TC_acceptance(ccsdsTelecommandPacket_t *TC, unsigned int TC_LEN_RCV, rtems_id queue_id);
paul@pc-solar1.lab-lpp.local
All modes implemented for the waveforms...
r23 unsigned char TC_parser(ccsdsTelecommandPacket_t * TMPacket, unsigned int TC_LEN_RCV);
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18
unsigned char TM_build_header( enum TM_TYPE tm_type, unsigned int packetLength,
paul@pc-solar1.lab-lpp.local
All modes implemented for the waveforms...
r23 TMHeader_t *TMHeader, unsigned char tc_sid);
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18 //***********
// RTEMS TASK
rtems_task recv_task( rtems_task_argument unused );
rtems_task actn_task( rtems_task_argument unused );
rtems_task dumb_task( rtems_task_argument unused );
//***********
// TC ACTIONS
paul
Last commit before release 0-13...
r35 int action_reset(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
paul
packet emission task added...
r33 int action_load_common_par(ccsdsTelecommandPacket_t *TC);
paul
Last commit before release 0-13...
r35 int action_load_normal_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int action_load_burst_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int action_load_sbm1_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int action_load_sbm2_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
paul
packet emission task added...
r33 int action_dump_par(ccsdsTelecommandPacket_t *TC);
paul
Last commit before release 0-13...
r35 int action_enter_mode(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int action_update_info(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int action_enable_calibration(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int action_disable_calibration(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
paul
packet emission task added...
r33 int action_update_time(ccsdsTelecommandPacket_t *TC);
paul@pc-solar1.lab-lpp.local
All modes implemented for the waveforms...
r23 // mode transition
int transition_validation(unsigned char requestedMode);
paul@pc-solar1.lab-lpp.local
Slight changes on the flight software
r20 int stop_current_mode();
paul@pc-solar1.lab-lpp.local
All modes implemented for the waveforms...
r23 int enter_mode(unsigned char mode, ccsdsTelecommandPacket_t *TC);
paul
packet emission task added...
r33 int enter_standby_mode();
int enter_normal_mode();
int enter_burst_mode();
int enter_sbm1_mode();
int enter_sbm2_mode();
paul
sy_lfr_n_swf_p implemented...
r32 int restart_science_tasks();
int suspend_science_tasks();
paul
packet emission task added...
r33
paul@pc-solar1.lab-lpp.local
All modes implemented for the waveforms...
r23 // other functions
paul@pc-solar1.lab-lpp.local
Current version with modes NORMAL and SBM1 operational
r21 void update_last_TC_exe(ccsdsTelecommandPacket_t *TC);
void update_last_TC_rej(ccsdsTelecommandPacket_t *TC);
paul
Last commit before release 0-13...
r35 void close_action(ccsdsTelecommandPacket_t *TC, int result, rtems_id queue_id);
int send_tm_lfr_tc_exe_success(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int send_tm_lfr_tc_exe_not_executable(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int send_tm_lfr_tc_exe_not_implemented(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
int send_tm_lfr_tc_exe_error(ccsdsTelecommandPacket_t *TC, rtems_id queue_id);
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
#endif // TC_HANDLER_H_INCLUDED
paul@pc-solar1.lab-lpp.local
Updates of the ICD taken into account...
r18