RtReadPortBufferUchar
RtReadPortBufferUshort
RtReadPortBufferUlong

RtReadPortBuffer* calls copy data from an I/O port to a buffer until the buffer has been filled using a number of bytes that you specify for each read operation.

Syntax

Copy
VOID RtReadPortBufferUchar(
    [in]    PUCHAR PortAddress,
    [in]    PUCHAR pBuffer,
    [in]    ULONG Count
);

VOID RtReadPortBufferUshort(
    [in]    PUSHORT PortAddress,
    [in]    PUSHORT pBuffer,
    [in]    ULONG Count
);

VOID RtReadPortBufferUlong(
    [in]    PULONG PortAddress,
    [in]    PULONG pBuffer,
    [in]    ULONG Count
);

Parameters

[in] PortAddress

A Port I/O address cast as a pointer to the type of data being read.

[in] pBuffer

A pointer to a buffer.

[in] Count

The number of bytes to be read at one time. Acceptable values are 1, 2, and 4.

Remarks

RtReadPortBufferUchar, RtReadPortBufferUshort, and RtReadPortBufferUlong read data from an I/O port to a buffer, 1, 2, or 4 bytes at a time, until the buffer is full.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtApi.h

RtApi.lib (Windows), Startup.lib (RTSS)

See Also: