# HG changeset patch # User paul # Date 2017-01-13 13:34:31 # Node ID d4a9a4d748d56d86427bfe03a6777fae4cfe3ae1 # Parent 6bab694410c69700e3455ffba21ce58dbb4da870 SPW_TXHSIZE and CCSDS_TC_PKT_MAX_SIZE modified to have a working configuration diff --git a/ccsds_types.h b/ccsds_types.h --- a/ccsds_types.h +++ b/ccsds_types.h @@ -9,7 +9,7 @@ #define SPW_RXSIZE 228 #define SPW_TXDSIZE 4096 -#define SPW_TXHSIZE 34 +#define SPW_TXHSIZE 64 #define BITS_PID_0 0x07 #define BITS_PID_1 0x0f @@ -21,7 +21,7 @@ #define CCSDS_TELEMETRY_HEADER_LENGTH (16+4) #define CCSDS_TM_PKT_MAX_SIZE 4412 #define CCSDS_TELECOMMAND_HEADER_LENGTH (10+4) -#define CCSDS_TC_PKT_MAX_SIZE (228+3) // => 3 is for Prot ID, Reserved and User App bytes +#define CCSDS_TC_PKT_MAX_SIZE 232 // (228+3) with 3 for Prot ID, Reserved and User App bytes, SHALL BE A MULTIPLE OF 4 #define CCSDS_TC_PKT_MIN_SIZE 16 #define CCSDS_PROCESS_ID 76 #define CCSDS_PACKET_CATEGORY 12