.enabled Property
|
Function: |
Sets/returns the state of the output buffer for the currently selected I/O line (selection is made through the io.num property). |
|
Type: |
Enum (no_yes, byte) |
|
Value Range: |
0 — NO (default): disabled, I/O line works as an input 1 — YES: enabled, I/O line works as an output |
|
See Also: |
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. |
| Setting the Property | |
|
Exception |
Root Cause(s) |
|
std::invalid_argument |
The selected I/O line number is invalid. |
|
std::logic_error |
The selected I/O line number is tied to an enabled interrupt. |
|
std::system_error |
The direction of this I/O line cannot be changed because it is currently in use. |