Editar

Compartir a través de


SerCx2PioTransmitDrainFifoComplete function (sercx.h)

The SerCx2PioTransmitDrainFifoComplete method notifies version 2 of the serial framework extension (SerCx2) that the serial controller driver has finished draining the data from the transmit FIFO in the serial controller hardware.

Syntax

void SerCx2PioTransmitDrainFifoComplete(
  [in] SERCX2PIOTRANSMIT PioTransmit
);

Parameters

[in] PioTransmit

A SERCX2PIOTRANSMIT handle to a PIO-transmit object. The serial controller driver previously called the SerCx2PioTransmitCreate method to create this object.

Return value

None

Remarks

SerCx2 calls the SerCx2PioTransmitDrainFifoComplete event callback function, if it is implemented, to drain the transmit FIFO at the end of a PIO-transmit transaction. This function makes sure that any data bytes that remain in the FIFO are transmitted from the serial port before SerCx2 completes the write (IRP_MJ_WRITE) request that initiated the transaction. After the last byte is transmitted from the FIFO, the serial controller driver must call the SerCx2PioTransmitDrainFifoComplete method to notify SerCx2. SerCx2 expects this notification and does not complete the write request until it is notified.

The serial controller driver must call SerCx2PioTransmitDrainFifoComplete only in response to a call to the EvtSerCx2PioTransmitDrainFifo function.

For more information, see SerCx2 PIO-Transmit Transactions.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 8.1.
Target Platform Universal
Header sercx.h
IRQL <= DISPATCH_LEVEL

See also

EvtSerCx2PioTransmitDrainFifo

IRP_MJ_WRITE

SERCX2PIOTRANSMIT

SerCx2PioTransmitCreate