[][src]Struct gba_hal::data::WaveLengthVolume

#[repr(transparent)]
pub struct WaveLengthVolume(_);

Length and Volume controls for the Wave output.

  • 0-7 (wo): Sound Length: (256-n)/256 seconds
  • 13-14: Volume Mode
  • 15: Override above and use 75%

Methods

impl WaveLengthVolume[src]

pub const fn new() -> Self[src]

A const "zero value" constructor

impl WaveLengthVolume[src]

pub const LENGTH_MASK: u16[src]

pub const fn length(self) -> u16[src]

pub const fn with_length(self, length: u16) -> Self[src]

pub const VOLUME_MASK: u16[src]

pub fn volume(self) -> WaveVolume[src]

pub const fn with_volume(self, volume: WaveVolume) -> Self[src]

pub const OVERRIDE_75PERCENT_BIT: u16[src]

pub const fn override_75percent(self) -> bool[src]

pub const fn with_override_75percent(self, bit: bool) -> Self[src]

Trait Implementations

impl PartialEq<WaveLengthVolume> for WaveLengthVolume[src]

impl Eq for WaveLengthVolume[src]

impl Copy for WaveLengthVolume[src]

impl Debug for WaveLengthVolume[src]

impl Clone for WaveLengthVolume[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for WaveLengthVolume[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]