打開svc\_database.h文件,接口列表如下:
* 服務程序初始化:
```
void svc_database_init(void);
```
* 向數據庫緩存寫入鍵值對:
```
int svc_database_set(uint8_t key, void *value, uint8_t len);
```
* 從數據庫中獲取鍵值對:
```
int svc_database_get(uint8_t key, void *value, uint8_t vsize);
```
* 進入數據庫鍵值對的內存空間(公用數據庫緩存的內存空間):
```
const void *svc_database_access(uint8_t key, uint8_t *size);
```
* 從數據庫中刪除鍵值對:
```
void svc_database_remove(uint8_t key);
```
* 判斷數據庫是否有指定的鍵值對:
```
uint8_t svc_database_has(uint8_t key);
```
* 保存數據庫到磁盤中:
```
void svc_database_save(void);
```
<br/>
- 框架介紹
- Main 函數
- HAL 函數接口說明
- hal_system.h
- hal_systick.h
- hal_idt.h
- hal_ioctl.h
- hal_flash.h
- hal_lpm.h
- hal_rtc.h
- hal_iwdg.h
- hal_uart.h
- hal_i2c.h
- hal_led.h
- hal_button.h
- hal_vht2x.h
- hal_lcd.h
- Services 函數接口說明
- svc_system.h
- svc_database.h
- svc_hid.h
- svc_msg.h
- svc_humiture.h
- svc_log.h
- Tasks 說明
- task_system.c
- task_example.c
- Libs 函數接口說明
- mathlib.h
- json.h
- atcmd.h
- atcmd_proxy.h
- libwifi.h
- libs1.h