Seeker of Truth ,
/
cdms_cupcake2
telecommand working with junk
Fork of cdms_functions by
Revision 2:4f10e81030c7, committed 2014-12-24
- Comitter:
- raizel_varun
- Date:
- Wed Dec 24 12:01:47 2014 +0000
- Parent:
- 1:4cd53e695c17
- Commit message:
- tc_sd data
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Dec 20 06:38:45 2014 +0000 +++ b/main.cpp Wed Dec 24 12:01:47 2014 +0000 @@ -49,7 +49,7 @@ //while(1){ //interrupt = 0; // if(pc.getc()=='z'){ - wait(0.5); + //wait(0.5); interrupt = 1; printf("\nMaster executed\n"); @@ -143,7 +143,7 @@ { Thread::signal_wait(0x1); FUNC_I2C_MASTER_FSLAVE(data_receive,25); - void TC_DECODE(); + TC_DECODE(data_receive); /*i2c_data * i2c_data_r = i2c_data_receive.alloc(); strcpy(i2c_data_r->data , data_receive); @@ -165,39 +165,36 @@ switch(command) { - case '0': + + + case '0'://void FUNC_TC_ACS_DATAACQ() + { + FUNC_MASTER_WRITE ( '0' ) ; + } + break; + case '1'://void FUNC_TC_ACS_OFF() { FUNC_MASTER_WRITE ( '1' ) ; - break; } - - case '1': - { + } + break; + case '2'://void FUNC_TC_ACS_RESET() + { FUNC_MASTER_WRITE ( '2' ) ; } break; - case '2': + case '3'://FUNC_TC_BEA_CHANGEINTTIME() { FUNC_MASTER_WRITE ( '3' ) ; - } - break; - case '3': - { - FUNC_MASTER_WRITE ( '4' ) ; - } - break; - case '4': - { - FUNC_MASTER_WRITE ( '5' ) ; } break; - case '5': + case '4'://void FUNC_TC_BEA_RESET() { - FUNC_MASTER_WRITE ( '6' ) ; + FUNC_MASTER_WRITE ( '4' ) ; } break; - case 6: + case 5://void FUNC_TC_CDMS_RESET() break; - case 7: + case 6://void FUNC_TC_CDMS_TRANSOFF() break; } }