-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusb_rawhid_settings.h
More file actions
30 lines (25 loc) · 1.16 KB
/
Copy pathusb_rawhid_settings.h
File metadata and controls
30 lines (25 loc) · 1.16 KB
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
#ifndef usb_rawhid_settings_h__
#define usb_rawhid_settings_h__
/**************************************************************************
*
* Configurable Options
*
**************************************************************************/
// You can change these to give your code its own name.
#define STR_MANUFACTURER L"Visa"
#define STR_PRODUCT L"Teensy Raw HID"
// These 4 numbers identify your device. Set these to
// something that is (hopefully) not used by any others!
#define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x0480
#define RAWHID_USAGE_PAGE 0xFFEE // recommended: 0xFF00 to 0xFFFF
#define RAWHID_USAGE 0x0200 // recommended: 0x0100 to 0xFFFF
// These determine the bandwidth that will be allocated
// for your communication. You do not need to use it
// all, but allocating more than necessary means reserved
// bandwidth is no longer available to other USB devices.
#define RAWHID_TX_SIZE 16 // transmit packet size
#define RAWHID_TX_INTERVAL 5 // max # of ms between transmit packets
#define RAWHID_RX_SIZE 2 // receive packet size
#define RAWHID_RX_INTERVAL 1 // max # of ms between receive packets
#endif