doc/hardware/emulator/index.rst
.. _emulators:
Zephyr's device emulators/simulators ####################################
Zephyr includes in its codebase a set of device emulators/simulators. With this we refer to SW components which are built together with the embedded SW and present themselves as devices of a given class to the rest of the system.
These device emulators/simulators can be built for any target which has sufficient RAM and flash, even if some may have extra functionality which is only available in some targets.
.. note::
| Zephyr also includes and uses many other types of simulators/emulators, including CPU and platform simulators, radio simulators, and several build targets which allow running the embedded code in the development host. | Some of Zephyr communication controllers/drivers include also either loopback modes or loopback devices. | This page does not cover any of these.
.. note::
Drivers which are specific to some platform, like for example the
:ref:native_sim specific drivers <native_sim_peripherals> which
emulate a peripheral class by connecting to host APIs are not covered by this page.
ADC emulator
CONFIG_ADC_EMULzephyr,adc-emulDMA emulator
CONFIG_DMA_EMULzephyr,dma-emulEEPROM emulator
CONFIG_EEPROM_EMULATORzephyr,emu-eeprom.. _emul_eeprom_simu_brief:
EEPROM simulator
CONFIG_EEPROM_SIMULATORzephyr,sim-eepromnative targets <native_sim> it is also possible to keep the content
as a file on the host filesystem.External bus and bus connected peripheral emulators
Documentation <bus_emul>.. _emul_flash_simu_brief:
Flash simulator
CONFIG_FLASH_SIMULATORzephyr,sim-flashthe native_sim flash simulator section <nsim_per_flash_simu>.GPIO emulator
CONFIG_GPIO_EMULzephyr,gpio-emulI2C emulator
bus emulators <bus_emul>.CONFIG_I2C_EMULzephyr,i2c-emul-controllerRTC emulator
RTC emulated device section <rtc_api_emul_dev>CONFIG_RTC_EMULzephyr,rtc-emulSPI emulator
bus emulators <bus_emul>.CONFIG_SPI_EMULzephyr,spi-emul-controllerMSPI emulator
bus emulators <bus_emul>.CONFIG_MSPI_EMULzephyr,mspi-emul-controllerUART emulator
bus emulators <bus_emul>.CONFIG_UART_EMULzephyr,uart-emul