msg.h
来自「Zigbee模块的详细电路原理图和C代码.rar」· C头文件 代码 · 共 55 行
H
55 行
/*******************************************************************************
UBEC (Uniband Electronic Corp.)
Project: U-NET01, Ubiquitous network platform
File: msg.h
Version: 0.1.1
Usage: MSG Systen Define
Platform: U-NET01 DK with IAR 8051 C compiler
Reference:
Silicon Laboratories: C8051F124
UBEC: UZ2400
Note :
Copyright (C) 2007 Uniband Electronic Corporation, All rights reserved
********************************************************************************/
#define MSG_MAX_QUEUE_SIZE 15
/*******************************************************************************
MSG Parameters
********************************************************************************/
struct _message_buffer_{
BOOL DataFlag; // if the entry exist data?
UINT8 Length;
UINT8 MsgType;
void *MsgPtr;
}__attribute__ ((packed));
typedef struct _message_buffer_ MSG_BUFF;
struct _message_queue_{
UINT8 QueueReadPoint;
UINT8 QueueWritePoint;
UINT8 QueueDataCount;
MSG_BUFF Msg[MSG_MAX_QUEUE_SIZE];
}__attribute__ ((packed));
typedef struct _message_queue_ MSG_QUEUE;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?