.state Property

Function:

Sets/returns the state of the currently selected I/O line (selection is made through the io.num property).

Type:

Enum (low_high, byte)

Value Range:

0 — LOW

1 — HIGH

(The default value is hardware-dependent)

See Also:

Line/Port Manipulation With Preselection, io.enabled


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.


Getting the Property

Exception

Root Cause(s)

std::invalid_argument

The selected I/O line number is invalid.

std::system_error

There was an error reading the value of the selected I/O line.


Setting the Property

Exception

Root Cause(s)

std::invalid_argument

The selected I/O line number is invalid.

std::system_error

There was an error setting the value of the selected I/O line.


.state Property

Exception Safety

Getting the Property

Setting the Property