.intedge Property

Function:

Determines whether an interrupt is generated on the rising or falling edge (or either) of the currently selected interrupt line (selection is made through the io.intnum property).

Type:

Enum (pl_int_edge, byte)

Value Range:

See the list of pl_int_edge constants in the platform specifications.

See Also:

Working With Interrupts


Details

The default value of this property for any given interrupt is 3 — BOTH in order to ensure backwards compatibility with applications developed for TiOS-based devices.


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


Setting the Property

Exception

Root Cause(s)

std::invalid_argument

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

.intedge Property

Details

Exception Safety

Getting the Property

Setting the Property