tport

[Properties (by Name)][Methods (by Name)][Events (by Name)]

Type implemented to support integer-sized port access

Declaration

Source position: portsh.inc line 37

Type
  tport = object
  private
    procedure writeport(p: Word; data: Byte);
    function readport(p: Word) : Byte;
  public
    pp[w: Word]: Byte; default;
  end
  ;

Description

The TPort type is implemented specially for access to the ports in a TP compatible manner. There is no need to create an instance of this type: the standard TP variables are instantiated at unit initialization.

Members

Member Type Visibility Description
pp Property public Access integer-sized port by port number
readport Method private Reads an integer of data from a port
writeport Method private Writes an integer of data to a port

Inheritance

Class Description
tport Type implemented to support integer-sized port access

See also

Name Description
Byte An unsigned 8-bits integer
port Provide port access per integer
TPortL Type implemented to support Longint-sized port access
TPortW Type implemented to support word-sized port access