mtd_native.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 OTA keys S.A.
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef MTD_NATIVE_H
21 #define MTD_NATIVE_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include "mtd.h"
28 
30 typedef struct mtd_native_dev {
32  const char *fname;
34 
38 extern const mtd_desc_t native_flash_driver;
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* MTD_NATIVE_H */
45 
const mtd_desc_t native_flash_driver
Native mtd flash driver.
mtd native descriptor
Definition: mtd_native.h:30
MTD driver interface.
Definition: mtd.h:75
const char * fname
filename to use for memory emulation
Definition: mtd_native.h:32
struct mtd_native_dev mtd_native_dev_t
mtd native descriptor
mtd_dev_t dev
mtd generic device
Definition: mtd_native.h:31
MTD device descriptor.
Definition: mtd.h:58