9b042dfef2
- parser.c: BLE 커맨드 파싱/측정 함수 호출/응담 패킷 생성 및 전송 - piezo.c: Piezo 관련 GPIO 제어 - piezo_measure.c: 실제 측정 시퀀스
26 lines
933 B
C
26 lines
933 B
C
/*******************************************************************************
|
|
* @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 "piezo_measure.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);
|
|
int app_nvs_save_passkey_changed(uint8_t changed);
|
|
|
|
#endif /* APP_NVS_H__ */
|