pub fn detect_mode(&mut self, det_mode: DetectMode) {
        match det_mode {
            DetectMode::Default => self
                .regs()
                .detectmode
                .modify(|r, w| unsafe { w.bits(r.bits() | (1 << self.pin)) }),
            DetectMode::Ldetect => self
                .regs()
                .detectmode
                .modify(|r, w| unsafe { w.bits(r.bits() & !(1 << self.pin)) }),
        }
    }
/// Select between default DETECT signal behavior and LDETECT mode. Sets the `DETECTMODE` register.
Select between default DETECT signal behavior and LDETECT mode. Sets the `DETECTMODE` register.
Select between default DETECT signal behavior and LDETECT mode . Sets the ` DETECTMODE ` register .
pub fn detect_mode(&mut self, det_mode: DetectMode) {
        match det_mode {
            DetectMode::Default => self
                .regs()
                .detectmode
                .modify(|r, w| unsafe { w.bits(r.bits() | (1 << self.pin)) }),
            DetectMode::Ldetect => self
                .regs()
                .detectmode
                .modify(|r, w| unsafe { w.bits(r.bits() & !(1 << self.pin)) }),
        }
    }
pub fn detect_mode ( & mut self , det_mode : DetectMode ) { match det_mode { DetectMode :: Default => self . regs ( ) . detectmode . modify ( | r , w | unsafe { w . bits ( r . bits ( ) | ( 1 << self . pin ) ) } ) , DetectMode :: Ldetect => self . regs ( ) . detectmode . modify ( | r , w | unsafe { w . bits ( r . bits ( ) & ! ( 1 << self . pin ) ) } ) , } }
Select between default DETECT signal behavior and LDETECT mode.
Select between default DETECT signal behavior and LDETECT mode .
&mut self
det_mode
DetectMode
&mut self
det_mode
DetectMode