Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Diff: FMS_all.h
- Revision:
- 322:7d906d34aaff
- Parent:
- 303:b49b486a7107
- Child:
- 328:2242ebc71be8
diff -r 42bdefc37270 -r 7d906d34aaff FMS_all.h --- a/FMS_all.h Sat Dec 10 11:49:13 2016 +0000 +++ b/FMS_all.h Sat Dec 10 12:32:27 2016 +0000 @@ -343,4 +343,26 @@ //tm_pointer->TM_string[i] = 0; tm_pointer->TM_string[i+4] = CDMS_HEALTH_DATA[i]; } +} + +void FCTN_CDMS_MAX_MIN(Base_tm *tm_pointer) +{ + for(int i=0;i<16;i++) + { + //tm_pointer->TM_string[i] = 0; + tm_pointer->TM_string[i+7] = (uint8_t)min_max_data.temp_max[i]; + } + + for(int i=0;i<16;i++) + { + //tm_pointer->TM_string[i] = 0; + tm_pointer->TM_string[i+26] = (uint8_t)min_max_data.temp_min[i]; + } + + tm_pointer->TM_string[47] = GPIO_STATUS &0xFF00; + tm_pointer->TM_string[48] |= (GPIO_STATUS<<11) & 0xF000; + + TIME_LATEST_RTC= FCTN_CDMS_RD_RTC() >> 7; + for(int i = 0; i<4; i++) + tm_pointer->TM_string[48+i] = TIME_LATEST_RTC >> (3-i)*8; } \ No newline at end of file