pub struct Approtect<'a> { /* private fields */ }Implementations§
Source§impl<'a> Approtect<'a>
impl<'a> Approtect<'a>
pub const fn new( registers: StaticRef<ApprotectRegisters>, ficr: &'a Ficr, ) -> Approtect<'a>
Sourcepub fn sw_disable_approtect(&self)
pub fn sw_disable_approtect(&self)
Software disable the Access Port Protection mechanism.
On newer variants of the nRF52, to enable JTAG, APPROTECT must be disabled both in the UICR register (hardware) and in this register (software). For older variants this is just a no-op.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Approtect<'a>
impl<'a> !Send for Approtect<'a>
impl<'a> !Sync for Approtect<'a>
impl<'a> !UnwindSafe for Approtect<'a>
impl<'a> Freeze for Approtect<'a>
impl<'a> Unpin for Approtect<'a>
impl<'a> UnsafeUnpin for Approtect<'a>
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