pub struct Uicr { /* private fields */ }
Implementations§
source§impl Uicr
impl Uicr
pub const fn new() -> Uicr
pub fn set_psel0_reset_pin(&self, pin: Pin)
pub fn get_psel0_reset_pin(&self) -> Option<Pin>
pub fn set_psel1_reset_pin(&self, pin: Pin)
pub fn get_psel1_reset_pin(&self) -> Option<Pin>
pub fn set_vout(&self, vout: Regulator0Output)
pub fn get_vout(&self) -> Regulator0Output
pub fn set_nfc_pins_protection(&self, protected: bool)
pub fn is_nfc_pins_protection_enabled(&self) -> bool
pub fn is_ap_protect_enabled(&self) -> bool
pub fn set_ap_protect(&self)
sourcepub fn disable_ap_protect(&self)
pub fn disable_ap_protect(&self)
Disable the access port protection in the UICR register. This is stored
in flash and is persistent. This behavior can also be accomplished
outside of tock by running nrfjprog --recover
.
Auto Trait Implementations§
impl Freeze for Uicr
impl !RefUnwindSafe for Uicr
impl !Send for Uicr
impl !Sync for Uicr
impl Unpin for Uicr
impl !UnwindSafe for Uicr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more