2018-12-12 14:38:32 +01:00
|
|
|
/*
|
|
|
|
* serial.h
|
2018-12-12 20:07:49 +01:00
|
|
|
* --------
|
|
|
|
*
|
2018-12-12 14:38:32 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
int prepare_UART(char *port, int bauds);
|
|
|
|
|
2018-12-12 16:06:18 +01:00
|
|
|
int getbyte(int fd);
|
|
|
|
|
2018-12-12 20:07:49 +01:00
|
|
|
|
|
|
|
/* timeout is exprimed in milliseconds. */
|
|
|
|
int getbyte_to (int fd, int to_ms);
|
|
|
|
|
|
|
|
|