aboutsummaryrefslogtreecommitdiff
path: root/src/serial.h
blob: 77fafcb62bac46a19677af3170163be54f459aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <errno.h>
#include <fcntl.h> 
#include <string.h>
#include <termios.h>
#include <unistd.h>

/*
 * set baud rate of fd to speed
 */
int set_interface_attribs (int fd, int speed, int parity);

/*
 * sets blocking, duh
 */
void set_blocking (int fd, int should_block);