aboutsummaryrefslogtreecommitdiffstats
path: root/examples/drivertest/firmware/requests.h
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2008-10-20 16:13:19 +0000
committerChristian Starkjohann <cs+github@obdev.at>2008-10-20 16:13:19 +0000
commit2b8735a2de7435ba089a91ea9309aa2c20a7600f (patch)
treea6a507d09e79e62f75a817e6fc4fa7d946de8cfe /examples/drivertest/firmware/requests.h
parent0528a42590ec57fb3c18dd1995ddbf577b3ba003 (diff)
downloadv-usb-2b8735a2de7435ba089a91ea9309aa2c20a7600f.tar.gz
v-usb-2b8735a2de7435ba089a91ea9309aa2c20a7600f.tar.bz2
v-usb-2b8735a2de7435ba089a91ea9309aa2c20a7600f.zip
- added example project for testing driver reliability and features
Diffstat (limited to 'examples/drivertest/firmware/requests.h')
-rw-r--r--examples/drivertest/firmware/requests.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/drivertest/firmware/requests.h b/examples/drivertest/firmware/requests.h
new file mode 100644
index 0000000..262cfb1
--- /dev/null
+++ b/examples/drivertest/firmware/requests.h
@@ -0,0 +1,29 @@
+/* Name: requests.h
+ * Project: custom-class, a basic USB example
+ * Author: Christian Starkjohann
+ * Creation Date: 2008-04-09
+ * Tabsize: 4
+ * Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
+ * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt)
+ * This Revision: $Id$
+ */
+
+/* This header is shared between the firmware and the host software. It
+ * defines the USB request numbers (and optionally data types) used to
+ * communicate between the host and the device.
+ */
+
+#ifndef __REQUESTS_H_INCLUDED__
+#define __REQUESTS_H_INCLUDED__
+
+#define CUSTOM_RQ_SET_DATA 1
+/* Send data to device. Control-OUT with 64 bytes data.
+ */
+
+#define CUSTOM_RQ_GET_DATA 2
+/* Get data from device. Control-IN with 64 bytes data.
+ */
+#define CUSTOM_RQ_SET_OSCCAL 3
+#define CUSTOM_RQ_GET_OSCCAL 4
+
+#endif /* __REQUESTS_H_INCLUDED__ */