From 705737f6e31bd8c85222e13f4f4ee3a457aa7382 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 20 Jan 2020 18:19:19 +0800 Subject: [PATCH] sayma: improve DAC status report --- artiq/firmware/libboard_artiq/ad9154.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/libboard_artiq/ad9154.rs b/artiq/firmware/libboard_artiq/ad9154.rs index e05448e0b..de32ff2e2 100644 --- a/artiq/firmware/libboard_artiq/ad9154.rs +++ b/artiq/firmware/libboard_artiq/ad9154.rs @@ -355,7 +355,8 @@ pub fn setup(dacno: u8, linerate: u64) -> Result<(), &'static str> { pub fn status(dacno: u8) { spi_setup(dacno); - info!("Status of DAC-{}", 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: {}", (read(ad9154_reg::PLL_STATUS) & ad9154_reg::SERDES_PLL_LOCK_RB)); info!("");