.portnum Property

Function:

Sets/returns the number of currently selected I/O port.

Type:

Enum (pl_io_port_num, byte)

Value Range:

See the list of pl_io_port_num constants in the platform specifications.

See Also:

Line/Port Manipulation With Preselection


Details

Selects a particular I/O port to be manipulated through the io.portstate and io.portenabled properties. Each port groups eight I/O lines. The list of available I/O ports is defined by the pl_io_port_num enum.


Exception Safety

There are a few situations in which an exception may be thrown when getting or setting this property. For more information, see Handling Exceptions.


Exception

Root Cause(s)

std::invalid_argument

The selected I/O port number is invalid.


.portnum Property

Details

Exception Safety