lpcware

Still Image Class Host Mode Driver

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Pascal on Tue Apr 03 05:48:09 MST 2012
Hi

I am new to nxpUSBLib. I am trying to develop a embedded capture controller for my Nikon D90.

I got the library and my project compiling and I get called back in EVENT_USB_Host_DeviceEnumerationComplete after attaching my camera. I then configure the pipes (SI_Host_ConfigurePipes) and set the configuration (USB_Host_SetDeviceConfiguration) which all works without errors.

As a first step, I want to retrieve a device-info using GetDeviceInfo-command.
<code>
uint32_t params[] = {0x00000000, 0x00000000, 0x00000000}; /* According to PIMA must be all 0 */

errCode = SI_Host_SendCommand (&mySIInterfaceInfo, 0x1001, 3, params); /* 0x1001 is operation code "GetDeviceInfo" */
</code>
I am a bit stuck here now. I am not sure how to read the data. As I see from PIMA, there is no event to notify about data ready to read. Do I need to poll? Poll for what? After successful polling, use SI_Host_ReadData to retrieve data and then check for response received with SI_Host_ReceiveResponse?

Any tips and suggestions to bring some light into the dark are highly appreciated!

Thanks and best regards!

Outcomes