projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Support accel-only IMU configurations
[fw/altos]
/
ao-tools
/
lib
/
cc-usb.h
diff --git
a/ao-tools/lib/cc-usb.h
b/ao-tools/lib/cc-usb.h
index d3539281f83aa4001c22a696a8eb15c90e69160f..9ed198cd290c9ecad29fa2b15717fdae042bd9d4 100644
(file)
--- a/
ao-tools/lib/cc-usb.h
+++ b/
ao-tools/lib/cc-usb.h
@@
-23,6
+23,8
@@
struct cc_usb;
struct cc_usb;
+extern int cc_default_timeout;
+
struct cc_usb *
cc_usb_open(char *tty);
struct cc_usb *
cc_usb_open(char *tty);
@@
-53,6
+55,9
@@
cc_usb_sync(struct cc_usb *cc);
void
cc_queue_read(struct cc_usb *cc, uint8_t *buf, int len);
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);
int
cc_usb_getchar(struct cc_usb *cc);
@@
-62,8
+67,11
@@
cc_usb_getline(struct cc_usb *cc, char *line, int max);
void
cc_usb_printf(struct cc_usb *cc, char *format, ...);
void
cc_usb_printf(struct cc_usb *cc, char *format, ...);
+int
+cc_usb_write(struct cc_usb *cc, void *buf, int c);
+
void
void
-cc_usb_open_remote(struct cc_usb *cc, int
channe
l);
+cc_usb_open_remote(struct cc_usb *cc, int
freq, char *cal
l);
void
cc_usb_close_remote(struct cc_usb *cc);
void
cc_usb_close_remote(struct cc_usb *cc);