Scilab macro's for hid_exit
exit_success=exitusb(comu_type)
Scilab macro's for hid_exit
This function frees all of the static data associated with HIDAPI. It should be called at the end of execution to avoid memory leaks.
This is a macro designed to use the hid_exit
The "bulk", "iso" and "cdc" implementantion are missing
n=5; txBuff=init_buff(n); for i=1:n txBuff=setBuffValue(txBuff,i,i); end init_success=initusb("hid"); if ( init_success < 0 ) then disp("unable to initialize the HIDAPI Library"); return else disp("HIDAPI Library initialized"); end exit_success=exitusb("hid"); if ( init_success < 0 ) then disp("unable to free static data associated with HIDAPI Library"); return else disp("HIDAPI Library have been freed all of the static data associated"); end | ![]() | ![]() |