forked from M-Labs/humpback-dds
dds: add get/set for sys_clk
This commit is contained in:
parent
d462f065a9
commit
26c987bd04
11
src/dds.rs
11
src/dds.rs
@ -726,6 +726,17 @@ where
|
|||||||
}
|
}
|
||||||
Ok(error_count)
|
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
|
// Strong check for bytes passed to a register
|
||||||
|
Loading…
Reference in New Issue
Block a user