Mbed OS Reference
|
Modules | |
GPIO IRQ HAL tests | |
The GPIO IRQ HAL tests ensure driver conformance to defined behaviour. | |
Functions | |
int | gpio_irq_init (gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uintptr_t context) |
Initialize the GPIO IRQ pin. More... | |
void | gpio_irq_free (gpio_irq_t *obj) |
Release the GPIO IRQ PIN. More... | |
void | gpio_irq_set (gpio_irq_t *obj, gpio_irq_event event, uint32_t enable) |
Enable/disable pin IRQ event. More... | |
void | gpio_irq_enable (gpio_irq_t *obj) |
Enable GPIO IRQ. More... | |
void | gpio_irq_disable (gpio_irq_t *obj) |
Disable GPIO IRQ. More... | |
const PinMap * | gpio_irq_pinmap (void) |
Get the pins that support all GPIO IRQ tests. More... | |
int gpio_irq_init | ( | gpio_irq_t * | obj, |
PinName | pin, | ||
gpio_irq_handler | handler, | ||
uintptr_t | context | ||
) |
Initialize the GPIO IRQ pin.
obj | The GPIO object to initialize |
pin | The GPIO pin name |
handler | The handler to be attached to GPIO IRQ |
context | The context to be passed back to the handler (context != 0, 0 is reserved) |
void gpio_irq_free | ( | gpio_irq_t * | obj | ) |
Release the GPIO IRQ PIN.
obj | The gpio object |
void gpio_irq_set | ( | gpio_irq_t * | obj, |
gpio_irq_event | event, | ||
uint32_t | enable | ||
) |
Enable/disable pin IRQ event.
obj | The GPIO object |
event | The GPIO IRQ event |
enable | The enable flag |
void gpio_irq_enable | ( | gpio_irq_t * | obj | ) |
Enable GPIO IRQ.
This is target dependent, as it might enable the entire port or just a pin
obj | The GPIO object |
void gpio_irq_disable | ( | gpio_irq_t * | obj | ) |
Disable GPIO IRQ.
This is target dependent, as it might disable the entire port or just a pin
obj | The GPIO object |
const PinMap * gpio_irq_pinmap | ( | void | ) |