
CDMS code for testing sbc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_SND_TM.h
- Revision:
- 269:72529b247333
- Parent:
- 203:424308159a56
--- a/COM_SND_TM.h Wed Jul 20 09:58:59 2016 +0000 +++ b/COM_SND_TM.h Thu Jul 21 13:18:02 2016 +0000 @@ -1,35 +1,5 @@ -//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; */ - - - - - - - bool sent_tmfrom_SDcard; - - - +bool restart_adf_flag=false; #define S_FRAME_SIZE 48 #define ISR 40 #define TM_FRAME_SIZE 134 //in bytes @@ -50,8 +20,6 @@ }\ } -//void send_tm_from_SD_card(){} - class SND_TM{ Base_tm * head_ptr; @@ -274,8 +242,6 @@ // public: - - bool reset_adf; SND_TM(){ MAX_SEGMENT = (MAX_ADF_LEN-EOS_SIZE)/( S_FRAME_SIZE + ISR*T_FRAME_SIZE); //(max length - eos size)/(sframe length + tFrameLength*ISR) @@ -324,7 +290,7 @@ data_f = false; FCCH80_f = false; transmit_data_f = false; - reset_adf = false; + restart_adf_flag = false; *last_buffer = false; } @@ -429,7 +395,7 @@ } if(SEGMENT_NO == 1) segment_r = 0; else segment_r = 1; TOTAL_SEGMENT_NO -= SEGMENT_NO; - reset_adf = true;//what does this do?? + restart_adf_flag = true;//what does this do?? Sframe = true; junk_f = true; } @@ -439,7 +405,7 @@ } } differential_encode(transmit,112); - if(reset_adf == true){ + if(restart_adf_flag == true){ diff_prev = 0; junk_f = false; }