mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
sayma: improve DAC status report
This commit is contained in:
parent
5c299de3b4
commit
ec03767dcf
@ -355,6 +355,8 @@ pub fn setup(dacno: u8, linerate: u64) -> Result<(), &'static str> {
|
|||||||
|
|
||||||
pub fn status(dacno: u8) {
|
pub fn status(dacno: u8) {
|
||||||
spi_setup(dacno);
|
spi_setup(dacno);
|
||||||
|
info!("Printing status of AD9154-{}", dacno);
|
||||||
|
info!("PRODID: 0x{:04x}", (read(ad9154_reg::PRODIDH) as u16) << 8 | (read(ad9154_reg::PRODIDL) as u16));
|
||||||
info!("SERDES_PLL_LOCK: {}",
|
info!("SERDES_PLL_LOCK: {}",
|
||||||
(read(ad9154_reg::PLL_STATUS) & ad9154_reg::SERDES_PLL_LOCK_RB));
|
(read(ad9154_reg::PLL_STATUS) & ad9154_reg::SERDES_PLL_LOCK_RB));
|
||||||
info!("");
|
info!("");
|
||||||
|
Loading…
Reference in New Issue
Block a user