how can I make this dynamic. I need to set my product string via eeprom for a project I'm using.
tried
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT (USB_PROP_IS_RAM | USB_PROP_LENGTH(12))
and
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC | USB_PROP_IS_RAM)
both allow the code to work.
i.e. rename first letter to x
usbDescriptorStringDevice[0] = 'x';
but nether work. I get some basic windows name for the device. The generic name for the gamepad class I think ( 8 axis, 24 button ..)
USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
Re: USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
Hi ulao,
I did this in my MIDI project to allow a dynamic naming via an e.g. address switch to have more than one devices connected and recognized. Please have a look at the source code at my bitbucket. Unfortunately I have not time to deep dive into my code, so please try it at your own - but as a long time V-USB-user you should have no problem.
Ciao, Martin
I did this in my MIDI project to allow a dynamic naming via an e.g. address switch to have more than one devices connected and recognized. Please have a look at the source code at my bitbucket. Unfortunately I have not time to deep dive into my code, so please try it at your own - but as a long time V-USB-user you should have no problem.
Ciao, Martin
Re: USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
It's ok, I solve my issue last night. My main issue was USB_PROP_LENGTH(12) needed USB_PROP_LENGTH(24). Thx for the link, I'll check it out and see if we used the same approach.