I approach APIs the way I approach user documentation in general: I do everything I can to provide users the information they need to do their jobs. I keep asking questions, and I know enough C/C++ and Java to understand the answers. I have used these skills to develop and improve several API references.
For example, when I added an audio class to an API reference, I began with little more than a source listing and an SME name.
Get the ISO endpoint address of an audio stream.
cc_ptr | [IN] | Device instance handle | |
bDirection | [IN] | Audio stream direction | |
bEP | [OUT] | ISO EP address |
Use this function to get the ISO endpoint address (bEP) as a parameter for audio-class-request function calls.
This example, from the AudDrv.c example file included in your installation, gets the ISO endpoint address bUnit, and uses it as a parameter to call usb_host_aud_set_ class_ep_ctlr() to set the current sampling frequency.
mhammond@compuserve.com
650-787-9241