Zephyr API 3.6.99
Loading...
Searching...
No Matches
gpio_emul.h File Reference

Backend API for emulated GPIO. More...

#include <zephyr/types.h>
#include <zephyr/drivers/gpio.h>

Go to the source code of this file.

Functions

int gpio_emul_input_set_masked (const struct device *port, gpio_port_pins_t pins, gpio_port_value_t values)
 Modify the values of one or more emulated GPIO input pins.
 
static int gpio_emul_input_set (const struct device *port, gpio_pin_t pin, int value)
 Modify the value of one emulated GPIO input pin.
 
int gpio_emul_output_get_masked (const struct device *port, gpio_port_pins_t pins, gpio_port_value_t *values)
 Read the value of one or more emulated GPIO output pins.
 
static int gpio_emul_output_get (const struct device *port, gpio_pin_t pin)
 Read the value of one emulated GPIO output pin.
 
int gpio_emul_flags_get (const struct device *port, gpio_pin_t pin, gpio_flags_t *flags)
 Get flags for a given emulated GPIO pin.
 

Detailed Description

Backend API for emulated GPIO.