Skip to main content

Toradex CE Libraries and Code Samples

Toradex CE Libraries

The Toradex Libraries are intended to support all major interfaces and Toradex OS extensions for your Windows CE environment.

The libraries are currently available for Colibri T20, T30, VFxx, iMX6, iMX7, as well as for Apalis T30 and iMX6 modules.

The ZIP file contains

  • A dll containing all libraries
  • static lib files for Visual Studio
  • Header Files
  • A *.chm help file containing the API reference.
    The help file will give you an overview of the supported features as well as detailed reference information for all libraries.

Important Note: Windows normally blocks the content of .chm help files. When you open the file, you will only be able to see the navigation tree, but no content!
To enable the contents:

  • Store the .chm file on a local folder (not a network drive)
  • In the file explorer, right-click onto the file, and open the Properties dialog
  • Press the Unblock button.

Source Code

Source Code for the libraries is available and can be obtained by purchasing the number of support hours given in the right-most column and then contacting us to arrange delivery.

You may request updates to source code for six months after the date of purchase.

LibraryDescriptionSource Code Price
AdcLibRead the four analog-to-digital channels2h1
CanLibInterfaces to the FlexCan and MCP2515 CAN Controller2h2
ClkLibTurn on and off internal clockN.A.
CoprocLibInterfaces to the ARM Co-Processor registersN.A.
GpioLibManages General Purpose IO pins2h
I2cLibCommunication via the I2C interfaces2h
IntLibManages installable Interrupt Service Routines2h
KernelCallbackLibCall Kernel functions from User ModeN.A.
MapMemLibMapping of physical registers to virtual addresses2h
PwmLibPWM Frequencies and duty cycles2h
RpmsgLibRPMSG communication between main core and Cortex-M4 coreN.A.
SpiLibCommunication via SPI interfaces2h3
SysinfoLibProvides access to hardware/software information2h
UpdateLibProgramming of Image/Bootloader/Registry into on-board flashN.A.
WatchdogLibManages the integrated Watchdog2h
1No AdcLib source code for VF50 and VF61.2No Source code for Flexcan. Source code is only available for the MCP2515 SPI CAN implementation.3No SpiLib source code for iMX6 and iMX7.

Library Dependencies

The following table shows the dependencies between the various libraries.

A library listed in the column header requires all libraries marked in the same column underneath this header.

 AdcCanClkCoprocGpioI2cIntKernelCallbackMapMemPwmRpmsgSpiSysinfoUpdateWatchdog
AdcN.A.
CanN.A.
ClkxN.A.xxxxx
CoprocxxxN.A.xxxxxxxx
GpioxxN.A.xxx
I2cxN.A.x
IntxxxN.A.xx
KernelCallbackxxxN.A.x
MapMemxxxxxxN.A.xxxxx
PwmN.A.
RpmsgN.A.
SpixN.A.
SysinfoxN.A.
UpdateN.A.
WatchdogN.A.


Legacy Windows CE Software Libraries for PXA and Tegra Modules

The table below details the libraries currently available - a consolidated library containing binary versions of these libraries, demos, sample code and change notes can be downloaded here:

The libraries can be used for CE5, CE6, WEC7 and WEC203. Use the libraries in folders as stated below:

OSFolder NameNotes
Windows CE5Toradex_CE600 (ARMv4I)Debug/Release
Windows CE6Toradex_CE600 (ARMv4I)Debug/Release
Windows Embedded Compact 7Toradex_CE600 (ARMv4I)Debug/Release
Windows Embedded Compact 2013Toradex_CE800 (ARMv4I)Debug/ReleaseAvailable in library release V2.0 and later

NOTE: For VFxx libraries, check the section Toradex CE Libraries for VFxx above.

Use of this software is subject to an End user License Agreement which can be viewed here:

Source Code

Source Code for the libraries is available and can be obtained by purchasing the number of support hours given in the right-most column and then contacting us to arrange delivery. You may request updates to source code for six months after the date of purchase.

The table entries are encoded as follows:

f = full support
p = partial support

  • = no support
    N.A. = not available
LibraryDescriptionApalis T30Colibri T30Colibri T20PXA3xxPXA270Source Code Price
ADCLibCommunicates with audio codec and four analog-to-digital channelsfffff4h
CANLib-SJA1000Interfaces to SJA1000 CAN Controller-ffff4h
CANLib-MCP2515Interfaces to MCP2515 CAN Controllerfffff4h
CLKLibManages clocks settingsfffff2h
CloudLibAllows access to the Amazon Web Services (AWS) platformfffffN.A.
CoProcLibInterfaces to the Co-Processor registers for Clock and Power modesfffffN.A.
DMALibDMA handling, including channel allocation and DMA transfer control---ff4h
FreqLibManages clock frequencies and core voltage of the modulefffff2h
GPIOLibManages General Purpose IO pinsfffff2h
I2CLibManages communications via the I2C interfacesfffff2h
ImgInfoLibProvides functions to work with flash images---ff4h
IntLibManages installable Interrupt Service Routinesfffff2h
MapRegLibProvides for the mapping of physical registers to virtual addressesfffff2h
MemLibManages memory timings---ffN.A.
OverlayLibRGB and YUV Overlays for use with video and images---ff4h
PWMLibManages the PWM interfacesfffff2h
SPILib / SPIDMALibManages the SPI interfaces (polled)fffff2h
SysInfoLibProvides access to configuration information-ffff4h
UpdateLibManages programming of Image/Bootloader/Registry in on-board flash-ppffN.A.
WatchDogLibManages the integrated Watchdog---f-2h

Legacy Library API for VFxx

Important Note: There is no further development or support on these legacy libraries. We strongly recommend to use the new Toradex CE Libraries for VFxx and iMX6!

For compatibility reasons, we first implemented some of libraries with VF50 / VF61 support using the legacy API. This includes

  • ClkLib, CoProcLib, GpioLib, I2cLib, ImgInfoLib, IntLib, KernelCallbackLib, MapRegLib

If you need to redownload old libraries please contact support@toradex.com

Only the Toradex Windows CE release V1.0 for Vybrid and later is supported by these legacy libraries.

Sample codes

We provide sample demo codes which enables user to quickly test the peripherals on Toradex CoMs.

Sample CodeDescriptionApalis T30Colibri T30Colibri T20PXA3xxPXA270
Camera DemoParallel camera interface demo projectfff--

Camera demo project build setup:

  1. Download Windows CE Software Libraries for PXA and Tegra Modules.
  2. Extract the content in a directory.
  3. Keep CameraDemo project inside the LibsDemos directory.
  4. Copy \CameraTegra\VSproperty directory files to \wincelib_bin_V2_0bis_2868(Windows CE software library directory).
  5. If Toradex SDK is not installed, download and install SDK.
  6. Open the project(".sln" or ".vcproj") file in Visual studio 2008 and build the project.

NOTE: If you have any questions or feedback, please contact our support.



Send Feedback!