midi2-dev / usbMIDI2DescriptorBuilder

A USB MIDI 2.0 Decriptor Builder
5 stars 1 forks source link

Feature Request: TotalLength in desc_fs_configuration #2

Open AmeNote-Michael opened 1 year ago

AmeNote-Michael commented 1 year ago

Can the TotalLength be based on a #define variable like desc_fs_configuration_length.

Then desc_fs_configuration_length could be based on further defines like:

define desc_cdc_length xx

define desc_midi1_length yy

define desc_midi2_length zz

define desc_fs_configuration_length desc_cdc_length + desc_midi1_length + desc_midi2_length

starfishmod commented 11 months ago

Can you explain the reason this is wanted?

AmeNote-Michael commented 11 months ago

Can you explain the reason this is wanted?

We are being arrogant assuming that we are the only items in a full descriptor - and if anyone wants to "include" these descriptors into their own offering, it would be nice for them to just edit parameters instead of direct hex output.

For example, one project I have I use a jumper to determine if adding PicoProbe or not - I needed to figure out where sizes were and then create my own parameters to use. Thus I think it would be best to have as a parameter.