Flash memory+parition descriptor.
More...
#include <ringfs.h>
Flash memory+parition descriptor.
Definition at line 23 of file ringfs.h.
ssize_t(* ringfs_flash_partition::program)(int address, const void *data, size_t size) |
Program flash memory bits by toggling them from 1 to 0.
- Parameters
-
address | Start address, in bytes. |
data | Data to program. |
size | Size of data. |
- Returns
- size on success, -1 on failure.
Definition at line 42 of file ringfs.h.
ssize_t(* ringfs_flash_partition::read)(int address, void *data, size_t size) |
Read flash memory.
- Parameters
-
address | Start address, in bytes. |
data | Buffer to store read data. |
size | Size of data. |
- Returns
- size on success, -1 on failure.
Definition at line 50 of file ringfs.h.
int ringfs_flash_partition::sector_count |
Partition size, in sectors.
Definition at line 27 of file ringfs.h.
int(* ringfs_flash_partition::sector_erase)(int address) |
Erase a sector.
- Parameters
-
address | Any address inside the sector. |
- Returns
- Zero on success, -1 on failure.
Definition at line 34 of file ringfs.h.
int ringfs_flash_partition::sector_offset |
Partition offset, in sectors.
Definition at line 26 of file ringfs.h.
int ringfs_flash_partition::sector_size |
Sector size, in bytes.
Definition at line 25 of file ringfs.h.
The documentation for this struct was generated from the following file: