RtWritePortUchar
RtWritePortUshort
RtWritePortUlong

The RtWritePort* calls write data directly to an I/O port from a specified buffer. Each function writes a different number of bytes of data.

Syntax

Copy
VOID RtWritePortUchar(
    [in]    PUCHAR PortAddress,
    [in]    UCHAR pBuffer
);

VOID RtWritePortUshort(
    [in]    PUSHORT PortAddress,
    [in]    USHORT pBuffer
);

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

Parameters

[in] PortAddress

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

[in] pBuffer

The one-, two-, or four-byte quantum to be written to the port.

Remarks

These calls write directly to an I/O port from a buffer. RtWritePortUchar writes a single byte, RtWritePortUshort writes two bytes, and RtWritePortUlong writes 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: