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, and RtReadPortUlong reads four bytes of data at a time.

Requirements

Header Rtapi.h
Library Rtx_Rtss.lib

See Also:

RtDisablePortIo

RtEnablePortIo

RtReadPortBuffer* (Uchar, Ushort, Ulong)

RtWritePortBuffer* (Uchar, Ushort, Ulong)

RtWritePort* (Uchar, Ushort, Ulong)

IntervalZero.com | Support | Give Feedback