From dc8703206e3f0f69605c56d0e1127f7e17f3476a Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Tue, 4 Jun 2019 14:34:27 +0200 Subject: Initial commit --- testing/yup-comm/comm/serial_port.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 testing/yup-comm/comm/serial_port.h (limited to 'testing/yup-comm/comm/serial_port.h') diff --git a/testing/yup-comm/comm/serial_port.h b/testing/yup-comm/comm/serial_port.h new file mode 100644 index 0000000..db9dfe9 --- /dev/null +++ b/testing/yup-comm/comm/serial_port.h @@ -0,0 +1,16 @@ +/* Author: Jan Sucan */ + +#ifndef SERIAL_PORT_H +#define SERIAL_PORT_H 1 + +#include +#include + +HANDLE serial_port_open(const char * const portName); +void serial_port_close(HANDLE serial_port); +int serial_port_write_byte(HANDLE serial_port, uint8_t * const data, unsigned size); +int serial_port_read_byte(HANDLE serial_port, uint8_t * const byte); +LPSTR serial_port_get_error(void); +void serial_port_free_error(LPSTR msg); + +#endif -- cgit v1.2.3