/Zephyr-latest/include/zephyr/drivers/ |
D | emul.h | 13 * @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 …]
|
D | espi_emul.h | 38 * 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 …]
|
D | mspi_emul.h | 36 * 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
|
D | spi_emul.h | 40 /** 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
|
D | i2c_emul.h | 40 /** 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 */
|
D | emul_fuel_gauge.h | 24 * @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.
|
D | emul_sensor.h | 13 * @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 …]
|
D | uart_emul.h | 48 /** 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/ |
D | bus_emulators.rst | 9 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 …]
|
D | index.rst | 34 **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/ |
D | emul_bc12.h | 23 * @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/ |
D | Kconfig | 9 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/ |
D | akm09918c_emul.h | 14 * @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
|
D | Kconfig | 15 bool "Emulator for AKM09918C" 20 Enable the hardware emulator for the AKM09918C. Doing so allows exercising
|
/Zephyr-latest/subsys/emul/ |
D | emul.c | 33 * 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()
|
D | Kconfig | 1 # 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/ |
D | read.c | 14 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()
|
D | write.c | 14 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/ |
D | index.rst | 13 emulator/index.rst 14 emulator/bus_emulators.rst
|
/Zephyr-latest/drivers/bbram/ |
D | Kconfig.it8xxx2 | 13 bool "Emulator for the ITE IT81202 BBRAM driver" 18 Enable the emulator for the ITE IT81202 BBRAM.
|
D | Kconfig.npcx | 12 bool "Emulator for the NPCX BBRAM driver" 17 Enable the emulator for the NPCX BBRAM.
|
D | Kconfig.microchip | 13 bool "Emulator for the Microchip MCP7940N SRAM BBRAM driver" 18 Enable the emulator for the Microchip MCP7940N SRAM based
|
/Zephyr-latest/drivers/spi/ |
D | Kconfig.spi_emul | 5 bool "SPI emulator" 10 Enable the SPI emulator driver. This is a fake driver in that it
|
/Zephyr-latest/drivers/i2c/ |
D | Kconfig.i2c_emul | 5 bool "I2C emulator" 10 Enable the I2C emulator driver. This is a fake driver in that it
|
/Zephyr-latest/drivers/sensor/adi/adltc2990/ |
D | Kconfig | 16 bool "Emulator for ADLTC2990" 21 Enable ADLTC2990 emulator.
|