Zephyr Project API  3.3.0
A Scalable Open Source RTOS
gpio_keys.h File Reference
#include <stdint.h>
#include <zephyr/drivers/gpio.h>
#include <syscalls/gpio_keys.h>

Go to the source code of this file.

Data Structures

struct  gpio_keys_callback
 
struct  gpio_keys_api
 

Typedefs

typedef void(* gpio_keys_callback_handler_t) (const struct device *port, struct gpio_keys_callback *cb, gpio_port_pins_t pins)
 

Functions

int gpio_keys_enable_interrupt (const struct device *dev, gpio_keys_callback_handler_t cb)
 Enable interrupt. More...
 
int gpio_keys_disable_interrupt (const struct device *dev)
 Disable interrupt. More...
 
int gpio_keys_get_pin (const struct device *dev, uint32_t idx)
 Get the logical level of GPIO Key. More...
 

Typedef Documentation

◆ gpio_keys_callback_handler_t

typedef void(* gpio_keys_callback_handler_t) (const struct device *port, struct gpio_keys_callback *cb, gpio_port_pins_t pins)