<< bulk_exit BULK Basic's commands bulk_open >>

USB Comunication Toolbox for Scilab >> BULK with libusb-1.0 Library > BULK Basic's commands > bulk_init

bulk_init

Initializes the Libusb-1.0 Library

Calling Sequence

init_success = bulk_init()

Parameters

init_success
: This function returns 0 on success and -1 on error.

Description

Initializes the Libusb-1.0 library

This function initializes the Libusb-1.0 library.

If the device its not closed once have been opened Scilab, eventualy, will crash down because a segmentation fault

Examples

init_success=bulk_init();
if ( init_success < 0 ) then
   disp("unable to initialize the Libusb-1.0 Library");
   return
else
   disp("Libusb-1.0 Library initialized");
end
exit_success=bulk_exit();
if ( init_success < 0 ) then
   disp("unable to free static data associated with Libusb-1.0 Library");
   return
else
   disp("Libusb-1.0 Library have been freed all of the static data associated");
end

See Also

Authors

<< bulk_exit BULK Basic's commands bulk_open >>