pub struct ModeReg(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl ModeReg
impl ModeReg
Sourcepub fn dev_reset(&self) -> bool
pub fn dev_reset(&self) -> bool
Device reset. Setting this bit performs the equivalent operation of power cycling the device. Any playback operations are immediately interrupted, and all registers are reset to the default values. The DEV_RESET bit self- clears after the reset operation is complete.
Sourcepub fn standby(&self) -> bool
pub fn standby(&self) -> bool
Software standby mode 0: Device ready 1: Device in software standby
Sourcepub fn set_dev_reset(&mut self, value: bool)
pub fn set_dev_reset(&mut self, value: bool)
Device reset. Setting this bit performs the equivalent operation of power cycling the device. Any playback operations are immediately interrupted, and all registers are reset to the default values. The DEV_RESET bit self- clears after the reset operation is complete.
Sourcepub fn set_standby(&mut self, value: bool)
pub fn set_standby(&mut self, value: bool)
Software standby mode 0: Device ready 1: Device in software standby
Trait Implementations§
Source§impl<T> BitRangeMut<T> for ModeRegwhere
u8: BitRangeMut<T>,
impl<T> BitRangeMut<T> for ModeRegwhere
u8: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Auto Trait Implementations§
impl Freeze for ModeReg
impl RefUnwindSafe for ModeReg
impl Send for ModeReg
impl Sync for ModeReg
impl Unpin for ModeReg
impl UnwindSafe for ModeReg
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
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