23 #define DEFAULT_BAUD 115200
25 char USBPATH1[HDT_MAX_PATHCHAR];
26 char USBPATH2[HDT_MAX_PATHCHAR];
27 char USBPATH3[HDT_MAX_PATHCHAR];
28 char USBPATH4[HDT_MAX_PATHCHAR];
35 int SERInit(
int interface,
int baud,
int handshake);
37 int SERSend(
int interface,
char *buf);
Defines types used for the EyeBot 7.
int SERClose(int interface)
closes the port
Definition: serial.c:414
int SERGetPaths()
Obtains the system paths to the serial usb devices matching description in hdt.txt.
Definition: serial.c:14
int SERReceive(int interface, char *ch)
Receives a string from port handle.
Definition: serial.c:340
int SERFlush(int interface)
flushes the port
Definition: serial.c:400
bool SERCheck(int interface)
checks and flushes the port by sending enter until seeing prompt
Definition: serial.c:377
int SERSendChar(int interface, char ch)
Sends a single character to the given port handle.
Definition: serial.c:295
int SERSend(int interface, char *buf)
Sends a string to the given port handle.
Definition: serial.c:318
Header file for system functions.
int SERInit(int interface, int baud, int handshake)
Initialises the port.
Definition: serial.c:176
char SERReceiveChar(int interface)
Receives a single character from the given port handle.
Definition: serial.c:363