pub struct WaveDac(/* private fields */);Expand description
Channel 3 DAC power (NR30).
| Bit | Field | Access | Meaning |
|---|---|---|---|
| 7 | dac_on | R/W | DAC power; turning it off also turns the channel off. |
| 6-0 | — | Unused. |
Implementations§
Source§impl WaveDac
impl WaveDac
Sourcepub const fn dac_on(&self) -> bool
pub const fn dac_on(&self) -> bool
DAC power. Turning it off also turns the channel off.
Bits: 7..8
Sourcepub const fn with_dac_on_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dac_on_checked(self, value: bool) -> Result<Self, ()>
DAC power. Turning it off also turns the channel off.
Bits: 7..8
Sourcepub const fn with_dac_on(self, value: bool) -> Self
pub const fn with_dac_on(self, value: bool) -> Self
DAC power. Turning it off also turns the channel off.
Bits: 7..8
Sourcepub const fn set_dac_on(&mut self, value: bool)
pub const fn set_dac_on(&mut self, value: bool)
DAC power. Turning it off also turns the channel off.
Bits: 7..8
Trait Implementations§
impl Copy for WaveDac
impl Eq for WaveDac
impl StructuralPartialEq for WaveDac
Auto Trait Implementations§
impl BankSafe for WaveDac
impl Freeze for WaveDac
impl RefUnwindSafe for WaveDac
impl Send for WaveDac
impl Sync for WaveDac
impl Unpin for WaveDac
impl UnsafeUnpin for WaveDac
impl UnwindSafe for WaveDac
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