Contiki 2.5
string-descriptors.h
1 #ifndef STRUCTGEN
2 #include "usb.h"
3 #endif
4 #include <stdint.h>
5 
6 struct usb_st_string_language_map
7 {
8  uint16_t lang_id;
9  const struct usb_st_string_descriptor * const *descriptors;
10 };
11 
12 struct usb_st_string_languages
13 {
14  uint8_t num_lang;
15  uint8_t max_index;
16  const struct usb_st_language_descriptor *lang_descr;
17  const struct usb_st_string_language_map map[1];
18 };
19 
20 extern const struct usb_st_string_languages * const string_languages;
21 
22 const uint8_t *
23 usb_class_get_string_descriptor(uint16_t lang, uint8_t index);