Contiki 2.6

cdc-eth-string-descriptors.c

00001 #include "string-descriptors.h"
00002 static const struct {
00003   struct usb_st_string_descriptor base;
00004   Uint16 chars[18];
00005 } string_descriptor_1_en= {{40, 3, {'U'}}, {
00006 'S', 'B', ' ', 'p', 's', 'e', 'u', 'd', 'o', ' ', 'e', 't', 'h', 'e', 'r', 'n', 'e', 't'}};
00007 static const struct {
00008   struct usb_st_string_descriptor base;
00009   Uint16 chars[8];
00010 } string_descriptor_2_all= {{20, 3, {'F'}}, {
00011 'l', 'u', 'f', 'f', 'w', 'a', 'r', 'e'}};
00012 static const struct {
00013   struct usb_st_string_descriptor base;
00014   Uint16 chars[2];
00015 } string_descriptor_3_all= {{8, 3, {'0'}}, {
00016 '.', '1'}};
00017 static const struct {
00018   struct usb_st_string_descriptor base;
00019   Uint16 chars[11];
00020 } string_descriptor_4_all= {{26, 3, {'0'}}, {
00021 '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1'}};
00022 static const struct usb_st_string_descriptor * string_table_en[] =
00023 {
00024   &string_descriptor_1_en.base,
00025   &string_descriptor_2_all.base,
00026   &string_descriptor_3_all.base,
00027   &string_descriptor_4_all.base,
00028 };
00029 static const struct {
00030   struct usb_st_language_descriptor base;
00031   Uint16 langs[0];
00032 } language_descriptor =
00033 {
00034   {4, 3, {0x0409}},
00035   {}};
00036 static const struct {
00037   struct usb_st_string_languages base;
00038   struct  usb_st_string_language_map map[0];
00039 } string_languages_full={{1, 4, &language_descriptor.base, 
00040     {{0x0409, string_table_en}}}, {
00041   }
00042 };
00043 const struct usb_st_string_languages * const string_languages = &string_languages_full.base;