diff options
author | Keith Packard <keithp@keithp.com> | 2012-03-26 23:35:35 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-03-26 23:35:35 -0700 |
commit | c1d12a117b36de7fe8dd992959b890bfd1163e81 (patch) | |
tree | a2be474737f3f3fb062b60ca6ea26301706151f6 /src/core/ao.h | |
parent | c2550d72aee371676d2f09316051567681e53a7c (diff) |
Do radio settings solely by frequency
Compute the radio setting needed based on the calibration value
provided and the requested frequency.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r-- | src/core/ao.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 8c5335c4..ce9a1f70 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -1539,7 +1539,6 @@ ao_igniter_init(void); struct ao_radio_channel { char name[AO_CHANNEL_NAME_LEN]; uint32_t kHz; - uint32_t radio_setting; }; #endif @@ -1559,6 +1558,7 @@ struct ao_config { uint32_t radio_setting; /* minor version 7 */ uint8_t radio_enable; /* minor version 8 */ uint8_t aes_key[AO_AES_LEN]; /* minor version 9 */ + uint32_t frequency; /* minor version 10 */ #if HAS_RADIO_CHANNELS struct ao_radio_channel radio_channels[AO_NUM_CHANNELS]; /* minor version 10 */ #endif @@ -1959,4 +1959,10 @@ ao_battery_init(void); uint32_t ao_sqrt(uint32_t op); +/* + * ao_freq.c + */ + +int32_t ao_freq_to_set(int32_t freq, int32_t cal); + #endif /* _AO_H_ */ |