#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