FM
Dependencies: SimpleDMA eeprom mbed-rtos mbed FreescaleIAP
Fork of CDMS_CODE by
Diff: OBSRS.h
- Revision:
- 354:0da912441c7b
- Parent:
- 352:022c513aee03
diff -r e1803e801e20 -r 0da912441c7b OBSRS.h --- a/OBSRS.h Tue Feb 21 06:30:56 2017 +0000 +++ b/OBSRS.h Sat Mar 11 04:46:31 2017 +0000 @@ -90,21 +90,20 @@ ackl234new->TM_string[12] = crc & 0x00FF;\ } -void restart_adf(){ - /*go to phy off and and py on then phy TX again */ - gCS_ADF = 0; - spi.write(0xB1);/*phy_on */ - gCS_ADF = 1; - gCS_ADF = 0; - spi.write(0xB0);/*phy_off */ - gCS_ADF = 1; - gCS_ADF = 0; - spi.write(0xB1);/*phy_on */ - gCS_ADF = 1; - gCS_ADF = 0; - spi.write(0xB5);/*start transmission*/ - gCS_ADF = 1; - } +//void restart_adf(){ +// gCS_ADF = 0; +// spi.write(0xB1);/*phy_on */ +// gCS_ADF = 1; +// gCS_ADF = 0; +// spi.write(0xB0);/*phy_off */ +// gCS_ADF = 1; +// gCS_ADF = 0; +// spi.write(0xB1);/*phy_on */ +// gCS_ADF = 1; +// gCS_ADF = 0; +// spi.write(0xB5);/*start transmission*/ +// gCS_ADF = 1; +// } int diff_prev; void differential_encode(unsigned char* ptr, int length){ @@ -368,6 +367,7 @@ else if(enable_call_sign){ // sending call sign send_call_sign ; } + else if(enable_T_frame){ if(read_success == 0){ if(T_frames_sent < T_frames_in_segment){ @@ -485,7 +485,8 @@ counter_EoS=120;\ if(counter_EoS == 120){ // cout<<"EoS sent"<<ENDL; - restart_adf(); +// restart_adf(); + restart_adf_flag=true; enable_new_segment = true; counter_EoS = 0; // cout<<"new session"<<ENDL;