www.pudn.com > usbhost_source.rar > SIO.H


/** 
*	sio.h 
*	H8LANボード		通信関数 
*	2001.09.24			Junichi Tomaru 
*/ 
 
/* ボーレート・パラメータ定義 25MHz */ 
#define		B4800		162 
#define		B9600		80 
#define		B19200		40 
#define		B38400		19 
 
#define		B7PNS1		0x40 
#define		B7PNS2		0x48 
#define		B7POS1		0x70 
#define		B7POS2		0x78 
#define		B7PES1		0x60 
#define		B7PES2		0x68 
#define		B8PNS1		0 
#define		B8PNS2		0x8 
#define		B8POS1		0x30 
#define		B8POS2		0x38 
#define		B8PES1		0x20 
#define		B8PES2		0x28 
 
extern void	sioinit( char ch, char speed, char prm ); 
extern unsigned char	getrxcount( char ch ); 
extern byte	gettxcount( char ch ); 
extern char	chkrxerr( char ch ); 
extern char	getsio1( char ch ); 
extern bool	setsio1( char ch, char dat ); 
extern bool	setsio1w( char ch, char dat ); 
extern void	sioclear( char ch ); 
extern void	setsiostr( char ch, char *str ); 
extern void	setsiostrf( char ch, char *fmt, ... ); 
extern char	getsiostr( char ch, char *buf, int ct, char dl ); 
 
/* end of sio.h */