nes-proj/arch/cpu/cc2538/usb/common/string-descriptors.h
George Oikonomou 8050864226 Move USB sourcefiles to the CC2538 CPU dir
Previously, the CC2538 port would compile USB-related files from their original location under the CC2531 CPU dir. We are now removing the latter, but we need to keep those files.
2017-10-10 21:04:23 +02:00

21 lines
515 B
C

#ifndef STRUCTGEN
#include "usb.h"
#endif
#include <stdint.h>
struct usb_st_string_language_map {
uint16_t lang_id;
const struct usb_st_string_descriptor *const *descriptors;
};
struct usb_st_string_languages {
uint8_t num_lang;
uint8_t max_index;
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;
const uint8_t *usb_class_get_string_descriptor(uint16_t lang, uint8_t index);