11th feb i2c checking chaitu's code
Dependencies: SimpleDMA eeprom mbed-rtos mbed
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: COM_MNG_TMTC.h
- Revision:
- 323:1f3c756e7b38
- Parent:
- 321:42bdefc37270
- Child:
- 325:d375c11595be
--- a/COM_MNG_TMTC.h Sat Dec 10 12:32:27 2016 +0000 +++ b/COM_MNG_TMTC.h Sat Dec 10 12:41:58 2016 +0000 @@ -436,7 +436,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);