Fix userspace code to work with the new HAL

Fix libusb userspace code to work with the new HAL,
use new header, commands and sensor struct.