SmartSnippets DA1459x SDK
ad_nvms_direct.h
Go to the documentation of this file.
1 
51 #ifndef AD_NVMS_DIRECT_H_
52 #define AD_NVMS_DIRECT_H_
53 
54 #if dg_configNVMS_ADAPTER
55 
56 #include <ad_nvms.h>
57 
58 /*
59  * 1. Dynamic sector buffer allocates memory when write changes data in a way that erase
60  * is required. After writing data RAM is freed. In low memory condition this can lead to write
61  * failure.
62  * 2. Static sector buffer, in this case driver keeps sector size memory buffer in no retention
63  * RAM all the time. Memory is always available.
64  * 3. No sector buffer, write will fail if sector is not manually erased before.
65  */
66 #define DIRECT_DRIVER_DYNAMIC_SECTOR_BUF 1
67 #define DIRECT_DRIVER_STATIC_SECTOR_BUF 2
68 #define DIRECT_DRIVER_NO_SECTOR_BUF 3
69 
70 extern const partition_driver_t ad_nvms_direct_driver;
71 
76 void ad_nvms_direct_init(void);
77 
78 #endif /* dg_configNVMS_ADAPTER */
79 
80 #endif /* AD_NVMS_DIRECT_H_ */
81 
ad_nvms_direct_init
void ad_nvms_direct_init(void)
Initialize NVMS direct access driver.
ad_nvms.h
NVMS adapter API.
driver_t
Partition driver functions.
Definition: ad_nvms.h:165