![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
speed
Fork of telecommand_speed by
main.cpp
- Committer:
- cholletisaik777
- Date:
- 2015-05-21
- Revision:
- 0:104686445670
File content as of revision 0:104686445670:
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; }