1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef __MANAGEMESSAGE_H
- #define __MANAGEMESSAGE_H
- /*****************************************************************/
- /***************************
- 100ì??ìD?£???ì?256×??ú£?ò?1225KB
- ***************************/
- //#define STORAGE_MARK 0x8abcdef8
- //#define MESAGE_DATA_ADDR 0x00200000 //25kB 200000~206400 ???têy?Yμ?ê×μ??· 1FFFFFê????t?μí3μ?
- //#define MESAGE_DATA_ADDR_END 0x00206400
- #define MESAGE_COUNT_MAX 100 //???t×?′óêyá?
- #define MESAGE_NAME_LEN_MAX 20 //±£′?ò?ì?D??¢í·μ?×?′ó3¤?è£?×¢òa???2ê?0?áê? êμ?ê??3??????úMESAGE_NAME_LEN_MAX-1
- #define MESAGE_ALL_DATA_LEN_MAX (MESAGE_DATA_ADDR_END-MESAGE_DATA_ADDR+1) //???¢×?′ó3¤?è?£
- typedef struct SUT_MESAGE_INFO
- {
- char MESAGEName[MESAGE_NAME_LEN_MAX]; //?ìD?áD±í??ê?
- char MESAGEMD5[16];
- unsigned long MESAGELen; //?ìD?3¤?è£?2?3?1y256
- unsigned long MESAGEAddr; //′?′¢μ??·£??ú?÷òyóD1??μ
- }__attribute__((packed)) SUT_MESAGE_INFO;//20+16+4+4=44
- typedef struct SUT_MESAGE_LIST
- {
- unsigned long Mark; //′?′¢±ê????
- unsigned char type; //?ìD?ààDí£o??쨣?ê??ú
- unsigned char MesageIndex;//?ìD??÷òyí·
- unsigned long MESAGECount;//???¢??êy
- SUT_MESAGE_INFO MESAGEInfo[MESAGE_COUNT_MAX];//???¢D??¢áD±í
- }__attribute__((packed)) SUT_MESAGE_LIST;
- extern SUT_MESAGE_LIST g_sutMesageList;
- /*****************************************************************/
- #endif
|