Home
last modified time | relevance | path

Searched full:emulator (Results 1 – 25 of 151) sorted by relevance

1234567

/Zephyr-latest/include/zephyr/drivers/
Demul.h13 * @defgroup io_emulators Emulator interface
62 * Standard callback for emulator initialisation providing the initialiser
63 * record and the device that calls the emulator functions.
65 * @param emul Emulator to init
66 * @param parent Parent device that is using the emulator
71 * Emulator API stub when an emulator is not actually placed on a bus.
78 /** An emulator instance - represents the *target* emulated device/peripheral that is
83 /** function used to initialise the emulator state */
87 /** Emulator-specific configuration data */
89 /** Emulator-specific data */
[all …]
Despi_emul.h38 * Passes eSPI virtual wires set request (virtual wire packet) to the emulator.
39 * The emulator updates the state (level) of its virtual wire.
41 * @param target The device Emulator instance
52 * Passes eSPI virtual wires get request (virtual wire packet) to the emulator.
53 * The emulator returns the state (level) of its virtual wire.
55 * @param target The device Emulator instance
67 * Get the ACPI shared memory address owned by the emulator.
69 * @param target The device Emulator instance
77 * Find an emulator present on a eSPI bus
79 * At present the function is used only to find an emulator of the host
[all …]
Dmspi_emul.h36 * Find an emulator present on a MSPI bus
38 * At present the function is used only to find an emulator of the host
50 * Triggers an event on the emulator of MSPI controller side which causes
63 * Loopback MSPI transceive request to the device emulator
66 * @param target The device Emulator instance
81 /** Definition of the MSPI device emulator API */
89 /** Target emulator - REQUIRED for all emulated bus nodes of any type */
97 /** Definition of the MSPI controller emulator API */
103 /* The rest, emulator specific functions */
112 * @param emul MSPI device emulator to be registered
Dspi_emul.h40 /** Target emulator - REQUIRED for all bus emulators */
57 * Passes SPI messages to the emulator. The emulator updates the data with what
60 * @param target The device Emulator instance
78 * @param dev Device that will use the emulator
79 * @param emul SPI emulator to use
84 /** Definition of the emulator API */
90 * Back door to allow an emulator to retrieve the host configuration.
92 * @param dev SPI device associated with the emulator
Di2c_emul.h40 /** Target emulator - REQUIRED for all emulated bus nodes of any type */
57 * Passes I2C messages to the emulator. The emulator updates the data with what
60 * @param target The device Emulator instance.
75 * @param dev Device that will use the emulator
76 * @param emul I2C emulator to use
81 /** Definition of the emulator API */
Demul_fuel_gauge.h24 * @brief Fuel gauge backend emulator APIs
25 * @defgroup fuel_gauge_emulator_backend Fuel gauge backend emulator APIs
50 * @param target Pointer to the emulator structure for the fuel gauge emulator instance.
74 * @param target Pointer to the emulator structure for the fuel gauge emulator instance.
78 * @retval -ENOTSUP if not supported by emulator.
Demul_sensor.h13 * @brief Sensor emulator backend API
14 * @defgroup sensor_emulator_backend Sensor emulator backend API
48 * @brief Check if a given sensor emulator supports the backend API
50 * @param target Pointer to emulator instance to query
60 * @brief Set an expected value for a given channel on a given sensor emulator
62 * @param target Pointer to emulator instance to operate on
88 * @brief Query an emulator for a channel's supported sample value range and tolerance
90 * @param target Pointer to emulator instance to operate on
121 * @brief Set the emulator's attribute values
123 * @param[in] target Pointer to emulator instance to operate on
[all …]
Duart_emul.h48 /** Target emulator - REQUIRED for all emulated bus nodes of any type */
54 /** Definition of the emulator API */
62 * @param dev Device that will use the emulator
63 * @param emul UART emulator to use
/Zephyr-latest/doc/hardware/emulator/
Dbus_emulators.rst9 Zephyr supports a simple emulator framework to support testing of external peripheral drivers
13 various subsystems. For example, it is possible to write an emulator
32 :alt: Emulator architecture showing tests, emulators and drivers
36 controller/emulator which passes I2C traffic from the AT24 driver to the AT24
68 Creating a Device Driver Emulator
71 The emulator subsystem is modeled on the :ref:`device_model_api`. You create
72 an emulator instance using one of the :c:func:`EMUL_DT_DEFINE()` or
76 device driver. This means that your emulator defines ``DT_DRV_COMPAT`` using the
89 #. ``bus_api`` - This points to the API for the upstream bus that the emulator
93 the emulator. The ``_backend_api`` parameter is optional.
[all …]
Dindex.rst34 **ADC emulator**
40 **DMA emulator**
45 **EEPROM emulator**
72 **GPIO emulator**
77 **I2C emulator**
82 **RTC emulator**
87 **SPI emulator**
92 **MSPI emulator**
97 **UART emulator**
/Zephyr-latest/include/zephyr/drivers/usb/
Demul_bc12.h23 * @brief BC1.2 backend emulator APIs
24 * @defgroup b12_emulator_backend BC1.2 backed emulator APIs
45 * The corresponding BC1.2 emulator updates the vendor specific registers
46 * to simulate connection of the specified charging partner type. The emulator
49 * @param target Pointer to the emulator structure for the BC1.2 emulator instance.
68 * The corresponding BC1.2 emulator updates the vendor specific registers
70 * The emulator also generates an interrupt for processing by the real driver,
73 * @param target Pointer to the emulator structure for the BC1.2 emulator instance.
/Zephyr-latest/subsys/emul/espi/
DKconfig9 This is an emulator of the generic eSPI host. The emulator supports basic host operations
10 - virtual wires and writing to port 80. It can be extended. Note: Because this emulator is
17 int "Host I/O peripheral port size for shared memory in emulator"
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_emul.h14 * @param target The target emulator to modify
25 * @param target The target emulator to read
34 * @brief Reset the emulator
36 * @param target The target emulator to reset
DKconfig15 bool "Emulator for AKM09918C"
20 Enable the hardware emulator for the AKM09918C. Doing so allows exercising
/Zephyr-latest/subsys/emul/
Demul.c33 * Walk the list of children, find the corresponding emulator and in emul_init_for_bus()
39 LOG_INF("Registering %d emulator(s) for %s", cfg->num_children, dev->name); in emul_init_for_bus()
44 LOG_WRN("Cannot find emulator for '%s'", elp->dev->name); in emul_init_for_bus()
70 LOG_WRN("Init %s emulator failed: %d", in emul_init_for_bus()
102 LOG_WRN("Found no emulated bus enabled to register emulator %s", in emul_init_for_bus()
107 LOG_WRN("Failed to register emulator for %s: %d", elp->dev->name, rc); in emul_init_for_bus()
DKconfig1 # Emulator configuration options
7 # Emulator options
15 emulator for an I2C compass such that it appears on the I2C bus and
/Zephyr-latest/tests/drivers/bbram/generic/src/
Dread.c14 static void run_test_read_invalid_size(const struct device *dev, const struct emul *emulator) in run_test_read_invalid_size() argument
20 ARG_UNUSED(emulator); in run_test_read_invalid_size()
32 static void run_test_read_bytes(const struct device *dev, const struct emul *emulator) in run_test_read_bytes() argument
44 rc = emul_bbram_backend_set_data(emulator, i, 1, &expected_data); in run_test_read_bytes()
Dwrite.c14 static void run_test_write_invalid_size(const struct device *dev, const struct emul *emulator) in run_test_write_invalid_size() argument
20 ARG_UNUSED(emulator); in run_test_write_invalid_size()
32 static void run_test_write_bytes(const struct device *dev, const struct emul *emulator) in run_test_write_bytes() argument
47 rc = emul_bbram_backend_get_data(emulator, i, 1, &data); in run_test_write_bytes()
/Zephyr-latest/doc/hardware/
Dindex.rst13 emulator/index.rst
14 emulator/bus_emulators.rst
/Zephyr-latest/drivers/bbram/
DKconfig.it8xxx213 bool "Emulator for the ITE IT81202 BBRAM driver"
18 Enable the emulator for the ITE IT81202 BBRAM.
DKconfig.npcx12 bool "Emulator for the NPCX BBRAM driver"
17 Enable the emulator for the NPCX BBRAM.
DKconfig.microchip13 bool "Emulator for the Microchip MCP7940N SRAM BBRAM driver"
18 Enable the emulator for the Microchip MCP7940N SRAM based
/Zephyr-latest/drivers/spi/
DKconfig.spi_emul5 bool "SPI emulator"
10 Enable the SPI emulator driver. This is a fake driver in that it
/Zephyr-latest/drivers/i2c/
DKconfig.i2c_emul5 bool "I2C emulator"
10 Enable the I2C emulator driver. This is a fake driver in that it
/Zephyr-latest/drivers/sensor/adi/adltc2990/
DKconfig16 bool "Emulator for ADLTC2990"
21 Enable ADLTC2990 emulator.

1234567