dds: add get/set for sys_clk

pull/4/head
occheung 2020-09-24 17:14:27 +08:00
parent d462f065a9
commit 26c987bd04
1 changed files with 11 additions and 0 deletions

View File

@ -726,6 +726,17 @@ where
}
Ok(error_count)
}
// Setter function for f_sys_clk
// Warning: This does not setup the chip to generate this actual f_sys_clk
pub(crate) fn set_f_sys_clk(&mut self, f_sys_clk: f64) {
self.f_sys_clk = f_sys_clk;
}
// Getter function for f_sys_clk
pub fn get_f_sys_clk(&mut self) -> f64 {
self.f_sys_clk
}
}
// Strong check for bytes passed to a register