RtReadPortUchar
RtReadPortUshort
RtReadPortUlong

The RtReadPort* calls read data directly from an I/O port. Each function reads a different number of bytes of data.

Syntax

Copy
UCHAR RtReadPortUchar(
    [in]    PUCHAR PortAddress
);

USHORT RtReadPortUshort(
    [in]    PUSHORT PortAddress
);

ULONG RtReadPortUlong(
    [in]    PULONG PortAddress
);

Parameters

[in] PortAddress

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

Remarks

These calls read directly from an I/O port and return the data. RtReadPortUchar reads a single byte, RtReadPortUshort reads two bytes, andRtReadPortUlong reads four bytes of data at a time.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtApi.h

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

See Also: