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
VOID RtWritePortUchar( PUCHAR PortAddress, UCHAR pBuffer );
VOID RtWritePortUshort( PUSHORT PortAddress, USHORT pBuffer );
VOID RtWritePortUlong( PULONG PortAddress, ULONG pBuffer );
Parameters
PortAddress
A Port I/O address cast as a pointer to the type of data being written.
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, andRtWritePortUlong writes 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:
RtReadPortBuffer* (Uchar, Ushort, Ulong)