I tried to use USB Logical Device Driver (USB_LDD) in device mode together with MQX and KwikStik. All documents about USB_LDD and code segments that I can find are in help content of Processor Expert Manuals, so I copied those code segments from Typical Usage section, and then got the following compilation errors:
undefined identifier 'USB_Device_SET_ADDRESS'
undefined identifier 'LDD_USB_TSetAddressRequest'
undefined identifier 'MAX_INTERFACE_NUMBER'
undefined identifier 'MAX_EP_IDX'
I searched in all files of CW10 and MQX 3.7, and could not find definition of USB_Device_SET_ADDRESS, therefore it looks like that there are support files missing for USB_LDD. It seems not possible for me to proceed further.
May Freescale please give an example of using USB_LDD in device mode together with MQX and Kinetis, or any example of using USB_LDD in device mode? There must exist some code to test USB_LDD when USB_LDD was developed.