added tec modulation

This commit is contained in:
Ayzen
2026-04-27 18:16:39 +03:00
parent d32db245fa
commit d3d48a5255
60 changed files with 13021 additions and 12456 deletions

View File

@ -41,11 +41,15 @@ Additional profile-controlled devices:
- `AD9102` waveform settings are stored through the `waveform_*` keys.
- `AD9833` settings are stored through `ad9833_enable`, `ad9833_triangle`, and `ad9833_frequency_word`.
- STM32 internal DAC settings are stored through `stm32_dac_enable` and `stm32_dac_code`.
- TEC drive modulation is stored through `tec_modulation_enable`, `tec_modulation_laser`,
`tec_modulation_frequency_hz`, and `tec_modulation_amplitude_code`.
- `DS1809` is stored as an absolute target above the minimum tap using `ds1809_apply` and `ds1809_position_from_min`.
Notes:
- `ad9833_frequency_word` uses the same raw 28-bit tuning word that the old serial command accepted.
- `tec_modulation_laser` is `1` or `2`; accepted TEC modulation frequency is `50..2000 Hz`,
and peak amplitude is `0..4096` external TEC DAC codes.
- `ds1809_position_from_min` is clamped to the valid `0..63` range by the firmware.
- When `ds1809_apply=true`, the firmware first drives the potentiometer fully down and then steps it up to the requested absolute position.