User`s manual
Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 19 -
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
ReceivedCount:
The number of characters received successfully.
TransmittedCount:
The number of characters transmitted successfully.
FrameErrorCount:
The number of framing errors detected by the serial controller.
SerialOverrunErrorCount:
The number of overruns of the serial controller’s internal receive FIFO.
BufferOverrunErrorCount:
The number of overruns of the read ring buffer maintained by the firmware.
ParityErrorCount:
The number of parity errors detected by the serial controller.
SERIAL_STATUS
A structure that is used to get the current error and general status of a serial port.
typedef struct _SERIAL_STATUS
{
ULONG Errors;
ULONG HoldReasons;
ULONG AmountInInQueue;
ULONG AmountInOutQueue;
BOOLEAN EofReceived;
BOOLEAN WaitForImmediate;
} SERIAL_STATUS, *PSERIAL_STATUS;
Errors:
A set of flags that reflect the possible errors occurred on a serial port:
SERIAL_ERROR_BREAK: a break condition was detected,
SERIAL_ERROR_FRAMING: a framing error was detected,
SERIAL_ERROR_OVERRUN: an overrun of the serial controller’s internal
receiver FIFO occurred,
SERIAL_ERROR_BUFFEROVERRUN: an overrun of the read ring buffer
maintained by the firmware occurred,
SERIAL_ERROR_PARITY: a parity error was detected.
HoldReasons:
A set of flags that reflects the reasons why a port could be holding:
SERIAL_TX_WAITING_FOR_CTS
SERIAL_TX_WAITING_FOR_DSR
SERIAL_TX_WAITING_FOR_DCD
SERIAL_TX_WAITING_FOR_XON
SERIAL_TX_WAITING_XOFF_SENT