X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Flib%2Fcc-usb.h;h=9ed198cd290c9ecad29fa2b15717fdae042bd9d4;hb=3fd320ea38f2945f5611a09a0e48d16db467d105;hp=9baabd9598fbb9356f43ee33332fe3deed917414;hpb=332b056459b1352e233a8bf5f08498df12d32160;p=fw%2Faltos diff --git a/ao-tools/lib/cc-usb.h b/ao-tools/lib/cc-usb.h index 9baabd95..9ed198cd 100644 --- a/ao-tools/lib/cc-usb.h +++ b/ao-tools/lib/cc-usb.h @@ -23,6 +23,8 @@ struct cc_usb; +extern int cc_default_timeout; + struct cc_usb * cc_usb_open(char *tty); @@ -47,13 +49,31 @@ cc_usb_debug_mode(struct cc_usb *cc); int cc_usb_reset(struct cc_usb *cc); -int +void cc_usb_sync(struct cc_usb *cc); void cc_queue_read(struct cc_usb *cc, uint8_t *buf, int len); +int +cc_usb_getchar_timeout(struct cc_usb *cc, int timeout); + +int +cc_usb_getchar(struct cc_usb *cc); + +void +cc_usb_getline(struct cc_usb *cc, char *line, int max); + void cc_usb_printf(struct cc_usb *cc, char *format, ...); +int +cc_usb_write(struct cc_usb *cc, void *buf, int c); + +void +cc_usb_open_remote(struct cc_usb *cc, int freq, char *call); + +void +cc_usb_close_remote(struct cc_usb *cc); + #endif /* _CC_USB_H_ */