]> git.itanic.dy.fi Git - glucose/blob - contour-protocol.h
utils: Add sanitize_ascii()
[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 contour_initialize(int fd, int uc);
18 int contour_read_entry(int fd, int uc, struct msg *in);
19 int wait_for_device(int vendor, int product, int *usage_code);
20
21
22 #endif