pub fn frequency_to_tuning_word(
    output_frequency: f32,
    oscillator_freq: f32
) -> u32