diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-25 20:58:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-25 20:58:24 -0700 |
commit | d63319f6f29ef714bb1d5c359c2448f63e7a4534 (patch) | |
tree | 14f4f9d4c42c905da8f86ba95a1be518fd9e50b1 /ao-tools/lib/cc-usb.h | |
parent | 0a6c76fc0525d6588a1d88127f0085f13a02f1af (diff) |
ao-tools: Add cc_usb_write function
This writes raw bytes to the USB port; useful for sending binary data
for flashing or the upcoming flight test stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/cc-usb.h')
-rw-r--r-- | ao-tools/lib/cc-usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ao-tools/lib/cc-usb.h b/ao-tools/lib/cc-usb.h index f1193456..e08a956b 100644 --- a/ao-tools/lib/cc-usb.h +++ b/ao-tools/lib/cc-usb.h @@ -65,6 +65,9 @@ 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); |