.intenabled Property

Function:

Enables/disables currently selected interrupt line (selection is made through the io.intnum property).

Type:

Enum (no_yes, byte)

Value Range:

0 — NO (default): the interrupt line is disabled

1 — YES: the interrupt line is enabled

See Also:

Working With Interrupts


Details

Change of state of any enabled interrupt line leads to the on_io_int and on_io_int_line events to be generated. A state change of disabled interrupt lines produces no effect.


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.
  • The selected interrupt line number is invalid.

Setting the Property

Exception

Root Cause(s)

std::invalid_argument

  • The selected I/O line number is invalid.
  • The selected interrupt line cannot be modified while in use.
  • The specified edge type is invalid.

std::system_error

There was an error requesting interrupt events.

.intenabled Property

Details

Exception Safety

Getting the Property

Setting the Property