/* usb/driver/hid/usb/hid/decode.h
 *
 * (c) 2002 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB HID Driver - simple decoding for constants
 *
 * $Id: decode.h,v 1.4 2003/08/08 11:17:17 ben Exp $
 *
 * This Library file is part of the Simtec Electronics USB stack development
 *   suite.
 * Specific licence is granted to use this file by third parties for the
 *   development of USB device drivers.
*/

#ifndef __USB_HID_DECODE_H
#define __USB_HID_DECODE_H "$Id: decode.h,v 1.4 2003/08/08 11:17:17 ben Exp $"

/** hid_decode_usage_page
 *
 * @memo convert the given usage to a text string
 * @param value value to decode
*/

extern const char *hid_decode_usage_page(hid_usage_t value);

/** hid_decode_collection_type
 *
 * @memo covert the given collection type to a text string
 * @param value value to convert
*/

extern const char *hid_decode_collection_type(hid_report_collection_type_t value);

extern const char *hid_decode_main_type(hid_main_type_t type);

extern const char *hid_decode_usage_desktop(hid_usage_t usage);

extern const char *hid_decode_usage_game(hid_usage_t usage);

extern const char *hid_decode_usage_led(hid_usage_t usage);

extern const char *hid_decode_usage_buttons(hid_usage_t usage);

extern const char *hid_decode_usage_val(hid_usage_t usage);

extern char *hid_decode_usage(char *buff, int buffsz, hid_usage_t val);


#endif /*  __USB_HID_DECODE_H */
