RtReadPortBufferUchar
RtReadPortBufferUshort
RtReadPortBufferUlong
RtReadPortBuffer* calls copy data from an I/O port to a buffer until the buffer has been filled using the bytes you specify for each read operation.
Syntax
VOID RtReadPortBufferUchar(
PUCHAR PortAddress,
PUCHAR pBuffer,
ULONG Count
);
VOID RtReadPortBufferUshort(
PUSHORT PortAddress,
PUSHORT pBuffer,
ULONG Count
);
VOID RtReadPortBufferUlong(
PULONG PortAddress,
PULONG pBuffer,
ULONG Count
);
Parameters
PortAddress
A Port I/O address cast as a pointer to the type of data being read.
pBuffer
A pointer to a buffer.
Count
The number of bytes to be read at one time. Acceptable values are 1, 2, and 4.
Remarks
RtReadPortBufferUchar, RtReadPortBufferUshort, and RtReadPortBufferUlong read data from an I/O port to a buffer, 1, 2, or 4 bytes at a time, until the buffer is full.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Rtapi.h | rtkrnl.lib |
See Also: