diff options
Diffstat (limited to 'include/serial.h')
| -rw-r--r-- | include/serial.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/serial.h b/include/serial.h index ccf0c6e..033fd54 100644 --- a/include/serial.h +++ b/include/serial.h @@ -1,9 +1,11 @@ #ifndef __INCLUDE_SERIAL__ #define __INCLUDE_SERIAL__ +typedef enum { SUCCESS, ERROR_READ, ERROR_TIMEOUT } SERIAL_RETURN_CODE; + int openSerialPort(char pathToPort[]); -int querySerialPort(char **output, int serialPort, char *input, - int timeoutSeconds); +SERIAL_RETURN_CODE querySerialPort(char **output, int serialPort, char *input, + int timeoutSeconds, char *lastLineSubStr); #endif |
