Struct Power
#[repr(transparent)]pub struct Power(pub u32);Expand description
SDMMC power control register.
Tuple Fields§
§0: u32Implementations§
§impl Power
impl Power
pub const fn pwrctrl(&self) -> Pwrctrl
pub const fn pwrctrl(&self) -> Pwrctrl
SDMMC state control bits. These bits can only be written when the SDMMC is not in the power-on state (PWRCTRL != 11).
pub const fn set_pwrctrl(&mut self, val: Pwrctrl)
pub const fn set_pwrctrl(&mut self, val: Pwrctrl)
SDMMC state control bits. These bits can only be written when the SDMMC is not in the power-on state (PWRCTRL != 11).
pub const fn set_vswitch(&mut self, val: bool)
pub const fn set_vswitch(&mut self, val: bool)
Voltage switch sequence start.
pub const fn set_vswitchen(&mut self, val: bool)
pub const fn set_vswitchen(&mut self, val: bool)
Voltage switch procedure enable.
pub const fn set_dirpol(&mut self, val: bool)
pub const fn set_dirpol(&mut self, val: bool)
Data and command direction signals polarity selection.
Trait Implementations§
impl Copy for Power
impl Eq for Power
impl StructuralPartialEq for Power
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl Sync for Power
impl Unpin for Power
impl UnsafeUnpin for Power
impl UnwindSafe for Power
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