Partager via


Device Drivers Code Samples (Compact 7)

3/12/2014

Windows Embedded Compact 7 contains the following code samples that apply to Device Drivers.

Warning

The sample code is only a starting point for development. As with any code, you must ensure proper error handling, identify security risks, and thoroughly test it before considering it for production use.

General

Feature area Description Location Related topic

Introduction to Device Drivers

Demonstrates how to create a device driver project from a sample stream driver, add functionality to control the hardware, and implement device driver features that are used by the OS and applications

Implementing Your Device Driver white paper on the web or in %Program Files%\Windows Embedded Compact 7\Documentation

Device Drivers

Accelerometer Drivers

Feature area Description Location Related topic

Accelerometer Drivers

Provides a sample implementation of an accelerometer model device driver (MDD) and a platform-dependent driver (PDD)

%_WINCEROOT%\public\COMMON\oak\drivers\accelerometer

Accelerometer Driver

Accelerometer Drivers

Provides a sample accelerometer PDD for a system-on-a-chip (SOC) that is based on the Freescale i.MX31 processor

%_WINCEROOT%\platform\common\src\soc\Freescale\mx31_fsl_v1\ACCELEROMETER\pdd

Accelerometer Driver

Accelerometer Drivers

Provides a sample accelerometer PDD for the Freescale i.MX31 board support package (BSP)

%_WINCEROOT%\platform\IMX313DS\SRC\DRIVERS\ACCELEROMETER\PDD

Accelerometer Driver

Accelerometer Drivers

Demonstrates how to use the accelerometer APIs

%_WINCEROOT%\platform\IMX313DS\SRC\TEST\ACCELEROMETER\AccSample

Accelerometer Driver

Audio Drivers

Feature area Description Location Related topic

Audio Drivers

Provides a simple volume and echo filter

%_WINCEROOT%\public\COMMON\oak\drivers\acm\msfilter

Audio Drivers

Audio Drivers

Implements the GSM 6.10 voice encoding standard that was originally developed for digital cellular telephone encoding

%_WINCEROOT%\public\COMMON\oak\drivers\acm\gsm610

Audio Drivers

Audio Drivers

Implements a single audio device that is capable of playing and recording pulse code modulation (PCM) waveform audio

%_WINCEROOT%\public\COMMON\oak\drivers\wavedev

Audio Drivers

Battery Drivers

Feature area Description Location Related topic

Battery Drivers

Provides a sample implementation of a battery driver

%_WINCEROOT%\platform\IMX313DS\SRC\DRIVERS\BATTDRVR\MC13783

Battery Drivers

Bus Drivers

Feature area Description Location Related topic

Bus Drivers

Scans the PCI bus and displays PCI configuration information

%_WINCEROOT%\public\COMMON\oak\drivers\ceddk\test\pcienum

Sample Bus Enumeration Applications

Bus Drivers

Finds and displays any Plug and Play ISA configuration headers

%_WINCEROOT%\public\COMMON\oak\drivers\ceddk\test\isaenum

Sample Bus Enumeration Applications

Camera Drivers

Feature area Description Location Related topic

Camera Drivers

Provides a sample implementation of a camera PDD

%_WINCEROOT%\public\COMMON\oak\drivers\Capture\camera\layered\pdd_null

Camera Drivers

Camera Drivers

Provides a sample implementation of a camera MDD

%_WINCEROOT%\public\COMMON\oak\drivers\Capture\camera\layered\MDD

Camera Drivers

Display Drivers

Feature area Description Location Related topic

Display Drivers

Provides a sample implementation of an ATI Rage XL Expert 98 (Warbird) display driver

%_WINCEROOT%\public\COMMON\oak\drivers\display\ragexl

Display Drivers

Display Drivers

Provides a sample display driver for the VGA linear (flat) framebuffer driver

%_WINCEROOT%\public\COMMON\oak\drivers\display\vgaflat

Display Drivers

Display Drivers

Provides header files that define DirectDraw display driver data structures, class definitions, and function and variable prototypes

%_WINCEROOT%\public\COMMON\oak\inc

Display Drivers

Flash Drivers

Feature area Description Location Related topic

NOR flash

Provides a sample MirrorBit NOR flash driver

%_WINCEROOT%\public\COMMON\oak\drivers\block\msflashfmd\fasl

