Skip to content

Commit

Permalink
[#314] Remove Magic Numbers, Update Defines
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown6 committed Sep 20, 2024
1 parent ef050ad commit efda557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/crypto_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
#define TC_SN_SIZE 2
#define TC_SN_WINDOW 10 /* +/- value */
#define TC_FRAME_DATA_SIZE 1019 /* bytes */ // 1024 - 5byte header
#define TC_CADU_BYTES 4

// CCSDS PUS Defines
#define TLV_DATA_SIZE 494 /* bytes */
Expand All @@ -181,7 +182,7 @@
#define TM_CADU_HAS_ASM 1 // Skip 0x1acffc1d at beginning of each frame
// TM CADU based on ASM, currently only holds non-turbo ASM
#ifdef TM_CADU_HAS_ASM
#define TM_CADU_SIZE (TM_FRAME_DATA_SIZE + 6)
#define TM_CADU_SIZE (TM_FRAME_DATA_SIZE + TC_CADU_BYTES)
#else
#define TM_CADU_SIZE TM_FRAME_DATA_SIZE
#endif
Expand Down

0 comments on commit efda557

Please sign in to comment.