#include <stdint.h>
Go to the source code of this file.
|
int | mtd_init (mtd_dev_t *mtd) |
| mtd_init Initialize a MTD device More...
|
|
int | mtd_read (mtd_dev_t *mtd, void *dest, uint32_t addr, uint32_t count) |
| Read data from a MTD device. More...
|
|
int | mtd_read_page (mtd_dev_t *mtd, void *dest, uint32_t page, uint32_t offset, uint32_t size) |
| Read data from a MTD device with pagewise addressing. More...
|
|
int | mtd_write (mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count) |
| Write data to a MTD device. More...
|
|
int | mtd_write_page (mtd_dev_t *mtd, const void *src, uint32_t page, uint32_t offset, uint32_t size) |
| Write data to a MTD device with pagewise addressing. More...
|
|
int | mtd_erase (mtd_dev_t *mtd, uint32_t addr, uint32_t count) |
| Erase sectors of a MTD device. More...
|
|
int | mtd_erase_sector (mtd_dev_t *mtd, uint32_t sector, uint32_t num) |
| Erase sectors of a MTD device. More...
|
|
int | mtd_power (mtd_dev_t *mtd, enum mtd_power_state power) |
| Set power mode on a MTD device. More...
|
|