revert between 56095 -> 55830 in arch
[AROS.git] / rom / usb / classes / hid / numtostr.h
blob472e5368c424219cbe8afbdc1c0b2e203859b12e
1 #ifndef NUMTOSTR_H
2 #define NUMTOSTR_H
4 /*
5 *----------------------------------------------------------------------------
6 * Includes for numtostr.c
7 *----------------------------------------------------------------------------
8 * By Chris Hodges <chrisly@platon42.de>
9 */
11 #include <exec/types.h>
13 #include "hid.class.h"
15 #define NTS_USAGEPAGE 0x01
16 #define NTS_USAGEID 0x02
17 #define NTS_EXTRAWKEY 0x7e
18 #define NTS_RAWKEY 0x7f
20 #define UT_LC 0x01 /* Linear control */
21 #define UT_OOC 0x02 /* On/Off Control */
22 #define UT_MC 0x03 /* Momentary Control */
23 #define UT_OSC 0x04 /* One Shot Control */
24 #define UT_RTC 0x05 /* Retrigger Control */
26 /* Protos
29 STRPTR nNumToStr(struct NepClassHid *nch, UWORD type, ULONG id, STRPTR defstr);
31 struct HidUsageIDMap
33 UWORD hum_ID;
34 STRPTR hum_String;
37 struct HidUsagePageMap
39 WORD hupm_ID;
40 STRPTR hupm_String;
41 const struct HidUsageIDMap *hupm_UsageIDMap;
44 extern const struct HidUsageIDMap hidusage07[];
46 #endif /* NUMTOSTR_H */