X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Fao-sky-flash%2Fsky_flash.h;h=1a8dfb9e48330bd5312ab58ec3052d0fbd0960b1;hb=63a44b9c169d042fb1a3997620477e7f00bb0918;hp=77f4c742c34d3d11cdef4cd13bc93e8bdefd9415;hpb=b26e837a6f18641aae9372aab22168849ff10812;p=fw%2Faltos diff --git a/ao-tools/ao-sky-flash/sky_flash.h b/ao-tools/ao-sky-flash/sky_flash.h index 77f4c742..1a8dfb9e 100644 --- a/ao-tools/ao-sky-flash/sky_flash.h +++ b/ao-tools/ao-sky-flash/sky_flash.h @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -30,7 +31,7 @@ int skytraq_setcomm(int fd, int baudrate); int -skytraq_write(int fd, const char *data, int len); +skytraq_write(int fd, const void *data, int len); int skytraq_waitchar(int fd, int timeout); @@ -41,6 +42,12 @@ skytraq_waitstatus(int fd, const char *status, int timeout); void skytraq_flush(int fd); +int +skytraq_millis(void); + +void +skytraq_dbg_newline(void); + int skytraq_cmd_wait(int fd, const char *message, int len, const char *status, int timeout);