RTEMS 6.2
Loading...
Searching...
No Matches
Data Structures | Functions
flash_sim_flashdev.h File Reference

Flashdev backend simulating NAND in memory. More...

#include <dev/flash/flashdev.h>

Go to the source code of this file.

Data Structures

struct  flash_sim_flashdev_attributes
 Configuration options for NAND simulation. More...
 

Functions

rtems_flashdevflash_sim_flashdev_init (struct flash_sim_flashdev_attributes *attr)
 Initializes a simulated flash device. The flash device is not registered in this call. The returned object must be destroyed with rtems_flashdev_destroy if it has not been registered.
 

Detailed Description

Flashdev backend simulating NAND in memory.

Function Documentation

◆ flash_sim_flashdev_init()

rtems_flashdev * flash_sim_flashdev_init ( struct flash_sim_flashdev_attributes attr)

Initializes a simulated flash device. The flash device is not registered in this call. The returned object must be destroyed with rtems_flashdev_destroy if it has not been registered.

Parameters
[in]attrA pointer to a flash_sim_flashdev_attributes describing the features of the simulated flash. This parameter may be NULL.
Return values
Apointer to the rtems_flashdev.
NULLon failure.