Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Related Pages  

serial.h

00001 #ifndef SERH
00002 #define SERH
00003 
00016 
00017 #include <sys/types.h>
00018 #include <asm/types.h>
00019 
00020 #define RS232PORT 0
00021 #define RS422PORT 1
00022 
00023 #define EIGHT_BIT   0x00    
00024 #define NINE_BIT    0x10
00025 
00026 typedef struct Serconfig{
00027 __u16 id; 
00028 __u16 mode; 
00029 __u16 baud; // Any baud rate from 9600 to 56k, the proper divisors are computed internally by the 37e12 firmware.
00030 }Serconfig;
00031 
00032 
00039 int E12_Serial_Config(int fd, int port, int baud,int mode);
00040 
00044 int E12_Serial_Write(int fd, int port, int numchars,char *buffer);
00045 
00047 #endif

Generated on Thu Jan 8 09:51:00 2004 for PCM-37e12 by doxygen1.2.15