Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
renesas_ra_external_interrupt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Renesas Electronics Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_
8#define ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_
9
10#include <zephyr/drivers/gpio.h>
11
13 struct device *port;
16 enum gpio_int_trig trigger;
17 enum gpio_int_mode mode;
18 void (*isr)(const struct device *dev, gpio_pin_t pin);
19};
20
21int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback);
22void gpio_ra_interrupt_unset(const struct device *dev, uint8_t port_num, uint8_t pin);
23
24#endif /* ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_ */
Public APIs for GPIO drivers.
uint8_t gpio_pin_t
Provides a type to hold a GPIO pin index.
Definition gpio.h:255
int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback)
void gpio_ra_interrupt_unset(const struct device *dev, uint8_t port_num, uint8_t pin)
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:411
Definition renesas_ra_external_interrupt.h:12
enum gpio_int_mode mode
Definition renesas_ra_external_interrupt.h:17
uint8_t pin
Definition renesas_ra_external_interrupt.h:15
enum gpio_int_trig trigger
Definition renesas_ra_external_interrupt.h:16
uint8_t port_num
Definition renesas_ra_external_interrupt.h:14
struct device * port
Definition renesas_ra_external_interrupt.h:13
void(* isr)(const struct device *dev, gpio_pin_t pin)
Definition renesas_ra_external_interrupt.h:18