summaryrefslogtreecommitdiff
path: root/i/serialplot/serialplot_io.h
blob: 1dd9a31144489a17de2eac8d9d7cc022877830cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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>
#include <dirent.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);
void find_name(char *filename);
#endif