6 #include "../types.h"
\r
8 void SendCmd(uint8 *cmd, int size);
\r
9 int ReadResp(uint8 *resp, int size);
\r
11 #define SEND(cmd) SendCmd((uint8 *)&cmd[0], sizeof(cmd))
\r
12 #define GET(buf, size) ReadResp((uint8 *)&buf, size)
\r
13 #define SENDGET(cmd, buf, size) SEND(cmd); GET(buf, size)
\r
15 BOOL SerialOpen(int port, int baud);
\r
16 void SerialClose(void);
\r
17 BOOL SerialSendChar(int c);
\r
18 int SerialIsOpen(void);
\r
19 int SerialGetChar(void);
\r