saving config added

This commit is contained in:
Ayzen
2026-10-13 17:49:53 +03:00
parent 4548c1f2a0
commit f7d9d1ce0e
7 changed files with 167 additions and 50 deletions
+18
View File
@@ -347,6 +347,22 @@ typedef struct tec_modulation_config_t {
uint16_t amplitude_code;
} tec_modulation_config_t;
/**
* @brief Periodic staircase sweep of one output code.
*
* The output steps from `min_code` up to `max_code` (inclusive) every
* `step_period_us`, then holds `min_code` for an extra `pause_ms` before the
* next sweep starts.
*/
typedef struct sweep_config_t {
uint8_t enabled;
uint16_t min_code;
uint16_t max_code;
uint16_t step_code;
uint16_t step_period_us;
uint16_t pause_ms;
} sweep_config_t;
/**
* @brief Absolute DS1809 target expressed as a number of steps above the minimum tap.
*/
@@ -371,6 +387,8 @@ typedef struct profile_t {
stm32_dac_config_t stm32_dac;
tec_modulation_config_t tec_modulation;
ds1809_config_t ds1809;
sweep_config_t laser2_current_sweep;
sweep_config_t stm32_dac_sweep;
} profile_t;
/**