
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 84:b0f7a241ddf3, committed 2016-01-20
- Comitter:
- ee12b079
- Date:
- Wed Jan 20 14:55:47 2016 +0000
- Parent:
- 81:1a39e9e14771
- Child:
- 85:0c5c860f249e
- Commit message:
- To be checked
Changed in this revision
COM_SND_TM.h | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/COM_SND_TM.h Tue Jan 19 10:51:02 2016 +0000 +++ b/COM_SND_TM.h Wed Jan 20 14:55:47 2016 +0000 @@ -1,5 +1,35 @@ //void adf_not_SDcard(); +//~ #include"SDcard.h" +#define T_frames 30 +unsigned char buffer_112_counter,sent_tm = 0; +int disk_read(uint8_t *, uint64_t),j; +bool new_session = true; +bool last_buffer = false; +bool first_block = true; +bool last_block =false; +bool repeat_T_frame = false; +unsigned int counter_in_block=0,diff_prev=0; +unsigned char EOS_counter = 0; +unsigned char enable_T_frame = false; +uint64_t start_block_num ; // Read from TC +uint64_t end_block_num ; // Read from TC +uint64_t Number_of_blocks_to_read ; +uint64_t block_counter = 0; +unsigned char buffer_512[512], buffer_112[112],counter_in_S_frame=0,counter_in_SCH=0; +unsigned char make_EOS_flag = true; +bool reset = false; + + + + + + + + + + + #define S_FRAME_SIZE 48 #define ISR 40 #define TM_FRAME_SIZE 134 //in bytes @@ -19,6 +49,8 @@ }\ } +void send_tm_from_SD_card(){} + class SND_TM{ Base_tm * head_ptr;
--- a/main.cpp Tue Jan 19 10:51:02 2016 +0000 +++ b/main.cpp Wed Jan 20 14:55:47 2016 +0000 @@ -9,10 +9,10 @@ #include "crc.h" #include "COM_SND_TM_functions.h" #include "COM_SND_TM.h" -#include "SDCread.h" +//#include "SDCread.h" #include "adf.h" -#include "Compression.h" -#include "SDC_init.h" +//#include "Compression.h" +//#include "SDC_init.h" #include "COM_RCV_TC.h" #include "COM_MNG_TMTC.h" #include "COM_POWER_ON_TX.h"