Enum pl_int_edge

Enum pl_int_edge contains the list of constants that refer to the available edges used to define when an interrupt is generated. Use these constants when setting the edge with the io. object (see the io.intedge property).


Enum pl_int_edge includes the following constants:

0 — PL_INT_EDGE_NULL:

System constant. This is used internally for verification purposes and is not available for use.

1 — PL_INT_EDGE_LOW:

The interrupt is generated on the falling edge.

2 — PL_INT_EDGE_HIGH:

The interrupt is generated on the rising edge.

3 — PL_INT_EDGE_BOTH:

The interrupt can be generated on either the rising or falling edge.


A tip note icon.PL_INT_EDGE_BOTH replicates the behavior of TiOS-based devices, in which interrupts are generated on either the rising or falling edge.