]> git.cryptolib.org Git - labortage2013badge.git/blob - firmware/requests.h
this should work
[labortage2013badge.git] / firmware / requests.h
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  * This Revision: $Id: requests.h 692 2008-11-07 15:07:40Z cs $
9  */
10
11 /* This header is shared between the firmware and the host software. It
12  * defines the USB request numbers (and optionally data types) used to
13  * communicate between the host and the device.
14  */
15
16 #ifndef __REQUESTS_H_INCLUDED__
17 #define __REQUESTS_H_INCLUDED__
18
19 #define CUSTOM_RQ_PRESS_BUTTON 0x04
20
21 #define CUSTOM_RQ_CLR_DBG           0x05
22 #define CUSTOM_RQ_SET_DBG           0x06
23 #define CUSTOM_RQ_GET_DBG           0x07
24
25 #define CUSTOM_RQ_GET_ADC           0x08
26 #define CUSTOM_RQ_READ_MEM          0x10
27 #define CUSTOM_RQ_WRITE_MEM         0x11
28 #define CUSTOM_RQ_READ_FLASH        0x12
29 #define CUSTOM_RQ_EXEC_SPM          0x13
30 #define CUSTOM_RQ_RESET             0x14
31 #define CUSTOM_RQ_READ_BUTTON       0x15
32 #define CUSTOM_RQ_READ_TMPSENS      0x16
33 #define LED_WRITE                   0x40
34
35 #define CUSTOM_RQ_SET_SECRET        0x60
36 #define CUSTOM_RQ_INC_COUNTER       0x62
37 #define CUSTOM_RQ_GET_COUNTER       0x63
38 #define CUSTOM_RQ_RESET_COUNTER     0x64
39 #define CUSTOM_RQ_GET_RESET_COUNTER 0x65
40 #define CUSTOM_RQ_SET_DIGITS        0x66
41 #define CUSTOM_RQ_GET_DIGITS        0x67
42
43 #define CUSTOM_RQ_GET_TOKEN         0x69
44
45
46
47
48
49 #endif /* __REQUESTS_H_INCLUDED__ */