Flash Drivers

NOR flash

Provides a sample NOR flash Strataflash

%_WINCEROOT%\public\COMMON\oak\drivers\block\msflashfmd\strata\stratad

Flash Drivers

NAND flash

Provides a sample SD NAND flash PCI driver

%_WINCEROOT%\public\COMMON\oak\drivers\block\msflashfmd\sdnpci\sdnpcid

Flash Drivers

OneNAND Flash

Provides a sample MDD/PDD OneNAND flash driver

%_WINCEROOT%\public\COMMON\oak\drivers\block\msflash\PddDrivers\Samsung\OneNand

Flash Drivers

Printer Drivers

Feature area Description Location Related topic

Printer Drivers

Provides a driver for printers that support the Printer Control Language (PCL) interface

%_WINCEROOT%\public\COMMON\oak\drivers\printer

Printer Drivers

Printer Drivers

Provides support for printing over a USB connection

%_WINCEROOT%\public\COMMON\oak\drivers\usb\class\printer

Printer Drivers

Serial Port Drivers

Feature area Description Location Related topic

Serial Port Drivers

Provides lower-layer code to support any number of bus-attached (non-removable) 16x50 serial UARTs

%_WINCEROOT%\public\COMMON\oak\drivers\serial\com16550

Serial Port Drivers, DCB

Serial Port Drivers

Provides a sample installable interrupt service routine (ISR) for the SER16550 serial library

%_WINCEROOT%\public\COMMON\oak\drivers\serial\isr16550

Serial Port Drivers, DCB

Serial Port Drivers

Provides common code for the serial driver PDD 16550

%_WINCEROOT%\public\COMMON\oak\drivers\serial\oo16550

Serial Port Drivers, DCB

Serial Port Drivers

Provides a library for supporting 16550-compatible UARTs

%_WINCEROOT%\public\COMMON\oak\drivers\serial\ser16550

Serial Port Drivers, DCB

Serial Port Drivers

Provides common code for the serial PDD

%_WINCEROOT%\public\COMMON\oak\drivers\serial\serpddcm

Serial Port Drivers, DCB

Serial Port Drivers

Implements a USB function serial client driver

%_WINCEROOT%\public\COMMON\oak\drivers\UsbFn\class\Serial

Serial Port Drivers, DCB

Serial Port Drivers

Provides serial device functions for the Freescale BSPs

%_WINCEROOT%\platform\common\src\soc\Freescale\mx31_fsl_v1\SERIAL

%_WINCEROOT%\platform\common\src\soc\Freescale\mxarm11_fsl_v1\SERIAL

%_WINCEROOT%\platform\common\src\soc\iMX27_MS_v2\Serial

Serial Port Drivers, DCB

Storage/Memory Drivers

Feature area Description Location Related topic

Storage Drivers (Block)

Provides an ATAPI PCI/IDE storage block driver

%_WINCEROOT%\public\COMMON\oak\drivers\block\atapi

Block Drivers

Storage Drivers (Block)

Provides a USB host mass storage client driver

%_WINCEROOT%\public\COMMON\oak\drivers\usb\class\storage\class

%_WINCEROOT%\public\COMMON\oak\drivers\usb\class\storage\disk\SCSI2

Block Drivers

Storage Drivers (Block)

Provides a USB function mass storage driver

%_WINCEROOT%\public\COMMON\oak\drivers\UsbFn\class\storage\transport\bot

Block Drivers

Direct Memory Access (DMA)

Provides a sample implementation of DMA abstraction

%_WINCEROOT%\platform\common\src\soc\x86_ms_v1\dma8237

Direct Memory Access Abstraction Reference

File Systems

Provides a sample file system driver

%_WINCEROOT%\public\COMMON\oak\drivers\fsd\fsdspy

File Systems

Timer Drivers

Feature area Description Location Related topic

Timer Drivers

Provides a timer driver sample

%_WINCEROOT%\public\COMMON\oak\drivers\mmtimer

Timer Helper Library

USB Drivers

Feature area Description Location Related topic

USB Function Drivers

Provides a sample Netchip NET2280 USB 2.0 function bus driver

%_WINCEROOT%\public\COMMON\oak\drivers\UsbFn\controller\net2280

USB Function Drivers

See Also

Concepts

Code Samples

Other Resources

Windows Embedded Compact 7