Skip to main content

libusbx

danger

this is a legacy library and thus not supported by Toradex anymore. We recommend that you use the new libraries for all Toradex modules. Please see the Toradex CE Libraries and Code Samples for up-to-date information.


Project Description

libusbx is an open source library that allows you to communicate with USB devices from userspace. As a library, it is meant to be used by developers, to facilitate the production of applications that communicate with USB hardware.

        logo libusbx project

  • It is portable: Using a single cross-platform API, it provides access to USB devices on Linux, OS X, Windows and OpenBSD.
  • It is user-mode: No special privilege or elevation is required for the application to communicate with a device.
  • It is version-agnostic: All versions of the USB protocol, from 1.0 to 3.0 (latest), are supported.

Support

Please note that this Toradex cannot give any support for this project. We had the impression this could be a useful building block when designing an application based on Toradex computer modules.

For source code and documentation about the project, including the required registry settings, please refer to the libusbx project home page:
http://libusbx.org/

Tests on Colibri

The libusbx driver was successfully built and tested in the following environment:

  • Colibri PXA270
  • Windows CE6 (V4.2)

Download

You can download a compiled version for Windows CE6 through the following link:

Notes for Building the Library in Platform Builder

At the time of writing this article, the downloadable source code did not build in Platform Builder (PB).

The sources file was stored in Linux style, with LF line endings only. This caused the PB build process to finish without error message, but also without generating any code.
There's a simple workaround: open the sources file in a text editor, change line endings to CR+LF.



Send Feedback!