You could take a look at the USB Host and Android Accessory Protocol implementation on github sc_android_aap. This is a slightly up from bit banging as this uses a low cost simple USB transceiver like a USB1T11A which requires a 4bit port and 4 1bit ports, which, makes things slightly easier to implement and leaves the Xmos GPIOs less exposed.
That might just do the trick for you?
regards
Al
HID WebCamera
-
- XCore Legend
- Posts: 1274
- Joined: Thu Dec 10, 2009 10:20 pm
-
- Junior Member
- Posts: 6
- Joined: Thu Jul 17, 2014 4:07 pm
Hi guys,
I managed to write the endpoint0.xc (descriptors and report descriptors) but i still don't know how to write a main.xc for a web camera. I saw the example of the mouse but no help.
If any one knows it'll be very helpful.
I managed to write the endpoint0.xc (descriptors and report descriptors) but i still don't know how to write a main.xc for a web camera. I saw the example of the mouse but no help.
If any one knows it'll be very helpful.
-
Verified
- XCore Legend
- Posts: 1163
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
The mouse example is for a USB device, it sounds like you are trying to write a USB host, so I'm pretty confused..
You are going to need external hardware - just wiring up to the I/O's on a XK-1 has no chance of working.
You are going to need external hardware - just wiring up to the I/O's on a XK-1 has no chance of working.