2015-10-17 17:21:22 -04:00
|
|
|
#ifndef _usbstrings_h__
|
|
|
|
#define _usbstrings_h__
|
|
|
|
|
2017-01-08 15:58:45 -05:00
|
|
|
#include <avr/pgmspace.h>
|
|
|
|
|
2015-10-17 17:21:22 -04:00
|
|
|
extern const wchar_t *g_usb_strings[];
|
|
|
|
|
2017-01-08 15:58:45 -05:00
|
|
|
/* Sample: "Dual Gamecube to USB v3.4" (25) */
|
|
|
|
#define PRODUCT_STRING_MAXCHARS 32
|
|
|
|
|
2015-10-17 17:21:22 -04:00
|
|
|
#define NUM_USB_STRINGS 3
|
|
|
|
|
|
|
|
/* Array indexes (i.e. zero-based0 */
|
|
|
|
#define USB_STRING_SERIAL_IDX 2
|
|
|
|
|
2017-01-08 15:58:45 -05:00
|
|
|
/**
|
|
|
|
* \param str Must be in PROGMEM
|
|
|
|
*/
|
|
|
|
void usbstrings_changeProductString_P(const char *str);
|
2016-08-22 23:18:37 -04:00
|
|
|
|
2015-10-17 17:21:22 -04:00
|
|
|
#endif
|