Commit | Line | Data |
---|---|---|
9c66c9ff JM |
1 | /* Serial port controls */ |
2 | ||
3 | struct serial_port; | |
4 | typedef struct serial_port port_t; | |
5 | ||
6 | #define ACK 0x06 | |
7 | #define NACK 0x15 | |
8 | ||
9 | /* serial.c */ | |
10 | port_t *serial_open(const char *name, int speed); | |
11 | void serial_close(port_t *pt); | |
12 | int serial_read(port_t *pt, unsigned char *buff, size_t len); | |
13 | int serial_write(port_t *pt, unsigned char *buff, size_t len); | |
14 | int serial_break(port_t *pt, int set); |