Skip to content

Commit

Permalink
Removed redundant StatusRegister impl block
Browse files Browse the repository at this point in the history
  • Loading branch information
BLM16 committed Nov 14, 2024
1 parent adea264 commit d50bebc
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions crates/ads126x/src/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,6 @@ bitflags! {
}
}

impl StatusRegister {
pub fn is_adc2_data_new(&self) -> bool {
self.contains(StatusRegister::ADC2)
}

pub fn is_adc1_data_new(&self) -> bool {
self.contains(StatusRegister::ADC1)
}

pub fn is_extclk(&self) -> bool {
self.contains(StatusRegister::EXTCLK)
}

pub fn is_ref_alm(&self) -> bool {
self.contains(StatusRegister::REF_ALM)
}

pub fn is_pgal_alm(&self) -> bool {
self.contains(StatusRegister::PGAL_ALM)
}

pub fn is_pgah_alm(&self) -> bool {
self.contains(StatusRegister::PGAH_ALM)
}

pub fn is_pgad_alm(&self) -> bool {
self.contains(StatusRegister::PGAD_ALM)
}

pub fn is_reset(&self) -> bool {
self.contains(StatusRegister::RESET)
}
}

bitflags! {
pub struct IdRegister: u8 {
const _ = !0; // Source may set any bits
Expand Down

0 comments on commit d50bebc

Please sign in to comment.