⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hl_type.h

📁 是zmac的协议的全部完整的解析.代码例子很全
💻 H
字号:
/*****************************************************************************/
/**																			**/
/**		命名规则:	变量名= xName ;	其中									**/	
/**							x = c	(signed char)							**/
/**							x = uc	(unsigned char)							**/
/**							x = i	(signed short int:	16bit)				**/
/**							x = ui	(unsigned short int:16bit)				**/
/**							x = l	(signed long:		32bit)				**/
/**							x = ul	(unsigned long:		32bit)				**/
/**							x = f	(float)									**/
/**							x = d	(double)								**/
/**							x = b	(boolean)								**/
/**							x = k	(const)									**/
/**							x = e	(enum)									**/
/**							x = s	(struct)								**/
/**							x = pv	(pointer to	void)						**/
/**							x = pc	(pointer to	signed char)				**/
/**							x = puc (pointer to unsigned char)				**/
/**							x = pi	(pointer to	signed short int)			**/
/**							x = pui	(pointer to	unsigned short int)			**/
/**							x = pl	(pointer to	signed long)				**/
/**							x = pul (pointer to unsigned long)				**/
/**							x = pf	(pointer to	float)						**/
/**							x = pd	(pointer to	double)						**/
/**							x = ps	(pointer to	struct)						**/
/**							x = pfn (pointer to function)					**/
/**							x = pp	(pointer to	pointers)					**/
/**																			**/
/******************************************************************************/

#ifndef HL_TYPE_H
#define HL_TYPE_H

	#define HL_NULL							0
	#define HL_TRUE							0xFF
	#define HL_FALSE						0x00

	#define	EXCHANGE_INT

	typedef unsigned char					BOOL;
	typedef	char							INT8;
	typedef	short							INT16;
	typedef	long							INT32;
	typedef	unsigned char					USIGN8;
	typedef	unsigned short					USIGN16;
	typedef	unsigned long					USIGN32;
	typedef	float							FLOAT;

	typedef unsigned char					BitString;
	typedef	char							VisString;

	typedef struct
		{
			USIGN8			ucDate;
			USIGN8			ucHour;
		}	HL_Time_Short;

	typedef struct
		{
			USIGN8			ucMonth;
			USIGN8			ucDate;
			USIGN8			ucHour;
			USIGN8			ucMinute;
		}	HL_Time_Value;

	typedef struct
		{
			USIGN8			ucYear;
			USIGN8			ucMonth;
			USIGN8			ucDate;
			USIGN8			ucWeek;
			USIGN8			ucHour;
			USIGN8			ucMinute;
			USIGN8			ucSecond;
		}	HL_Time_Long;
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -