##// END OF EJS Templates
First implementation of the TC checker...
First implementation of the TC checker The FSW check the TC for acceptance and emit the following TM packets => TM_LFR_TC_EXE_CORRUPTED => TM_LFR_TC_EXE_NOT_IMPLEMENTED

File last commit:

r2:a683a5ce5797 default
r2:a683a5ce5797 default
Show More
TC_handler.h
22 lines | 942 B | text/x-c | CLexer
#ifndef TC_HANDLER_H_INCLUDED
#define TC_HANDLER_H_INCLUDED
#include <ccsds_types.h>
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;
ccsdsTelemetryPacket_t currentTM;
ccsdsTelecommandPacket_t currentTC;
unsigned char currentTC_processedFlag;
unsigned int lookUpTableForCRC[256];
void InitLookUpTableForCRC();
void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData);
unsigned char TM_checker(ccsdsTelecommandPacket_t * TMPacket);
unsigned char TM_acceptance_generator(ccsdsTelecommandPacket_t * TCPacket, unsigned int code, ccsdsTelemetryPacket_t * TMPacket);
unsigned char TM_not_implemented_generator(ccsdsTelecommandPacket_t * TCPacket, ccsdsTelemetryPacket_t * TMPacket);
#endif // TC_HANDLER_H_INCLUDED