diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/vusb/examples/hid-custom-rq/firmware/requests.h |
Diffstat (limited to 'lib/vusb/examples/hid-custom-rq/firmware/requests.h')
-rw-r--r-- | lib/vusb/examples/hid-custom-rq/firmware/requests.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/vusb/examples/hid-custom-rq/firmware/requests.h b/lib/vusb/examples/hid-custom-rq/firmware/requests.h new file mode 100644 index 000000000..630a68551 --- /dev/null +++ b/lib/vusb/examples/hid-custom-rq/firmware/requests.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* Name: requests.h | ||
2 | * Project: custom-class, a basic USB example | ||
3 | * Author: Christian Starkjohann | ||
4 | * Creation Date: 2008-04-09 | ||
5 | * Tabsize: 4 | ||
6 | * Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH | ||
7 | * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) | ||
8 | */ | ||
9 | |||
10 | /* This header is shared between the firmware and the host software. It | ||
11 | * defines the USB request numbers (and optionally data types) used to | ||
12 | * communicate between the host and the device. | ||
13 | */ | ||
14 | |||
15 | #ifndef __REQUESTS_H_INCLUDED__ | ||
16 | #define __REQUESTS_H_INCLUDED__ | ||
17 | |||
18 | #define CUSTOM_RQ_SET_STATUS 1 | ||
19 | /* Set the LED status. Control-OUT. | ||
20 | * The requested status is passed in the "wValue" field of the control | ||
21 | * transfer. No OUT data is sent. Bit 0 of the low byte of wValue controls | ||
22 | * the LED. | ||
23 | */ | ||
24 | |||
25 | #define CUSTOM_RQ_GET_STATUS 2 | ||
26 | /* Get the current LED status. Control-IN. | ||
27 | * This control transfer involves a 1 byte data phase where the device sends | ||
28 | * the current status to the host. The status is in bit 0 of the byte. | ||
29 | */ | ||
30 | |||
31 | #endif /* __REQUESTS_H_INCLUDED__ */ | ||