#include <midas.h>
#include "rs232.c"
Go to the source code of this file.
◆ main()
Definition at line 16 of file rs232test.cxx.
17{
20
21 printf(
"Enter port [/dev/ttyS0]: ");
25
27 strcpy(
str,
"/dev/ttyS0");
28
30
32 printf(
"Cannot open ttyS0\n");
33 return 0;
34 }
35
36
38
39 printf(
"Connected to ttyS0, exit with <ESC>\n");
40
41 do {
45 break;
46
49
53
54 } while (1);
55
58
59 return 1;
60}
INT ss_getchar(BOOL reset)
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)