1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef __MESSAGE_H_
- #define __MESSAGE_H_
- #include "ListBox.h"
- #define SMS_FILE "n58_f1"
- #if 0
- #define SMS_START_ADDRESS 0x3E70000
- #else
- #define SMS_START_ADDRESS 0
- #endif
-
- #define SMS_TOTAL_NUM 50
- #define SMS_SIZE_PER 128
- #define SMS_SIGNAL_LEN (99)
-
- #pragma pack(push)
- #pragma pack(1)
-
- typedef struct{
- unsigned char resetFlag;
- unsigned int newAddr;
- }SUT_SMS_CONF_HEADER;
-
- typedef struct{
- unsigned char flag;
- unsigned char read;
- unsigned int recTime;
- unsigned short len;
- unsigned int upperAddr;
- unsigned int nextAddr;
- }SUT_SMS_INFO_HEADER;
- #define SMS_INFO_REAL_LEN sizeof(SUT_SMS_INFO_HEADER)-8
- #define SMS_INFO_DETAIL_OFFSET sizeof(SUT_SMS_INFO_HEADER)
-
- typedef struct{
- unsigned char haveUnRead:1;
- unsigned char smsUpdate:1;
- unsigned char poolFull:1;
-
- unsigned char smsEnable;
- unsigned short smsTotalNum;
- unsigned short smsUnReadNum;
- unsigned int newestAddr;
- unsigned int emptyAddr;
-
- unsigned int upToBeRead;
- unsigned int downToBeRead;
-
- unsigned int ReadAddr[LIST_ROW];
- }SUT_SMS_DEFINE;
-
- #define MESS_EDIT_BUFFER_LEN_MAX 92
- typedef struct{
- unsigned short x;
- unsigned char y;
- char buffer[MESS_EDIT_BUFFER_LEN_MAX+1];
- char buffer1[20];
- unsigned char item;
- unsigned char len;
- unsigned char xlen;
- unsigned char ylen;
- FONT_MODEENUM font
- }SUT_MESSAGE_EDIT;
- #pragma pack(pop)
- extern SUT_SMS_DEFINE sutSms;
- extern SUT_MESSAGE_EDIT sutMEdit;
- void uiShowMailBox(char update);
- void MessageResponse(void);
- void MessageReadShow(char Update);
- void MessageReadResponse(void);
- void SetMessageFile(const char *filename);
- void MessageEditInit(SUT_MESSAGE_EDIT *p,unsigned short x,unsigned char y,char *def,FONT_MODEENUM);
- unsigned short MessageEditShow(SUT_MESSAGE_EDIT *p,char *def);
- void MessageDeletShow(char update);
- void MessageDeletResponse(void);
- void SetGotNewMessage(void);
- void ShowMessageFlag(unsigned char show);
- void SetMessageConfi(void);
- void IncomingSMS(void);
- void DeleteSpecificSMS(void);
- unsigned char GetPagePreMessage(struct SUT_LIST_BOX *p,unsigned char firstRead, char up_down);
- void MessageOptionShow(char update);
- void MessageOptionResponse(void);
- void SMSHandle(void);
- #endif
|