##// END OF EJS Templates
Several TC actions added...
Several TC actions added TM answers updated STANDBY mode is the default mode NORMAL mode can now be activated via the ENTER_MODE TC

File last commit:

r11:84136ad726a3 default
r11:84136ad726a3 default
Show More
tc_handler.h
63 lines | 2.1 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
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 );
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
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