mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2024-12-01 01:27:18 +01:00
p4io/usb: clarify jamma reads use interrupt handle
This commit is contained in:
parent
0b0e7faef0
commit
e266aed1f9
@ -75,9 +75,9 @@ void p4io_usb_close(HANDLE p4io_handle) {
|
|||||||
p4io_handle = INVALID_HANDLE_VALUE;
|
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;
|
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");
|
log_warning("jamma read failed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
HANDLE p4io_usb_open(void);
|
HANDLE p4io_usb_open(void);
|
||||||
void p4io_usb_close(HANDLE p4io_handle);
|
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_read_device_name(HANDLE bulk_handle, char name[128]);
|
||||||
bool p4io_usb_transfer(
|
bool p4io_usb_transfer(
|
||||||
HANDLE bulk_handle,
|
HANDLE bulk_handle,
|
||||||
|
Loading…
Reference in New Issue
Block a user