HWRxIntrHandler (Windows Embedded CE 6.0)
1/6/2010
This function handles serial port interrupts.
Syntax
ULONG HWRxIntrHandler(
PVOID pContext,
PUCHAR pTargetBuffer,
PULONG pByteNumber
);
Parameters
- pContext
[in] Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the device.
- pTargetBuffer
[out] Pointer to the target buffer in which to put the data.
- pByteNumber
[in, out] Pointer to, on entry, the maximum number of bytes to read. On exit, the number of bytes read.
Return Value
The return value is the number of bytes dropped by the hardware.
Remarks
This function gets zero or more characters from the hardware receive buffer and puts them into the location pointed to by the pTargetBuffer parameter. If there are no characters available for reading, this function returns immediately. This function is called in response to a receive interrupt 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 |