serialPort.h 427 B

1234567891011121314151617
  1. #if !defined(OBOO_RUNTIME_SERIAL_PORT_H_INCLUDED)
  2. #define OBOO_RUNTIME_SERIAL_PORT_H_INCLUDED
  3. #include "config.h"
  4. #define DEFAULT_BAUDRATE 9600
  5. int initSerialPort (char* portname, int baudrate);
  6. void destroySerialPort ();
  7. int writeSerialPort (char* msg);
  8. int writeCharSerialPort (unsigned char c);
  9. int readSerialPort (char *msg);
  10. #endif /* OBOO_RUNTIME_SERIAL_PORT_H_INCLUDED */