Searched defs:mtd_ops (Results 1 – 1 of 1) sorted by relevance
109 struct mtd_ops struct111 int(*erase)(aos_mtd_t *mtd, off_t addr, size_t len); /* return 0 if success */112 int(*read) (aos_mtd_t *mtd, off_t from, struct mtd_io_desc *ops); /* return 0 if success */113 int(*write) (aos_mtd_t *mtd, off_t to, struct mtd_io_desc *ops); /* return 0 if success */114 int(*isbad) (aos_mtd_t *mtd, uint32_t block); /* return 1 if bad, 0 not bad */115 int(*markbad) (aos_mtd_t *mtd, uint32_t block); /* return 0 if success */
Completed in 3 milliseconds