次の方法で共有


HWTxIntrHandler (Windows Embedded CE 6.0)

1/6/2010

This function handles the transmit interrupt for serial port devices.

Syntax

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 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 Value

None.

Remarks

This function clears the transmit interrupt status bit in the hardware and performs necessary maintenance so that the HWPutBytes function can send data. It is called when the driver detects a transmit interrupt, which is 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

Header serhw.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Serial Port Driver PDD Functions
HWGetIntrType
HWInit
HWPutBytes