forked from M-Labs/artiq
1
0
Fork 0

sayma: improve DAC status report

This commit is contained in:
Sebastien Bourdeauducq 2020-01-20 18:19:19 +08:00
parent c4e4d67cdf
commit 705737f6e3
1 changed files with 2 additions and 1 deletions

View File

@ -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!("");