Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
gpio_emul.h File Reference

Backend API for emulated GPIO. More...

#include <zephyr/types.h>
#include <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. More...
 
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. More...
 
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. More...
 
static int gpio_emul_output_get (const struct device *port, gpio_pin_t pin)
 Read the value of one emulated GPIO output pin. More...
 
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. More...
 

Detailed Description

Backend API for emulated GPIO.