1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-24 06:40:11 +01:00

p4io/usb: clarify jamma reads use interrupt handle

This commit is contained in:
Will Toohey 2021-04-06 20:28:08 +10:00
parent 0b0e7faef0
commit e266aed1f9
2 changed files with 3 additions and 3 deletions

View File

@ -75,9 +75,9 @@ void p4io_usb_close(HANDLE p4io_handle) {
p4io_handle = INVALID_HANDLE_VALUE;
}
bool p4io_usb_read_jamma(HANDLE jamma_handle, uint32_t jamma[4]) {
bool p4io_usb_read_jamma(HANDLE interrupt_handle, uint32_t jamma[4]) {
DWORD bytes_returned;
if(!DeviceIoControl(jamma_handle, P4IO_IOCTL_READ_JAMMA_2, NULL, 0, jamma, sizeof(uint32_t[4]), &bytes_returned, NULL)) {
if(!DeviceIoControl(interrupt_handle, P4IO_IOCTL_READ_JAMMA_2, NULL, 0, jamma, sizeof(uint32_t[4]), &bytes_returned, NULL)) {
log_warning("jamma read failed");
return false;
}

View File

@ -7,7 +7,7 @@
HANDLE p4io_usb_open(void);
void p4io_usb_close(HANDLE p4io_handle);
bool p4io_usb_read_jamma(HANDLE jamma_handle, uint32_t jamma[4]);
bool p4io_usb_read_jamma(HANDLE interrupt_handle, uint32_t jamma[4]);
bool p4io_usb_read_device_name(HANDLE bulk_handle, char name[128]);
bool p4io_usb_transfer(
HANDLE bulk_handle,