Partager via


HWTxIntrHandler

This function handles the transmit interrupt for serial port devices.

VOID HWTxIntrHandler(
  PVOID pContext, 
  PUCHAR pSourceBuffer, 
  PULONG pByteNumber 
);

Parameters

  • pContext
    [in] Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the hardware device.
  • pSourceBuffer
    [in] Pointer to the source buffer that contains data to be sent.
  • pByteNumber
    [out] When HWTxIntrHandler is called, pByteNumber points to the maximum number of bytes to send. When HWTxIntrHandler returns, pByteNumber points to the actual number of bytes sent.

Return Values

None.

Remarks

This function clears the transmit interrupt status bit in the hardware and performs any maintenance necessary so that the HWPutBytes function can send data. It is called when the driver detects a transmit interrupt, as set by the HWGetIntrType function.

This function sends several characters to the hardware transmission buffer from the source buffer. This function is called in response to a transmit interrupt notice from the HWGetIntrType function.

This function supports the implementation of the lower layers of serial port drivers.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Serhw.h.

See Also

HWGetIntrType | HWInit | HWPutBytes

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.