pub struct WaveOutput(/* private fields */);Expand description
Channel 3 output level (NR32).
| Bit | Field | Access | Meaning |
|---|---|---|---|
| 7 | — | Unused. | |
| 6-5 | level | R/W | Coarse output volume. |
| 4-0 | — | Unused. |
Implementations§
Source§impl WaveOutput
impl WaveOutput
Sourcepub const fn with_level_checked(self, value: WaveLevel) -> Result<Self, ()>
pub const fn with_level_checked(self, value: WaveLevel) -> Result<Self, ()>
Coarse output volume.
Bits: 5..7
Sourcepub const fn with_level(self, value: WaveLevel) -> Self
pub const fn with_level(self, value: WaveLevel) -> Self
Coarse output volume.
Bits: 5..7
Trait Implementations§
Source§impl Clone for WaveOutput
impl Clone for WaveOutput
Source§fn clone(&self) -> WaveOutput
fn clone(&self) -> WaveOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaveOutput
Source§impl Debug for WaveOutput
impl Debug for WaveOutput
Source§impl Default for WaveOutput
impl Default for WaveOutput
impl Eq for WaveOutput
Source§impl From<WaveOutput> for u8
impl From<WaveOutput> for u8
Source§fn from(v: WaveOutput) -> Self
fn from(v: WaveOutput) -> Self
Converts to this type from the input type.
Source§impl From<u8> for WaveOutput
impl From<u8> for WaveOutput
Source§impl PartialEq for WaveOutput
impl PartialEq for WaveOutput
impl StructuralPartialEq for WaveOutput
Auto Trait Implementations§
impl BankSafe for WaveOutput
impl Freeze for WaveOutput
impl RefUnwindSafe for WaveOutput
impl Send for WaveOutput
impl Sync for WaveOutput
impl Unpin for WaveOutput
impl UnsafeUnpin for WaveOutput
impl UnwindSafe for WaveOutput
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