2 * Copyright © 2012 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20 extern int skytraq_open_time;
21 extern int skytraq_verbose;
24 skytraq_open(const char *path);
27 skytraq_setspeed(int fd, int baud);
30 skytraq_setcomm(int fd, int baudrate);
33 skytraq_write(int fd, const char *data, int len);
36 skytraq_waitchar(int fd, int timeout);
39 skytraq_waitstatus(int fd, const char *status, int timeout);
42 skytraq_flush(int fd);
45 skytraq_cmd_wait(int fd, const char *message, int len, const char *status, int timeout);
48 skytraq_cmd_nowait(int fd, const char *message, int len);
53 skytraq_dbg_printf(int input, const char *fmt, ...);
56 skytraq_dbg_buf(int input, const char *buf, int len);
59 skytraq_dbg_char(int input, char c);
63 skytraq_send_srec(int fd, const char *file);
67 skytraq_send_bin(int fd, const char *filename);