-
Notifications
You must be signed in to change notification settings - Fork 3
/
usb.h
executable file
·32 lines (26 loc) · 994 Bytes
/
usb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//***************************************************************************
//
// File : usb.h
// Copyright : 2013 Paul Chote
// Description : Handles communication with the Acquisition PC via serial
//
// This file is part of Karaka, which is free software. It is made available
// to you under the terms of version 3 of the GNU General Public License, as
// published by the Free Software Foundation. For more information, see LICENSE.
//
//***************************************************************************
#include <stdarg.h>
#include <stdint.h>
#ifndef KARAKA_USB_H
#define KARAKA_USB_H
void usb_initialize();
void usb_tick();
void usb_send_message_P(const char *string);
void usb_send_message_fmt_P(const char *fmt, ...);
void usb_send_raw(uint8_t *data, uint8_t length);
void usb_send_timestamp();
void usb_send_trigger();
void usb_send_status(enum timer_status timer, enum gps_status gps);
void usb_stop_exposure();
void usb_send_byte(uint8_t b);
#endif