Go to the source code of this file.
◆ sam0_eic_callback_t
typedef void(* sam0_eic_callback_t) (uint32_t pins, void *data) |
◆ sam0_eic_trigger
EIC trigger condition.
Enumerator |
---|
SAM0_EIC_RISING | |
SAM0_EIC_FALLING | |
SAM0_EIC_BOTH | |
SAM0_EIC_HIGH | |
SAM0_EIC_LOW | |
◆ sam0_eic_acquire()
Acquire an EIC interrupt for specific port and pin combination.
This acquires the EIC interrupt for a specific port and pin combination, or returns an error if the required line is not available. Only a single callback per port is supported and supplying a different one will change it for all lines on that port.
- Parameters
-
port | port index (A=0, etc) |
pin | pin in the port |
trigger | trigger condition |
filter | enable filter |
cb | interrupt callback |
data | parameter to the interrupt callback |
◆ sam0_eic_disable_interrupt()
int sam0_eic_disable_interrupt |
( |
int | port, |
|
|
int | pin ) |
Disable the EIC interrupt for a specific port and pin combination.
- Parameters
-
port | port index (A=0, etc) |
pin | pin in the port |
◆ sam0_eic_enable_interrupt()
int sam0_eic_enable_interrupt |
( |
int | port, |
|
|
int | pin ) |
Enable the EIC interrupt for a specific port and pin combination.
- Parameters
-
port | port index (A=0, etc) |
pin | pin in the port |
◆ sam0_eic_interrupt_pending()
uint32_t sam0_eic_interrupt_pending |
( |
int | port | ) |
|
Test if there is an EIC interrupt pending for a port.
- Parameters
-
port | port index (A=0, etc) |
◆ sam0_eic_release()
int sam0_eic_release |
( |
int | port, |
|
|
int | pin ) |
Release the EIC interrupt for a specific port and pin combination.
Release the EIC configuration for a specific port and pin combination. No effect if that combination does not currently hold the associated EIC line.
- Parameters
-
port | port index (A=0, etc) |
pin | pin in the port |