.invert Method
|
Function: |
Inverts the state of the I/O line specified by the num argument. |
|
Syntax: |
io.invert(num as pl_io_num) |
|
Returns: |
--- |
|
See Also: |
Line/Port Manipulation Without Preselection, io.lineget, io.lineset |
|
Part |
Description |
|
num |
See the list of pl_io_num constants in the platform specifications. |
Details
No line preselection with the io.num property is required and the value of io.num will not be changed.
Exception Safety
There are a few situations in which an exception may be thrown when invoking this method. For more information, see Handling Exceptions.
|
Exception |
Root Cause(s) |
|
std::invalid_argument |
The selected I/O line number is invalid. |
|
std::system_error |
The state of this I/O line cannot be changed because it is currently in use. |