pulse modulation added

This commit is contained in:
Ayzen
2026-09-01 18:08:35 +03:00
parent 42795eb899
commit fd95fe3c56
6 changed files with 179 additions and 13 deletions
+5
View File
@@ -103,6 +103,7 @@ static void profile_repository_reset_profile(profile_t *profile)
profile->waveform.saw_step = 1u;
profile->waveform.pat_period_base = 2u;
profile->waveform.pat_period = 0xFFFFu;
profile->waveform.custom_pat_period_us = 0u;
profile->waveform.sample_count = AD9102_SRAM_DEFAULT_SAMPLE_COUNT;
profile->waveform.hold_cycles = AD9102_SRAM_DEFAULT_HOLD;
profile->waveform.amplitude = AD9102_SRAM_DEFAULT_AMPLITUDE;
@@ -267,6 +268,10 @@ static void profile_repository_apply_key_value(profile_t *profile, const char *k
{
profile->waveform.pat_period = profile_repository_parse_u16(value);
}
else if (strcmp(key, "waveform_custom_period_us") == 0)
{
profile->waveform.custom_pat_period_us = profile_repository_parse_u16(value);
}
else if (strcmp(key, "waveform_sample_count") == 0)
{
profile->waveform.sample_count = profile_repository_parse_u16(value);