Created Tue, 21 Apr 2015 12:25:37 +0000 by Addidis
Tue, 21 Apr 2015 12:25:37 +0000
Im looking to make the usbHIDhost example to recognize a Logitech extreme 3d pro joystick instead of a mouse. I managed to get it to work once by accident and thought it was going to just work but it was some sort of fluke enumeration and I cannot repeat it with out modifying the tpl . I am fairly confident this is what needs to be changed (probably some report buffers too once it starts working a bit) . But Im not finding any actual documentation on the lib or its functions . Am I missing something obvious? I know with usb otg host's you need to specifically tell it to accept devices. I just can't figure out what this line here is actually saying to change it to say yes, accept joysticks, not mice.
// ***************************************************************************** // USB Embedded Host Targeted Peripheral List (TPL) // *****************************************************************************
USB_TPL usbTPL[] = { { INIT_CL_SC_P( 3ul, 1ul, 2ul ), 0, 0, {TPL_CLASS_DRV} } // (null) };
Tue, 21 Apr 2015 12:29:16 +0000
My bad the lib in question is obtained here... https://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,942&Prod=CHIPKIT-NETWORK-SHIELD
DSD-0000318 states "This zip file contains libraries and documentation"
Tue, 21 Apr 2015 15:34:31 +0000
I think I just found my answer at the top of another file... So this is the MAL so the microchip documents should work?
chipKITUSBHIDHost.h -- USB HID Host Class "HID Host Class thunk layer to the MAL "
http://ww1.microchip.com/downloads/en/AppNotes/01141a.pdf
etc
This is what you want toget the USBhostHID example working with a logitech extreme 3d pro joystick, using the middle buttons on the base,
{ INIT_CL_SC_P( 3ul, 0ul, 0ul ), 0, 0, {TPL_CLASS_DRV} }