#[repr(transparent)]pub struct Enable(pub u32);
Expand description
Enable SPI slave
Tuple Fields§
§0: u32
Implementations§
Source§impl Enable
impl Enable
Sourcepub const fn enable(&self) -> EnableEnable
pub const fn enable(&self) -> EnableEnable
Enable or disable SPI slave
Sourcepub fn set_enable(&mut self, val: EnableEnable)
pub fn set_enable(&mut self, val: EnableEnable)
Enable or disable SPI slave
Trait Implementations§
impl Copy for Enable
impl Eq for Enable
impl StructuralPartialEq for Enable
Auto Trait Implementations§
impl Freeze for Enable
impl RefUnwindSafe for Enable
impl Send for Enable
impl Sync for Enable
impl Unpin for Enable
impl UnwindSafe for Enable
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
)