![]() |
RTEMS 6.2
|
Flashdev backend simulating NAND in memory. More...
#include <dev/flash/flash_sim_flashdev.h>#include <rtems/rtems/clock.h>#include <rtems/score/basedefs.h>#include <stdlib.h>#include <string.h>Data Structures | |
| struct | nand_priv_data |
| Struct allocating memory space for flash regions. Used by rtems_flashdev to store region allocations. More... | |
Macros | |
| #define | NAND_SIM_FLASH_MAX_REGIONS ( (size_t) 32 ) |
Typedefs | |
| typedef struct nand_priv_data | nand_priv_data |
| Struct allocating memory space for flash regions. Used by rtems_flashdev to store region allocations. | |
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. | |
Flashdev backend simulating NAND in memory.
| 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.
| [in] | attr | A pointer to a flash_sim_flashdev_attributes describing the features of the simulated flash. This parameter may be NULL. |
| A | pointer to the rtems_flashdev. |
| NULL | on failure. |