Zephyr API Documentation  3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
flash_simulator.h File Reference

Flash simulator specific API. More...

#include <zephyr/syscalls/flash_simulator.h>

Go to the source code of this file.

Functions

void * flash_simulator_get_memory (const struct device *dev, size_t *mock_size)
 Obtain a pointer to the RAM buffer used but by the simulator.
 

Detailed Description

Flash simulator specific API.

Extension for flash simulator.

Function Documentation

◆ flash_simulator_get_memory()

void * flash_simulator_get_memory ( const struct device dev,
size_t mock_size 
)

Obtain a pointer to the RAM buffer used but by the simulator.

This function allows the caller to get the address and size of the RAM buffer in which the flash simulator emulates its flash memory content.

Parameters
[in]devflash simulator device pointer.
[out]mock_sizesize of the ram buffer.
Return values
pointerto the ram buffer