RtWritePortBufferUchar
RtWritePortBufferUshort
RtWritePortBufferUlong
The RtWritePortBuffer* calls copy data from a buffer to an I/O port until the buffer has been emptied using a number of bytes that you specify for each write operation.
Syntax
VOID RtWritePortBufferUchar(
[in] PUCHAR PortAddress,
[in] PUCHAR pBuffer,
[in] ULONG nNumberOfBytes
);
VOID RtWritePortBufferUshort(
[in] PUSHORT PortAddress,
[in] PUSHORT pBuffer,
[in] ULONG nNumberOfBytes
);
VOID RtWritePortBufferUlong(
[in] PULONG PortAddress,
[in] PULONG pBuffer,
[in] ULONG nNumberOfBytes
);
Parameters
[in] PortAddress
A Port I/O address cast as a pointer to the type of data being written.
[in] pBuffer
A pointer to a buffer of one-, two-, or four-byte quanta.
[in] nNumberOfBytes
The number of bytes to be read at one time. Acceptable values are 1, 2, and 4.
Remarks
RtWritePortBufferUchar, RtWritePortBufferUshort, and RtWritePortBufferUlong write a buffer to an I/O port 1, 2, or 4 bytes at a time until the buffer has been emptied.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtApi.h |
RtApi.lib (Windows), Startup.lib (RTSS) |
See Also: