User`s guide
viii Contents
Using Critical Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30
Understanding Critical Sections . . . . . . . . . . . . . . . . . . . . . 5-30
Example: Using a Critical Section . . . . . . . . . . . . . . . . . . . . 5-31
Specifying Device Driver Identification Information . . . . . 5-33
User Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Defining Device-Specific Properties
6
Defining Device-Specific Properties . . . . . . . . . . . . . . . . . . . . 6-2
User Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Suggested Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Creating Device Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
Selecting the Property Creation Function . . . . . . . . . . . . . . . 6-5
Creating Property Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
Example getDeviceAttributes() Function . . . . . . . . . . . . . . . . 6-6
Defining Hardware Trigger Configurations . . . . . . . . . . . . . . 6-9
Implementing Get and Set Support for Device-Specific
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-10
Setting Up Get Listeners in Your Adaptor . . . . . . . . . . . . . 6-10
Setting Up Set Listeners in Your Adaptor . . . . . . . . . . . . . . 6-14
Storing Adaptor Information in an IMDF File
7
Using the IMDF Markup Language . . . . . . . . . . . . . . . . . . . . . 7-2
User Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
Elements of the IMDF Markup Language . . . . . . . . . . . . . . . 7-2
Creating an IMDF File: Toplevel Elements . . . . . . . . . . . . . . 7-4