speed

Dependencies:   mbed

Fork of telecommand_speed by saikiran cholleti

Files at this revision

API Documentation at this revision

Comitter:
cholletisaik777
Date:
Thu May 21 07:13:53 2015 +0000
Commit message:
speed

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 104686445670 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu May 21 07:13:53 2015 +0000
@@ -0,0 +1,78 @@
+                  switch(st){
+                        uint8_t los;
+                        uint8_t tcp[los*124+11]; 
+                        st=(tcp[2]&0xF0)>>4;
+                        sst=(tcp[2]&0x0F);
+                        case 6:printf("memory management system\n");
+                               switch(sst){
+                                    case 1:printf("READ FROM MEMORY\n");
+                                           if(tcp[3]==2){
+                                            printf("RD_L_FLASH1\n");
+                                           }
+                                           else if ((tcp[3]&0xF0)==0x10){
+                                            printf("RD_L_FLASH2\n");
+                                           }
+                                           else if (tcp[3]==0x22){
+                                            printf("RD_S_FLASH1\n");
+                                           }
+                                           else if ((tcp[3]&0xF0)==0x30){
+                                            printf("RD_S_FLASH2\n");
+                                           }
+                                           else if (tcp[3]==0x42){
+                                            printf("RD_L_RAM1\n");
+                                           }
+                                           else if ((tcp[3]&0xF0)==0x50){
+                                            printf("RD_L_RAM2\n");
+                                           }
+                                           else if (tcp[3]==0x62){
+                                            printf("RD_S_RAM\n");
+                                           }
+                                           else if ((tcp[3]&0xF0)==0x70){
+                                            printf("RD_S_RAM2\n");
+                                           }
+                                    break;
+                                    case 5:printf("WRITE ON MEMORY\n");
+                                           switch(tcp[3]){
+                                                case 0:printf("WR_S_FLASH\n");
+                                                break;
+                                                case 1:printf("WR_S_RAM\n");
+                                                break;
+                                                case 16:printf("WR_L_FLASH\n");
+                                                break;
+                                                case 17:printf("WR_L_RAM\n");
+                                                break;
+                                           }
+                                    break;
+                                    case 6:printf("WRITE FROM ONE MEMORY TO ANOTHER\n");
+                                           switch(tcp[3]){
+                                                case 0:printf("WR_S_FLASH\n");
+                                                break;
+                                                case 1:printf("WR_S_RAM\n");
+                                                break;
+                                                case 16:printf("WR_L_FLASH\n");
+                                                break;
+                                                case 17:printf("WR_L_RAM\n");
+                                                break;
+                                           }
+                                    break;
+                                    case 9:printf("SEND CRC OF FLASH MEMORY\n");
+                                           if(tcp[3]==2){
+                                            printf("GET_FLASH_CRC\n");
+                                           }
+                                    break;
+                                }
+                        break;
+                        case 8:printf("FUNCTION MANAGEMENT SERVICE\n");
+                               if(sst==1){
+                                if((tcp[3]&0xF0)==0x00){
+                                    printf("RUN_PRCS\n");
+                                    switch(int(tcp[3])){
+                                        case 1:printf("P_SPEED_INIT\n");
+                                        break;
+                                    }
+                                }
+                               }
+                        break;
+                    }
+            break;
+        }
\ No newline at end of file
diff -r 000000000000 -r 104686445670 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu May 21 07:13:53 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557
\ No newline at end of file