no-OS
no_os_flash.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef _NO_OS_FLASH_H_
35 #define _NO_OS_FLASH_H_
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include <stdint.h>
42 
43 /******************************************************************************/
44 /*************************** Types Declarations *******************************/
45 /******************************************************************************/
46 
53  uint8_t id;
55  uint32_t flash_size;
57  uint32_t page_size;
59  void *extra;
60 };
61 
68  uint8_t id;
70  uint32_t flash_size;
72  uint32_t flash_page_size;
74  void *extra;
75 };
76 
77 /******************************************************************************/
78 /************************ Functions Declarations ******************************/
79 /******************************************************************************/
80 
82 int32_t no_os_flash_init(struct no_os_flash_dev **device,
84 
86 int32_t no_os_flash_remove(struct no_os_flash_dev *dev);
87 
89 int32_t no_os_flash_clear_page(struct no_os_flash_dev *dev, int32_t page_no);
90 
92 int32_t no_os_flash_write_page(struct no_os_flash_dev *dev, int32_t page_no,
93  uint32_t *data);
94 
96 int32_t flash_read_page(struct no_os_flash_dev *dev, int32_t page_no,
97  uint32_t *data);
98 
100 int32_t no_os_flash_write(struct no_os_flash_dev *dev, uint32_t flash_addr,
101  uint32_t *array, uint32_t array_size);
102 
104 int32_t no_os_flash_read(struct no_os_flash_dev *dev, uint32_t flash_addr,
105  uint32_t *array,
106  uint32_t size);
107 
108 #endif // _NO_OS_FLASH_H_
no_os_flash_dev::flash_size
uint32_t flash_size
Definition: no_os_flash.h:55
no_os_flash_init_param::extra
void * extra
Definition: no_os_flash.h:74
no_os_flash_dev::page_size
uint32_t page_size
Definition: no_os_flash.h:57
no_os_flash_init_param::flash_size
uint32_t flash_size
Definition: no_os_flash.h:70
no_os_flash_init_param::flash_page_size
uint32_t flash_page_size
Definition: no_os_flash.h:72
device
Definition: ad9361_util.h:69
no_os_flash_init_param::id
uint8_t id
Definition: no_os_flash.h:68
no_os_flash_write
int32_t no_os_flash_write(struct no_os_flash_dev *dev, uint32_t flash_addr, uint32_t *array, uint32_t array_size)
Definition: aducm3029_flash.c:255
no_os_flash_dev::extra
void * extra
Definition: no_os_flash.h:59
no_os_flash_dev
Flash controller device structure.
Definition: no_os_flash.h:51
no_os_flash_init_param
Flash controller initialization structure.
Definition: no_os_flash.h:66
no_os_flash_init
int32_t no_os_flash_init(struct no_os_flash_dev **device, struct no_os_flash_init_param *init_param)
Definition: aducm3029_flash.c:78
flash_read_page
int32_t flash_read_page(struct no_os_flash_dev *dev, int32_t page_no, uint32_t *data)
no_os_flash_remove
int32_t no_os_flash_remove(struct no_os_flash_dev *dev)
Definition: aducm3029_flash.c:125
no_os_flash_clear_page
int32_t no_os_flash_clear_page(struct no_os_flash_dev *dev, int32_t page_no)
Definition: aducm3029_flash.c:153
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
no_os_flash_read
int32_t no_os_flash_read(struct no_os_flash_dev *dev, uint32_t flash_addr, uint32_t *array, uint32_t size)
Definition: aducm3029_flash.c:285
no_os_flash_dev::id
uint8_t id
Definition: no_os_flash.h:53
no_os_flash_write_page
int32_t no_os_flash_write_page(struct no_os_flash_dev *dev, int32_t page_no, uint32_t *data)
Definition: aducm3029_flash.c:180