Test Your Driver by Using a Console Application (Compact 7)
3/12/2014
To quickly perform a unit test of a device driver that is under development, you can use a console application. This section provides the basic steps to:
- Create a console test application
- Use the proper call sequence to load and access the driver
- Show the relationship between calls that are made from the console application to the driver itself
You can simplify your testing process by dynamically loading the device driver through the console application, instead of by permitting Device Manager to load the driver for you at boot time. By following this practice, you can simplify testing and debugging your driver, particularly with driver initialization. For more information about the registry settings that are required to manually load your driver, see Plan Your Device Driver.
Note
Testing with a console application was chosen here for simplicity. You can also test your driver by using other application types.
In This Section
- Create Your Console Application
Shows how to create an application as a subproject of your OS design in Platform Builder.
- Call Driver Functions by Using Device Manager
Provides example code that shows you how to load, open, close, and deactivate your driver.
- Run Your Console Application
Shows how to run your console application on your device.
- Map Between Console Functions and Driver Functions
Shows which driver functions the Device Manager invokes when the console application makes core function calls.