ManageMessage.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __MANAGEMESSAGE_H
  2. #define __MANAGEMESSAGE_H
  3. /*****************************************************************/
  4. /***************************
  5. 100ì??ìD?£???ì?256×??ú£?ò?1225KB
  6. ***************************/
  7. //#define STORAGE_MARK 0x8abcdef8
  8. //#define MESAGE_DATA_ADDR 0x00200000 //25kB 200000~206400 ???têy?Yμ?ê×μ??· 1FFFFFê????t?μí3μ?
  9. //#define MESAGE_DATA_ADDR_END 0x00206400
  10. #define MESAGE_COUNT_MAX 100 //???t×?′óêyá?
  11. #define MESAGE_NAME_LEN_MAX 20 //±£′?ò?ì?D??¢í·μ?×?′ó3¤?è£?×¢òa???2ê?0?áê? êμ?ê??3??????úMESAGE_NAME_LEN_MAX-1
  12. #define MESAGE_ALL_DATA_LEN_MAX (MESAGE_DATA_ADDR_END-MESAGE_DATA_ADDR+1) //???¢×?′ó3¤?è?£
  13. typedef struct SUT_MESAGE_INFO
  14. {
  15. char MESAGEName[MESAGE_NAME_LEN_MAX]; //?ìD?áD±í??ê?
  16. char MESAGEMD5[16];
  17. unsigned long MESAGELen; //?ìD?3¤?è£?2?3?1y256
  18. unsigned long MESAGEAddr; //′?′¢μ??·£??ú?÷òyóD1??μ
  19. }__attribute__((packed)) SUT_MESAGE_INFO;//20+16+4+4=44
  20. typedef struct SUT_MESAGE_LIST
  21. {
  22. unsigned long Mark; //′?′¢±ê????
  23. unsigned char type; //?ìD?ààDí£o??쨣?ê??ú
  24. unsigned char MesageIndex;//?ìD??÷òyí·
  25. unsigned long MESAGECount;//???¢??êy
  26. SUT_MESAGE_INFO MESAGEInfo[MESAGE_COUNT_MAX];//???¢D??¢áD±í
  27. }__attribute__((packed)) SUT_MESAGE_LIST;
  28. extern SUT_MESAGE_LIST g_sutMesageList;
  29. /*****************************************************************/
  30. #endif