39 INTERRUPT_TRIGGER_NONE = 0,
40 INTERRUPT_TRIGGER_RISING,
41 INTERRUPT_TRIGGER_FALLING,
42 INTERRUPT_TRIGGER_BOTH,
45typedef void (*eic_cb_t)(uint8_t channel);
int8_t eic_configure_pin(const uint8_t pin, eic_interrupt_trigger_t trigger)
Configures an external interrupt on one of the external interrupt pins.
Definition eic.c:99
bool eic_disable_event(const uint8_t pin)
Disables the interrupt on the given interrupt channel.
Definition eic.c:190
bool eic_disable_interrupt(const uint8_t pin)
Disables the interrupt on the given interrupt channel.
Definition eic.c:150
void eic_configure_callback(eic_cb_t callback)
Configures an external interrupt callback.
Definition eic.c:219
bool eic_enable_interrupt(const uint8_t pin)
Enables an interrupt on the given interrupt channel.
Definition eic.c:129
void eic_disable(void)
Disables the external interrupt controller.
Definition eic.c:209
eic_interrupt_trigger_t
An enum defining the types of interrupt trigger you wish to scan for.
Definition eic.h:38
void eic_init(void)
Initializes the external interrupt controller, but does not enable it.
Definition eic.c:62
bool eic_enable_event(const uint8_t pin)
Enables an interrupt on the given interrupt channel.
Definition eic.c:171
void eic_enable(void)
Enables the external interrupt controller.
Definition eic.c:87