Piezo 측정 파라미터 공용 헤더 추가 및 최대 샘플 수 118개로 변경

- reb: 패킷에 채널 정보 2바이트가 추가되어 단일 패킷 최대 샘플 수를 119개에서 118개로 조정
This commit is contained in:
2026-06-26 17:40:05 +09:00
parent 80d7086d09
commit 763abb0fcc
5 changed files with 61 additions and 28 deletions
@@ -40,6 +40,7 @@
#include "nrf_pwr_mgmt.h"
#include "main.h"
#include "debug_print.h"
#include "../../measurement/piezo/piezo_config.h"
/* FDS record identifiers */
@@ -107,11 +108,11 @@ void fds_default_value_set(void)
m_config.life_cycle = 0;
/* Piezo measurement parameter defaults */
m_config.piezo_freq_option = 1; /* 2.1 MHz */
m_config.piezo_delay_us = 10; /* 10 us after burst */
m_config.piezo_num_samples = 100; /* 100 samples */
m_config.piezo_cycles = 3; /* 7 cycles */
m_config.piezo_averaging = 3; /* 3x averaging */
m_config.piezo_freq_option = PIEZO_CONFIG_FREQ_OPTION_DEFAULT; /* 2.1 MHz */
m_config.piezo_delay_us = PIEZO_CONFIG_DELAY_US_DEFAULT; /* 10 us after burst */
m_config.piezo_num_samples = PIEZO_CONFIG_NUM_SAMPLES_DEFAULT; /* 100 samples */
m_config.piezo_cycles = PIEZO_CONFIG_CYCLES_DEFAULT; /* 3 cycles */
m_config.piezo_averaging = PIEZO_CONFIG_AVERAGING_DEFAULT; /* 3x averaging */
/* Factory provisioning — default: not provisioned */
m_config.factory_provisioned = 0;