RUI3 (RAK Unified Interface 3) - RAK4631
udrv_flash.h
Go to the documentation of this file.
1 
9 #ifndef __UDRV_FLASH_H__
10 #define __UDRV_FLASH_H__
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #include <stdint.h>
17 #include <stdbool.h>
18 #include "pin_define.h"
19 
20 void udrv_flash_init (void);
21 
22 void udrv_flash_deinit (void);
23 
24 int32_t udrv_flash_write (uint32_t addr, uint32_t len, uint8_t *buff);
25 
26 int32_t udrv_flash_read (uint32_t addr, uint32_t len, uint8_t *buff);
27 
28 int32_t udrv_flash_erase (uint32_t addr, uint32_t len);
29 
30 uint32_t udrv_flash_get_page_size(void);
31 
32 bool udrv_flash_check_addr_valid(uint32_t addr, uint32_t len);
33 
34 void udrv_flash_suspend(void);
35 
36 void udrv_flash_resume(void);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif // __UDRV_FLASH_H__
43 
uint32_t udrv_flash_get_page_size(void)
int32_t udrv_flash_read(uint32_t addr, uint32_t len, uint8_t *buff)
void udrv_flash_suspend(void)
int32_t udrv_flash_write(uint32_t addr, uint32_t len, uint8_t *buff)
void udrv_flash_init(void)
void udrv_flash_resume(void)
void udrv_flash_deinit(void)
int32_t udrv_flash_erase(uint32_t addr, uint32_t len)
bool udrv_flash_check_addr_valid(uint32_t addr, uint32_t len)