cancel
Showing results for 
Search instead for 
Did you mean: 

I don't understand USE_USBD_COMPOSITE

MA4
Associate III

Hello,

Sorry if it's a *** question but I don't understand something.
I want to have an HID and MassStorage usb device. I've seen that ST add USE_USBD_COMPOSITE but I don't understand why we use it for USBD_ClassTypeDef.
For me, we have 1 device desc + 1 config desc with 2 interfaces, it's not enough to have only 1 class (with 
init, setup, dataIn, dataOut, getHsDesc) and put 2 registerInterface in MX_USB_DEVICE_Init and an if(epnum == HidEp) else if(epnum == MscEp) in dataIn and dataOut ?

I think I missing something.

Thank you for your answer.

0 REPLIES 0