mirror of https://github.com/EspoTek/Labrador.git
12 lines
402 B
Plaintext
12 lines
402 B
Plaintext
clear all
|
|
|
|
global usb_handle
|
|
if ~length(usb_handle)
|
|
warning('USB Handle not initialised. Initialising!')
|
|
mex_usb_init('03eb', 'a000')
|
|
end
|
|
|
|
%mex USB_ISO_INIT.c -Iincludes -llibusbK -Lbin\lib\amd64
|
|
%USB_ISO_INIT(usb_handle)
|
|
[isoCtx_0, isoCtx_1, ovlkHandle_0, ovlkHandle_1, ovlPool, isoBuffer] = USB_ISO_INIT(usb_handle)
|
|
%USB_ISO_LOOP(usb_handle, isoCtx, ovlkHandle, ovlPool, isoBuffer, uint8(0)) |