summaryrefslogtreecommitdiff
path: root/i/serialplot/serialplot_io.h
blob: f7780c669cc0798e2d6eab82ddff4ccdea58ad9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef serialplot_io_h
#define serialplot_io_h

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#define BAUDRATE B115200

extern struct termios oldconf;

int init_serial (char *cvalue);
void close_serial(int fd);
int write_serial(int fd,char *command);

#endif