Get The Manufacturer String from a USB device.
[manufacturer_string,manufacturer_success]=get_manufacturerusb(comu_type)
Get the Manufacturer string of an USB Device. Scilab macro's for hid_get_manufacturer
This is a macro designed to use the hid_get_manufacturer
The "bulk", "iso" and "cdc" implementantion are missing
clc VendorID="04D8"; ProductID="900A"; init_success=initusb("hid"); if ( init_success < 0 ) then disp("unable to initialize the HIDAPI Library"); return else disp("HIDAPI Library initialized"); end open_success=openusb(VendorID,ProductID,"hid"); if ( open_success < 0 ) then disp("unable to open device"); return else disp("Device Open"); end [manufacturer_string,manufacturer_success]=get_manufacturerusb("hid") if ( manufacturer_success < 0 ) then disp("unable to get manufacturer string"); close_success=closeusb("hid"); exit_success=exitusb("hid"); return else disp(manufacturer_string); end close_success=closeusb("hid"); if ( close_success < 0 ) then disp("unable to closed device"); else disp("device closed"); end exit_success=exitusb("hid"); if ( exit_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 | ![]() | ![]() |