no-OS
no_os_flash.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef _NO_OS_FLASH_H_
41 #define _NO_OS_FLASH_H_
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include <stdint.h>
48 
49 /******************************************************************************/
50 /*************************** Types Declarations *******************************/
51 /******************************************************************************/
52 
59  uint8_t id;
61  uint32_t flash_size;
63  uint32_t page_size;
65  void *extra;
66 };
67 
74  uint8_t id;
76  uint32_t flash_size;
78  uint32_t flash_page_size;
80  void *extra;
81 };
82 
83 /******************************************************************************/
84 /************************ Functions Declarations ******************************/
85 /******************************************************************************/
86 
88 int32_t no_os_flash_init(struct no_os_flash_dev **device,
90 
92 int32_t no_os_flash_remove(struct no_os_flash_dev *dev);
93 
95 int32_t no_os_flash_clear_page(struct no_os_flash_dev *dev, int32_t page_no);
96 
98 int32_t no_os_flash_write_page(struct no_os_flash_dev *dev, int32_t page_no,
99  uint32_t *data);
100 
102 int32_t flash_read_page(struct no_os_flash_dev *dev, int32_t page_no,
103  uint32_t *data);
104 
106 int32_t no_os_flash_write(struct no_os_flash_dev *dev, uint32_t flash_addr,
107  uint32_t *array, uint32_t array_size);
108 
110 int32_t no_os_flash_read(struct no_os_flash_dev *dev, uint32_t flash_addr,
111  uint32_t *array,
112  uint32_t size);
113 
114 #endif // _NO_OS_FLASH_H_
no_os_flash_dev::flash_size
uint32_t flash_size
Definition: no_os_flash.h:61
no_os_flash_init_param::extra
void * extra
Definition: no_os_flash.h:80
no_os_flash_dev::page_size
uint32_t page_size
Definition: no_os_flash.h:63
no_os_flash_init_param::flash_size
uint32_t flash_size
Definition: no_os_flash.h:76
no_os_flash_init_param::flash_page_size
uint32_t flash_page_size
Definition: no_os_flash.h:78
device
Definition: ad9361_util.h:75
no_os_flash_init_param::id
uint8_t id
Definition: no_os_flash.h:74
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:260
no_os_flash_dev::extra
void * extra
Definition: no_os_flash.h:65
no_os_flash_dev
Flash controller device structure.
Definition: no_os_flash.h:57
no_os_flash_init_param
Flash controller initialization structure.
Definition: no_os_flash.h:72
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:83
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:130
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:158
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
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:290
no_os_flash_dev::id
uint8_t id
Definition: no_os_flash.h:59
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:185