Home |
The ISO 9660 File System Structure The exFAT File System Structure RTFiles-32 in Embedded Applications Device Drivers |
Device DriversThis section describes characteristics and configuration options of the device drivers included with RTFiles-32. RTFiles-32 uses a device list to find all available devices. The device list is an array of structures (type RTFDevice) named RTFDeviceList, where each structure describes a single physical device. Structure RTFDevice has the following layout: typedef struct { int DeviceType; int DeviceNumber; DWORD DeviceFlags; RTFDriver * Driver; void * DriverData; RTFDeviceData DevData; // reserved for RTFiles-32's internal use } RTFDevice; This section describes how this structure must be filled for each driver, respectively. Device driver independent device flags in RTFDriver.DeviceFlags have already been discussed in section Device List, which also explains how to define a custom device configuration. RTFDevice.DriverData is a void pointer; however, each driver defines a unique structure to which this field must point. Most drivers support this structure to be initialized to 0 to get the driver's default behavior. Other drivers may require additional configuration data. All these structures are declared in header file Rtfiles.drv in the Include directory and are explained in this section. Some drivers may require various timeout values. Timeouts are always specified in milliseconds.
|