Main Page | File List | Globals | Related Pages

msutils.h

Go to the documentation of this file.
00001 #ifndef MSUTILS_H 00002 #define MSUTILS_H 00003 00004 // 00005 // msutils.h - Microscan MS-3 Barcode Reader Utilities API header 00006 // 00007 00018 // System header files 00019 00020 #include <stdio.h> 00021 #include <string.h> 00022 #include <stdlib.h> 00023 #include <ctype.h> 00024 #include <unistd.h> 00025 #include <errno.h> 00026 #include <time.h> 00027 #include <sys/time.h> 00028 #include <sys/times.h> 00029 #include <sys/types.h> 00030 #include <sys/socket.h> 00031 #include <sys/file.h> 00032 #include <netdb.h> 00033 #include <netinet/in.h> 00034 #include <arpa/inet.h> 00035 #include <termios.h> 00036 #include <fcntl.h> 00037 #include <signal.h> 00038 00039 // Microcan reader parameters (as required) 00040 00041 #define MS_DOREAD "<X>" 00042 00043 // API Function prototypes 00044 00045 int MSOpenPort(char *); // Open/initialize a barcode reader comm port 00046 void MSClosePort(int); // Close a barcode reader comm port 00047 int MSReadPort(int, char *, long); // Read data from a barcode reader 00048 int MSSendCommand(int, char *, char *); // Send a command to a barcode reader 00049 int MSSendQuery(int, char *, char *, long); // Send a query to a barcode reader 00050 int MSReadBarcode(int, char *, long); // Scan a Barcode 00051 int MSReset(int, char *); // Reset the barcode reader. 00052 00053 #endif

Generated on Tue Jun 8 13:54:23 2004 for SCL Microstep Controller API by doxygen 1.3.7