Sign in Join
FPDoc Onlineexperiment

ReadPortW function

In unit x86

Read Words from a PC port.

Declaration

pascal
function ReadPortW(Port: LongInt): Word

Description

The procedural form of ReadPortW reads Count words from port Port and stores them in Buf. There must be enough memory allocated at Buf to store Count words.

The functional form of ReadPortW reads 1 word from port B and returns the word that was read.

Note that you need permission to read a port. This permission can be set by the root user with the FpIOPerm call.

Errors

In case of an error (not enough permissions read this port), runtime 216 ( Access Violation) will occur.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.