##// END OF EJS Templates
R3 updates. TC handlers added for the new telecommands:...
R3 updates. TC handlers added for the new telecommands: TC_LFR_LOAD_KCOEFFICIENTS TC_LFR_DUMP_KCOEFFICIENTD TC_LFR_LOAD_FBINS_MASK

File last commit:

r112:5b5da8d2c053 VHDLib206
r192:a0b224a4fc7c VHDL_0_1_28
Show More
tc_acceptance.h
25 lines | 942 B | text/x-c | CLexer
#ifndef TC_ACCEPTANCE_H_INCLUDED
#define TC_ACCEPTANCE_H_INCLUDED
//#include "tm_lfr_tc_exe.h"
#include "fsw_params.h"
//**********************
// GENERAL USE FUNCTIONS
unsigned int Crc_opt( unsigned char D, unsigned int Chk);
void initLookUpTableForCRC( void );
void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData);
//*********************
// ACCEPTANCE FUNCTIONS
int tc_parser( ccsdsTelecommandPacket_t * TCPacket, unsigned int estimatedPacketLength, unsigned char *computed_CRC );
int tc_check_type( unsigned char packetType );
int tc_check_type_subtype( unsigned char packetType, unsigned char packetSubType );
int tc_check_sid( unsigned char sid );
int tc_check_length( unsigned char packetType, unsigned int length );
int tc_check_crc(ccsdsTelecommandPacket_t * TCPacket, unsigned int length , unsigned char *computed_CRC);
#endif // TC_ACCEPTANCE_H_INCLUDED