Skip to content

Commit 74532eb

Browse files
authored
Merge pull request #329 from nasa/314-update-crypto-config
314 update crypto config
2 parents 53491a6 + 5ac6884 commit 74532eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/crypto_config.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@
158158
#define TC_SH_SIZE 8 /* bits */
159159
#define TC_SN_SIZE 2
160160
#define TC_SN_WINDOW 10 /* +/- value */
161-
#define TC_FRAME_DATA_SIZE 1740 /* bytes */
161+
#define TC_FRAME_DATA_SIZE 1019 /* bytes */ // 1024 - 5byte header
162+
#define TC_CADU_ASM_SIZE 4
162163

163164
// CCSDS PUS Defines
164165
#define TLV_DATA_SIZE 494 /* bytes */
@@ -181,7 +182,7 @@
181182
#define TM_CADU_HAS_ASM 1 // Skip 0x1acffc1d at beginning of each frame
182183
// TM CADU based on ASM, currently only holds non-turbo ASM
183184
#ifdef TM_CADU_HAS_ASM
184-
#define TM_CADU_SIZE (TM_FRAME_DATA_SIZE + 6)
185+
#define TM_CADU_SIZE (TM_FRAME_DATA_SIZE + TC_CADU_ASM_SIZE)
185186
#else
186187
#define TM_CADU_SIZE TM_FRAME_DATA_SIZE
187188
#endif

0 commit comments

Comments
 (0)