RTEMS 6.3
Loading...
Searching...
No Matches
flash_sim_flashdev.h File Reference

Flashdev backend simulating NAND in memory. More...

Go to the source code of this file.

Data Structures

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

Functions

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.

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.