User`s manual

Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 35 -
EKF Elektronik GmbH * Philipp-Reis-Str. 4 * D-59065 HAMM (Germany)
Tel. +49 (0)2381/6890-0 * Fax. +49 (0)2381/6890-90 * E-Mail info@ekf.de * Internet http://www.ekf.de
Note:
1
) The line control settings are returned in this structure. It is defined in the C header file
“ntddekf.h” delivered with the driver installation package.
Get Modem Status: IOCTL_SERIAL_GET_MODEMSTATUS
This I/O control request returns the current modem line settings of a serial port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_GET_MODEMSTATUS,
NULL,
0,
&Status, // pointer to a DWORD variable
1
)
sizeof(Status),
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) The modem status settings are returned in this DWORD variable. The value returned
reflects the current contents of the UART’s modem status register (MSR). See UART 16550
data sheet for details of the MSR.
Get Device Properties: IOCTL_SERIAL_GET_PROPERTIES
This I/O control request returns information about the capabilities of a serial port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_GET_PROPERTIES,
NULL,
0,
pProperties, // pointer to a SERIAL_COMMPROP structure
1
)
sizeof(*pProperties),
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) The capability information is returned in this structure. It is defined in the C header file
“ntddekf.h” delivered with the driver installation package.