Monitoring du Phytotron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

serial.h 524B

12345678910111213141516171819202122232425
  1. /*
  2. * serial.h
  3. * --------
  4. *
  5. */
  6. int prepare_UART(char *port, int bauds);
  7. int getbyte(int fd); /* really brotched func */
  8. /* timeout is exprimed in milliseconds. */
  9. int getbyte_to (int fd, int to_ms);
  10. int getline_to(int fd, char *where, int szm, int to_ms);
  11. /* auxiliary and test functions */
  12. int parseXvalue(char *asciidatas, char id);
  13. int values2temperature(int raw[4], float array[4]);
  14. int parse4_Ivalues(char *line, char cflag, int array[4]);
  15. int parse4_Fvalues(char *line, char cflag, float array[4]);