working version
Dependencies: mbed mbed-rtos SimpleDMA FreescaleIAP eeprom
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: COM_MNG_TMTC.h
- Revision:
- 314:9f1b654a0b54
- Parent:
- 295:699801854b71
- Child:
- 315:f9a30c8cbe96
--- a/COM_MNG_TMTC.h Tue Dec 06 09:35:26 2016 +0000 +++ b/COM_MNG_TMTC.h Wed Dec 07 06:38:22 2016 +0000 @@ -433,7 +433,12 @@ tm_ptr->TM_string[1] = GETpacket_seq_count(tc_ptr); tm_ptr->TM_string[2] = 0xA0; tm_ptr->TM_string[3] = 0x00; //spare bits + + if(mid == 0x0000) FCTN_CDMS_RD_L_RAM(tm_ptr); + if(mid == 0x0001) + FCTN_CDMS_MAX_MIN(tm_ptr); + crc16 = crc16_gen(tm_ptr->TM_string,132); tm_ptr->TM_string[132] = (uint8_t)((crc16&0xFF00)>>8); tm_ptr->TM_string[133] = (uint8_t)(crc16&0x00FF);