00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00035 #ifndef VUK_REPORT_H_
00036 #define VUK_REPORT_H_
00037
00038 #include "items.h"
00039
00041 #define STD_USAGE_PAGE(page) \
00042 ITEM_CREATE1(ITEM_GLOBAL, TAG_USAGE_PAGE, page)
00043
00045 #define USAGE1(usage_id) \
00046 ITEM_CREATE1(ITEM_LOCAL, TAG_USAGE, usage_id)
00047
00049 #define START_COLLECTION(collection) \
00050 ITEM_CREATE1(ITEM_MAIN, TAG_COLLECTION, collection)
00051
00053 #define END_COLLECTION() \
00054 ITEM_CREATE0(ITEM_MAIN, TAG_END_COLLECTION)
00055
00056
00057 #define USAGE_MINIMUM1(value) \
00058 ITEM_CREATE1(ITEM_LOCAL, TAG_USAGE_MINIMUM, value)
00059
00060 #define USAGE_MAXIMUM1(value) \
00061 ITEM_CREATE1(ITEM_LOCAL, TAG_USAGE_MAXIMUM, value)
00062
00063 #define LOGICAL_MINIMUM1(value) \
00064 ITEM_CREATE1(ITEM_GLOBAL, TAG_LOGICAL_MINIMUM, value)
00065
00066 #define LOGICAL_MAXIMUM1(value) \
00067 ITEM_CREATE1(ITEM_GLOBAL, TAG_LOGICAL_MAXIMUM, value)
00068
00069 #define REPORT_SIZE1(size) \
00070 ITEM_CREATE1(ITEM_GLOBAL, TAG_REPORT_SIZE, size)
00071
00072 #define REPORT_COUNT1(count) \
00073 ITEM_CREATE1(ITEM_GLOBAL, TAG_REPORT_COUNT, count)
00074
00075 #define INPUT(modifiers) \
00076 ITEM_CREATE1(ITEM_MAIN, TAG_INPUT, modifiers)
00077
00078 #define OUTPUT(modifiers) \
00079 ITEM_CREATE1(ITEM_MAIN, TAG_OUTPUT, modifiers)
00080
00081
00082 #endif
00083