Contiki 2.5
cdc-eth-string-descriptors.c
1 #include "string-descriptors.h"
2 static const struct {
3  struct usb_st_string_descriptor base;
4  Uint16 chars[18];
5 } string_descriptor_1_en= {{40, 3, {'U'}}, {
6 'S', 'B', ' ', 'p', 's', 'e', 'u', 'd', 'o', ' ', 'e', 't', 'h', 'e', 'r', 'n', 'e', 't'}};
7 static const struct {
8  struct usb_st_string_descriptor base;
9  Uint16 chars[8];
10 } string_descriptor_2_all= {{20, 3, {'F'}}, {
11 'l', 'u', 'f', 'f', 'w', 'a', 'r', 'e'}};
12 static const struct {
13  struct usb_st_string_descriptor base;
14  Uint16 chars[2];
15 } string_descriptor_3_all= {{8, 3, {'0'}}, {
16 '.', '1'}};
17 static const struct {
18  struct usb_st_string_descriptor base;
19  Uint16 chars[11];
20 } string_descriptor_4_all= {{26, 3, {'0'}}, {
21 '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1'}};
22 static const struct usb_st_string_descriptor * string_table_en[] =
23 {
24  &string_descriptor_1_en.base,
25  &string_descriptor_2_all.base,
26  &string_descriptor_3_all.base,
27  &string_descriptor_4_all.base,
28 };
29 static const struct {
30  struct usb_st_language_descriptor base;
31  Uint16 langs[0];
32 } language_descriptor =
33 {
34  {4, 3, {0x0409}},
35  {}};
36 static const struct {
37  struct usb_st_string_languages base;
38  struct usb_st_string_language_map map[0];
39 } string_languages_full={{1, 4, &language_descriptor.base,
40  {{0x0409, string_table_en}}}, {
41  }
42 };
43 const struct usb_st_string_languages * const string_languages = &string_languages_full.base;