Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: Compression.h
- Revision:
- 191:0636c8391407
- Parent:
- 174:44a6d7c7674c
- Child:
- 193:f76b475d7807
--- a/Compression.h Sun Jun 26 12:46:51 2016 +0000
+++ b/Compression.h Tue Jun 28 08:22:08 2016 +0000
@@ -285,7 +285,7 @@
space = adjust(1,0,pointer,8);
space = adjust(4,3,pointer,space);
FSC_science = FCTN_SD_MNGR(3);
- //gPC.printf("SID = 3, FSC = %02X\r\n", FSC_science);
+ gPC.printf("SID = 3, FSC = %02X\r\n", FSC_science);
frames[id][1] = (FSC_science>>24)&0xff;
frames[id][2] = (FSC_science>>16)&0xff;
frames[id][3] = (FSC_science>>8)&0xff;
@@ -300,7 +300,7 @@
space = adjust(4,2,pointer,space);
FSC_science = FCTN_SD_MNGR(2);
- // gPC.printf("SID = 2, FSC = %02X\r\n", FSC_science);
+ gPC.printf("SID = 2, FSC = %02X\r\n", FSC_science);
frames[id][1] = (FSC_science>>16)&0xff;
frames[id][2] = (FSC_science>>8)&0xff;
frames[id][3] = FSC_science&0xff;
@@ -308,13 +308,13 @@
temp_crc = crc16_gen(frames[id],132);
frames[id][132] = temp_crc>>8;
frames[id][133] = temp_crc & 0xff;
- // if(test_cntr++ == 0){
- //gPC.puts("frame start\r\n");
-// for(int i = 0; i<134; i++){
-// gPC.printf("%02X",frames[id][i]);
-// }
- // gPC.puts("frame ends\r\n");
-// }
+ if(test_cntr++ == 0){
+ gPC.puts("frame start\r\n");
+ for(int i = 0; i<134; i++){
+ gPC.printf("%02X",frames[id][i]);
+ }
+ gPC.puts("frame ends\r\n");
+ }
exor(frames[id]);
@@ -584,7 +584,7 @@
space = adjust(1,0,pointer,8);
space = adjust(4,1,pointer,space);
FSC_science = FCTN_SD_MNGR(1);
- //gPC.printf("SID = 1, FSC = %02X\r\n", FSC_science);
+ gPC.printf("SID = 1, FSC = %02X\r\n", FSC_science);
frames[id][1] = (FSC_science>>16)&0xff;
frames[id][2] = (FSC_science>>8)&0xff;
frames[id][3] = (FSC_science)&0xff;
@@ -594,6 +594,11 @@
temp_crc = crc16_gen(frames[id],132);
frames[id][132] = temp_crc>>8;
frames[id][133] = temp_crc & 0xff;
+ gPC.puts("frame start\r\n");
+ for(int i = 0; i<134; i++){
+ gPC.printf("%02X",frames[id][i]);
+ }
+ gPC.puts("frame ends\r\n");
exor(frames[id]);
convolution(frames[id]);
interleave(TM_convoluted_data,TM_interleave_data);
