Share via


HWPutBytes (Windows Embedded CE 6.0)

1/6/2010

This function writes bytes to hardware. It is called by a driver.

Syntax

ULONG HWPutBytes(
  PVOID pContext,
  PUCHAR pSrc,
  ULONG NumberOfBytes,
  PULONG pBytesSent 
);

Parameters

  • pContext
    [in] Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the device.
  • pSrc
    [in] Pointer to the bytes to be sent.
  • NumberOfBytes
    [in] Specifies the number of bytes to be sent.
  • pBytesSent
    [out] Pointer to the actual number of bytes written.

Return Value

This function returns zero or the minimum number of milliseconds before the upper layer should call again.

Remarks

This function is used if the device does not support interrupt-based indications of changes in the status of hardware flow-control lines. The upper layer calls again to see if the flow-control condition has been removed.

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
HWInit