/// Enables / disables the internal pull up
Enables / disables the internal pull up
Enables / disables the internal pull up
pub fn internal_pull_up(&mut self, on: bool) {
        let offset = 2 * { N };
        let value = if on { 0b01 } else { 0b00 };
        unsafe {
            (*Gpio::<P>::ptr())
                .pupdr
                .modify(|r, w| w.bits((r.bits() & !(0b11 << offset)) | (value << offset)))
        };
    }
pub fn internal_pull_up ( & mut self , on : bool ) { let offset = 2 * { N } ; let value = if on { 0b01 } else { 0b00 } ; unsafe { ( * Gpio :: < P > :: ptr ( ) ) . pupdr . modify ( | r , w | w . bits ( ( r . bits ( ) & ! ( 0b11 << offset ) ) | ( value << offset ) ) ) } ; }
Enables / disables the internal pull up
Enables / disables the internal pull up
&mut self
on
bool