Contiki 2.6
|
00001 #ifndef STRUCTGEN 00002 #include "usb.h" 00003 #endif 00004 #include <stdint.h> 00005 00006 struct usb_st_string_language_map 00007 { 00008 uint16_t lang_id; 00009 const struct usb_st_string_descriptor * const *descriptors; 00010 }; 00011 00012 struct usb_st_string_languages 00013 { 00014 uint8_t num_lang; 00015 uint8_t max_index; 00016 const struct usb_st_language_descriptor *lang_descr; 00017 const struct usb_st_string_language_map map[1]; 00018 }; 00019 00020 extern const struct usb_st_string_languages * const string_languages; 00021 00022 const uint8_t * 00023 usb_class_get_string_descriptor(uint16_t lang, uint8_t index);