osd-contiki/cpu/arm/common/usb/string-descriptors.h

24 lines
520 B
C
Raw Normal View History

2010-02-05 17:23:40 +01:00
#ifndef STRUCTGEN
2009-07-11 16:44:27 +02:00
#include "usb.h"
2010-02-05 17:23:40 +01:00
#endif
#include <stdint.h>
2009-07-11 16:44:27 +02:00
struct usb_st_string_language_map
{
2010-02-05 17:23:40 +01:00
uint16_t lang_id;
2009-07-11 16:44:27 +02:00
const struct usb_st_string_descriptor * const *descriptors;
};
struct usb_st_string_languages
{
2010-02-05 17:23:40 +01:00
uint8_t num_lang;
uint8_t max_index;
2009-07-11 16:44:27 +02:00
const struct usb_st_language_descriptor *lang_descr;
const struct usb_st_string_language_map map[1];
};
extern const struct usb_st_string_languages * const string_languages;
2010-02-05 17:23:40 +01:00
const uint8_t *
usb_class_get_string_descriptor(uint16_t lang, uint8_t index);