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

📄 extiso.h

📁 界面程序
💻 H
字号:
#ifndef EXTISO
#define EXTISO

struct IsoTable {
	short len;
	unsigned char type;
};

/*
 *	type field :
 *
 *		bit 0  bit 1	:	len type	00	Fixed Length
 *							01	LL VAR
 *							10	LLL VAR
 *		bit 2		:	reversed
 *		bit 3		:	data type	1	binary
 *							0	other
 *		bit 4		:	data type	1	bcd
 *							0	other
 *		bit 5		:	data type	1	C/D field
 *							0	other
 *		bit 6		:	fill type	1	fill with ' '
 *							0	fill with '0'
 *		bit 7		:	justify type	1	left justify
 *							0	right justify
 */

struct Elements {
	short bitf;
	short len;
	short off;
};

typedef struct {
	unsigned char *dbuf;
	short off;
	short max_len;
	char asc_msg;
	char asc_var;
	char msg_id[16];
	struct Elements f[128];
	struct IsoTable *isotable;
} IsoData;

void Init_Iso(IsoData *, unsigned char *, int, int, int, struct IsoTable *);

int Str_Iso(unsigned char *, IsoData *, int);
int Iso_Str(unsigned char *, IsoData *, int);

int Get_Bit(IsoData *, int, char *, int);
int Set_Bit(IsoData *, int, char *, int);

#endif

⌨️ 快捷键说明

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