30 #include <sys/types.h> 35 #endif // HAVE_CONFIG_H 58 for (j = 0; j < len; j += 2)
61 data.
byte[1] = buf[j];
62 data.
byte[0] = buf[j + 1];
63 ad[((
unsigned short)data.
integer) >> 12] = (
unsigned short)data.
integer & 0x0FFF;
98 strcat((
char *)data, buf);
99 if (strstr((
char *)data,
"00P\n\n"))
101 if (strstr((
char *)data,
"\n\n"))
113 strcpy(buf,
"\n\n\n\n");
118 strcpy(buf,
"ADMASK");
119 for (i = 0; i < 8; i++)
146 strcpy(buf,
"\n\n\n\n");
151 strcpy(buf,
"GETIO");
int serial_write(char *buf, int len)
int serial_recieve(int(*serial_event)(char *, int, double, void *), void *data)
void serial_flush_in(void)