NVS 추가 - 측정 파라미터
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*******************************************************************************
|
||||
* @file app_nvs.h
|
||||
* @brief Application persistent settings stored through Zephyr NVS/settings
|
||||
******************************************************************************/
|
||||
#ifndef APP_NVS_H__
|
||||
#define APP_NVS_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "parser.h"
|
||||
|
||||
typedef bool (*app_nvs_piezo_validate_fn)(const piezo_config_t *cfg);
|
||||
typedef void (*app_nvs_piezo_log_fn)(const char *prefix, const piezo_config_t *cfg);
|
||||
|
||||
int app_nvs_init(piezo_config_t *piezo_cfg,
|
||||
app_nvs_piezo_validate_fn piezo_validate,
|
||||
app_nvs_piezo_log_fn piezo_log);
|
||||
|
||||
int app_nvs_save_piezo(const piezo_config_t *cfg);
|
||||
int app_nvs_save_hw_no(const char *hw_no);
|
||||
int app_nvs_save_serial_no(const char *serial_no);
|
||||
int app_nvs_save_passkey(const char *passkey);
|
||||
|
||||
#endif /* APP_NVS_H__ */
|
||||
Reference in New Issue
Block a user