I think I should be able to rewrite the communication lib using usbhs, but I can't even get the switch to discover the device at all.
My current minimal code looks like this:
Code: Select all
memset(interfaces, 0, sizeof(interfaces));
memset(&filter, 0, sizeof(filter));
filter.Flags = 0
rc = usbHsQueryAllInterfaces(&filter,interfaces,sizeof(interfaces),&total_entries);
if (R_FAILED(rc)) printf("querying interfaces: 0x%x\n", rc);
if (R_SUCCEEDED(rc)) printf("queried interfaces. Found %d\n",total_entries);
Am I approaching this the right way, or is there a better way to talk to USB devices?