mirror of https://github.com/m-labs/artiq.git
sayma: improve DAC status report
This commit is contained in:
parent
c4e4d67cdf
commit
705737f6e3
|
@ -355,7 +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!("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: {}",
|
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