Message.h 639 B

1234567891011121314151617181920212223242526
  1. #ifndef __MESSAGE_H
  2. #define __MESSAGE_H
  3. /*****************************************************************/
  4. #include <stm32f10x.h>
  5. #include "includes.h"
  6. #define SMS_SIGNAL_LEN (400+4)//因为要用来播报,最多40个中文,每个中文4个字节 90 //每条信息内容长度
  7. typedef struct SUT_MESS
  8. {
  9. unsigned char Update;
  10. // unsigned char forcePullGroupOn;//强拉动作开启
  11. // unsigned char startCntFlag;
  12. // unsigned char skipCnt;
  13. unsigned char GBKMess1[SMS_SIGNAL_LEN+1];//最后一个用来补作结尾
  14. unsigned short len;
  15. }SUT_MESS;
  16. extern SUT_MESS sutMess;
  17. void SetGotNewMessage(void);
  18. void SMSInit(void);
  19. void SMSHandle(void);
  20. #endif