|
Description
Provides an example RTX device driver and application that uses a simple driver library to connect applications and drivers together.
Source Files
RtDriver.lib is an RTDLL built from two files:
RtdLibApp.c
provides RTX device library application-side library functions;
"open", "close" and "transfer - read, write, ioctl" interface, layered on top of RTX IPC. RtdLibDrv.c
provides RTX device library driver-side library functions;
register, unregister, dispatch. The driver library is used by:
DioDriver.c
, a simple RTX device driver that reads a DIO board's
digital input port. The DIO driver is used by:
App.c
, an application to test the DIO device driver by
opening the driver, reading DIO input and printing a value.Remarks
NOTE: Win32 and RTSS processes can access the driver, which may be a Win32 process during testing, and later an RTSS process when finalized, with the same API.
APIs Referenced
RTAPI |
Win32 APIs |