]> git.itanic.dy.fi Git - glucose/blob - contour-protocol.h
Refactor Contour USB communication routines into separate file
[glucose] / contour-protocol.h
1 #ifndef _CONTOUR_USB_H
2 #define _CONTOUR_USB_H
3
4 #define CONTOUR_USB_VENDOR_ID   0x1a79
5 #define CONTOUR_USB_PRODUCT_ID  0x6002
6
7 struct msg {
8         int direction;
9         unsigned char data[64];
10 };
11
12 enum direction {
13         IN = 666,
14         OUT,
15 };
16
17 int communicate(int fd, int uc);
18 int wait_for_device(int vendor, int product, int *usage_code);
19
20
21 #endif