##// END OF EJS Templates
automatic reconnexion of the spacewire link...
automatic reconnexion of the spacewire link automatic restart of the housekeeping generation rmap destination key harcoded in VHDL is 2

File last commit:

r15:d75852f5b698 default
r17:3a73d9962d4a default
Show More
tc_handler.h
70 lines | 2.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
#include <rtems.h>
paul@pc-solar1.lab-lpp.local
Several TC actions added...
r11 #include <bsp.h> // for the LEON_Unmask_interrupt function
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 #include <stdio.h>
#include <unistd.h> // for the read call
#include <sys/ioctl.h> // for the ioctl call
#include <ccsds_types.h>
#include <grspw.h>
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 #include <fsw_init.h>
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
extern int fdSPW;
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 extern rtems_name misc_name[ ];
extern rtems_name misc_id[ ];
admin@pc-p-leroy3.LAB-LPP.LOCAL
Draft implementation of the TC_LFR_LOAD_NORMAL_PAR
r10 extern rtems_id Task_id[ ]; // array of task ids
paul@pc-solar1.lab-lpp.local
Several TC actions added...
r11 // MODE PARAMETERS
admin@pc-p-leroy3.LAB-LPP.LOCAL
Draft implementation of the TC_LFR_LOAD_NORMAL_PAR
r10 extern struct param_norm_str param_norm;
paul@pc-solar1.lab-lpp.local
Several TC actions added...
r11 extern struct param_sbm1_str param_sbm1;
extern struct param_sbm2_str param_sbm2;
extern time_management_regs_t *time_management_regs;
extern unsigned char param_common[];
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
unsigned char currentTC_LEN_RCV[2]; // SHALL be equal to the current TC packet estimated packet length field
unsigned char currentTC_COMPUTED_CRC[2];
unsigned int currentTC_LEN_RCV_AsUnsignedInt;
unsigned int currentTM_length;
unsigned char currentTC_processedFlag;
paul@pc-solar1.lab-lpp.local
Minor updates to use the time management VHDL module
r12 //****
// ISR
rtems_isr commutation_isr1( rtems_vector_number vector );
rtems_isr commutation_isr2( rtems_vector_number vector );
paul@pc-solar1.lab-lpp.local
Minor updates
r7 //**********************
// GENERAL USE FUNCTIONS
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 unsigned int lookUpTableForCRC[256];
paul@pc-solar1.lab-lpp.local
Several TC actions added...
r11 void initLookUpTableForCRC();
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData);
paul@pc-solar1.lab-lpp.local
Minor updates
r7 //*********************
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 // ACCEPTANCE FUNCTIONS
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 unsigned char acceptTM(ccsdsTelecommandPacket_t * TMPacket, unsigned int tc_len_recv);
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
admin@pc-p-leroy3.LAB-LPP.LOCAL
Draft implementation of the TC_LFR_LOAD_NORMAL_PAR
r10 unsigned char TM_build_header( enum TM_TYPE tm_type, unsigned int packetLength,
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 unsigned int coarseTime, unsigned int fineTime, TMHeader_t *TMHeader);
unsigned char TM_build_data(ccsdsTelecommandPacket_t *TC, char* data, unsigned int SID, unsigned char *computed_CRC);
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 int TC_checker(ccsdsTelecommandPacket_t *TC, unsigned int TC_LEN_RCV);
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
paul@pc-solar1.lab-lpp.local
Minor updates
r7 //***********
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5 // RTEMS TASK
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 rtems_task recv_task( rtems_task_argument unused );
rtems_task actn_task( rtems_task_argument unused );
paul@pc-solar1.lab-lpp.local
Minor updates to use the time management VHDL module
r12 rtems_task dumb_task( rtems_task_argument unused );
paul@pc-solar1.lab-lpp.local
Message queue implemented for valid TC processing...
r9 int create_message_queue();
//***********
// TC ACTIONS
admin@pc-p-leroy3.LAB-LPP.LOCAL
Draft implementation of the TC_LFR_LOAD_NORMAL_PAR
r10 int action_default(ccsdsTelecommandPacket_t *TC);
paul@pc-solar1.lab-lpp.local
FSW modified to have correct answers to TC_LFR_DUMP_PAR
r15 int action_default_alt(ccsdsTelecommandPacket_t *TC);
paul@pc-solar1.lab-lpp.local
Several TC actions added...
r11 int send_tm_lfr_tc_exe_success(ccsdsTelecommandPacket_t *TC);
//
admin@pc-p-leroy3.LAB-LPP.LOCAL
Draft implementation of the TC_LFR_LOAD_NORMAL_PAR
r10 int action_load_norm(ccsdsTelecommandPacket_t *TC);
int action_enter(ccsdsTelecommandPacket_t *TC);
paul@pc-solar1.lab-lpp.local
Several TC actions added...
r11 int action_updt_time(ccsdsTelecommandPacket_t *TC);
paul@pc-solar1.lab-lpp.local
Naming convention changed...
r5
#endif // TC_HANDLER_H_INCLUDED
admin@pc-p-leroy3.LAB-LPP.LOCAL
Draft implementation of the TC_LFR_LOAD_NORMAL_PAR
r10