Struct rp_pac::accessctrl::regs::GpioNsmask1
source · #[repr(transparent)]pub struct GpioNsmask1(pub u32);
Expand description
Control whether GPIO32..47 are accessible to Non-secure code, and whether QSPI and USB bitbang are accessible through the Non-secure SIO. Writable only by a Secure, Privileged processor or debugger.
Tuple Fields§
§0: u32
Implementations§
source§impl GpioNsmask1
impl GpioNsmask1
pub const fn gpio(&self) -> u16
pub fn set_gpio(&mut self, val: u16)
pub const fn usb_dp(&self) -> bool
pub fn set_usb_dp(&mut self, val: bool)
pub const fn usb_dm(&self) -> bool
pub fn set_usb_dm(&mut self, val: bool)
pub const fn qspi_sck(&self) -> bool
pub fn set_qspi_sck(&mut self, val: bool)
pub const fn qspi_csn(&self) -> bool
pub fn set_qspi_csn(&mut self, val: bool)
pub const fn qspi_sd(&self) -> u8
pub fn set_qspi_sd(&mut self, val: u8)
Trait Implementations§
source§impl Clone for GpioNsmask1
impl Clone for GpioNsmask1
source§fn clone(&self) -> GpioNsmask1
fn clone(&self) -> GpioNsmask1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GpioNsmask1
impl Default for GpioNsmask1
source§fn default() -> GpioNsmask1
fn default() -> GpioNsmask1
Returns the “default value” for a type. Read more
source§impl PartialEq for GpioNsmask1
impl PartialEq for GpioNsmask1
impl Copy for GpioNsmask1
impl Eq for GpioNsmask1
impl StructuralPartialEq for GpioNsmask1
Auto Trait Implementations§
impl Freeze for GpioNsmask1
impl RefUnwindSafe for GpioNsmask1
impl Send for GpioNsmask1
impl Sync for GpioNsmask1
impl Unpin for GpioNsmask1
impl UnwindSafe for GpioNsmask1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)