17#ifndef MBED_INTERRUPTIN_H
18#define MBED_INTERRUPTIN_H
20#include "platform/platform.h"
22#if DEVICE_INTERRUPTIN || defined(DOXYGEN_ONLY)
24#include "hal/gpio_api.h"
25#include "hal/gpio_irq_api.h"
26#include "platform/Callback.h"
27#include "platform/mbed_critical.h"
28#include "platform/mbed_toolchain.h"
29#include "platform/NonCopyable.h"
132 static void _irq_handler(uintptr_t context,
gpio_irq_event event);
133#if !defined(DOXYGEN_ONLY)
141 void irq_init(PinName pin);
Callback class based on template specialization.
A digital interrupt input, used to call a function on a rising or falling edge.
InterruptIn(PinName pin)
Create an InterruptIn connected to the specified pin.
void mode(PinMode pull)
Set the input pin mode.
void fall(Callback< void()> func)
Attach a function to call when a falling edge occurs on the input Interrupts are enabled for the pin.
InterruptIn(PinName pin, PinMode mode)
Create an InterruptIn connected to the specified pin, and the pin configured to the specified mode.
void disable_irq()
Disable IRQ.
void rise(Callback< void()> func)
Attach a function to call when a rising edge occurs on the input Interrupts are enabled for the pin.
int read()
Read the input, represented as 0 or 1 (int)
void enable_irq()
Enable IRQ.
Prevents generation of copy constructor and copy assignment operator in derived classes.
gpio_irq_event
GPIO IRQ events.
struct gpio_irq_s gpio_irq_t
GPIO IRQ HAL structure.