2018-12-13 00:38:32 +11:00
|
|
|
/*
|
|
|
|
* serial.h
|
2018-12-13 06:07:49 +11:00
|
|
|
* --------
|
|
|
|
*
|
2018-12-13 00:38:32 +11:00
|
|
|
*/
|
|
|
|
|
|
|
|
int prepare_UART(char *port, int bauds);
|
|
|
|
|
2018-12-20 21:57:23 +11:00
|
|
|
int getbyte(int fd); /* really brotched func */
|
2018-12-13 02:06:18 +11:00
|
|
|
|
2018-12-13 06:07:49 +11:00
|
|
|
|
|
|
|
/* timeout is exprimed in milliseconds. */
|
|
|
|
int getbyte_to (int fd, int to_ms);
|
|
|
|
|
2018-12-15 04:52:06 +11:00
|
|
|
int getline_to(int fd, char *where, int szm, int to_ms);
|
|
|
|
|
2018-12-30 03:07:23 +11:00
|
|
|
/* auxiliary and test functions */
|
|
|
|
|
|
|
|
int parseXvalue(char *asciidatas, char id);
|
|
|
|
|
2018-12-13 06:07:49 +11:00
|
|
|
|