we have loaded the last version of the USB DrDAQ SDK r10._5_0_32 (zip file). The programmer's documentation contained in this archive indicates, as well asœ the header file usbDrDaqApi.h, that all library functions, such as UsbDrDaqEnableRGBLED, return only one value of type PICO_STATUS.
However, if we load the library (DLL file) in Matlab (R2013a) and check the signatures of the functiions contained in the library, we get apparently incompatible signatures. For instance, the signature for the led enabling function is:
[lib.pointer, voidPtr, voidPtr] UsbDrDaqEnableRGBLED (voidPtr, voidPtr)
From this signature it is not clear how to get the return value (ok or error), for instance.
Can you explain why the function signatures in the header file seem to differ from those provided by Matlab (all files charged come from the same archive file mentioned above)?
How can we know which of the return values the Matlab signature indicate which real return value and type?