Skip to content

Latest commit

 

History

History
108 lines (76 loc) · 4.09 KB

nf-sercx-sercxcompletewait.md

File metadata and controls

108 lines (76 loc) · 4.09 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:sercx.SerCxCompleteWait
SerCxCompleteWait function (sercx.h)
The SerCxCompleteWait method notifies the serial framework extension (SerCx) that an event in the current wait mask has occurred.
serports\sercxcompletewait.htm
serports
04/23/2018
SerCxCompleteWait function
1/SerCxCompleteWait, SerCxCompleteWait, SerCxCompleteWait method [Serial Ports], serports.sercxcompletewait
sercx.h
Universal
Available starting with Windows 8.
<= DISPATCH_LEVEL
Windows
SerCxCompleteWait
sercx/SerCxCompleteWait
APIRef
kbSyntax
COM
1.0\Sercx.h
SerCxCompleteWait

SerCxCompleteWait function

-description

The SerCxCompleteWait method notifies the serial framework extension (SerCx) that an event in the current wait mask has occurred.

-parameters

-param Device [in]

A WDFDEVICE handle to the framework device object that represents the serial controller.

-param Event [in]

The type of event that is ending the current wait operation. This parameter is a wait mask value. Each event type corresponds to a particular bit in the wait mask. This bit is set to indicate that the corresponding event has occurred. For more information about the types of events that can be specified by a wait mask, see SERIAL_EV_XXX.

-returns

SerCxCompleteWait returns STATUS_SUCCESS if the call is successful. Possible error return values include the following status code.

Return code Description
STATUS_INVALID_PARAMETER
The specified event is not included in the current wait mask.

-remarks

When SerCx receives an IOCTL_SERIAL_SET_WAIT_MASK request from a client, the request handler in SerCx calls the EvtSerCxWaitmask callback function to notify the serial controller driver that the wait mask has changed. The wait mask specifies a set of hardware events for the serial controller to monitor. During this call, the driver discards any old wait mask that might have been specified in a previous EvtSerCxWaitmask call, and then configures the serial controller hardware to detect the events in the new wait mask.

Later, when an event in the new wait mask occurs, the driver calls SerCxCompleteWait to notify SerCx of the event. If a previously sent IOCTL_SERIAL_WAIT_ON_MASK request is pending, SerCxCompleteWait completes this request with a status of STATUS_SUCCESS and an output wait mask that indicates which event occurred. Otherwise, SerCxCompleteWait stores the event in its internal event history in anticipation of a future IOCTL_SERIAL_WAIT_ON_MASK request.

-see-also

EvtSerCxWaitmask

IOCTL_SERIAL_SET_WAIT_MASK

IOCTL_SERIAL_WAIT_ON_MASK

SERIAL_EV_XXX

SerCxGetWaitMask