Detailed Description

#include <stdint.h>
+ Include dependency graph for mtd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mtd_dev_t
 MTD device descriptor. More...
 
struct  mtd_desc
 MTD driver interface. More...
 

Typedefs

typedef struct mtd_desc mtd_desc_t
 MTD driver interface. More...
 

Enumerations

enum  mtd_power_state { MTD_POWER_UP, MTD_POWER_DOWN }
 MTD power states. More...
 

Functions

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)
 mtd_read Read data from a MTD device More...
 
int mtd_write (mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count)
 mtd_read write data to a MTD device More...
 
int mtd_erase (mtd_dev_t *mtd, uint32_t addr, uint32_t count)
 mtd_erase Erase sectors of a MTD device More...
 
int mtd_power (mtd_dev_t *mtd, enum mtd_power_state power)
 mtd_power Set power mode on a MTD device More...
 

Variables

const vfs_file_ops_t mtd_vfs_ops
 MTD driver for VFS.