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

UCHAR RtReadPortUchar(
    PUCHAR PortAddress
);
USHORT RtReadPortUshort(
    PUSHORT PortAddress
);
ULONG RtReadPortUlong(
    PULONG PortAddress
);

Parameters

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 RTX64 2013
Header Rtapi.h
Library RtApi.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also:

RtDisablePortIo

RtEnablePortIo

RtReadPortBuffer* (Uchar, Ushort, Ulong)

RtWritePortBuffer* (Uchar, Ushort, Ulong)

RtWritePort* (Uchar, Ushort, Ulong)