Initial commit: MT firmware project
- BLE peripheral applications - dr_piezo and bladder_patch projects Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
60
project/ble_peripheral/ble_app_bladder_patch/fstorage.h
Normal file
60
project/ble_peripheral/ble_app_bladder_patch/fstorage.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*******************************************************************************
|
||||
* @file fstorage.h
|
||||
* @author CandyPops Co.
|
||||
* @version V1.0.0
|
||||
* @date 2022-09-05
|
||||
* @brief
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef IHP_FSTORAGE_H_
|
||||
#define IHP_FSTORAGE_H_
|
||||
|
||||
#include "sdk_config.h"
|
||||
|
||||
#include "nordic_common.h"
|
||||
#include <stdint.h>
|
||||
#include "measurements.h"
|
||||
|
||||
#define LED_NUM 48 /* LED0 사용하지 않음, 대신 NULL값 입력 */
|
||||
#define PD_NUM 2 /* PD0 사용하지 않음, 대신 NULL값 입력 * 0,1 data 2 mod 3 off*/
|
||||
#define mW 13 /* LED mW 설정 파워 값 */
|
||||
#define M_LED_NUM 24 /*측정할 L*/
|
||||
#pragma pack(1)
|
||||
typedef struct
|
||||
{
|
||||
uint32_t magic_number;
|
||||
//char serial_number[13];
|
||||
|
||||
// uint32_t pd_adc_calibration_PD0[M_LED_NUM];
|
||||
// uint32_t pd_adc_calibration_PD1[M_LED_NUM];
|
||||
// uint32_t pd_adc_calibration_PD2[M_LED_NUM];
|
||||
|
||||
|
||||
// uint32_t dark_noise_for_pd[PD_NUM];
|
||||
// int8_t pd_adc_cnt;
|
||||
int8_t reset_status;
|
||||
// uint16_t led_delay_us;
|
||||
// uint16_t pd_delay_us;
|
||||
|
||||
#if FEATURE_SECURE_CONNECTION
|
||||
// bool bond_data_delete;
|
||||
uint8_t static_passkey[6];
|
||||
|
||||
#endif
|
||||
|
||||
// uint16_t led_pd_dac_v[LED_NUM];
|
||||
// uint16_t led_power_dp[LED_NUM];
|
||||
|
||||
} config_data_t; /* Flash에 저장하는 값 */
|
||||
|
||||
extern config_data_t m_config;
|
||||
|
||||
void fds_default_value_set(void);
|
||||
void config_load( void );
|
||||
void config_save( void );
|
||||
|
||||
void fs_set_value(void);
|
||||
void fs_storage_init(void);
|
||||
|
||||
#endif /* IHP_FSTORAGE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user