[][src]Struct gba_hal::data::WaveInitRAMControl

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

Controls how the Wave RAM is accessed, and if the sound plays at all.

  • 5: true, playback runs through both banks as a 64 digit loop. false, playback runs though just a single bank as a 32 digit loop.
  • 6: true selects bank 1 for playback, false selects bank 0.
  • 7: Wave sound is enabled.

Methods

impl WaveInitRAMControl[src]

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

A const "zero value" constructor

impl WaveInitRAMControl[src]

pub const USE_BOTH_BANKS_BIT: u8[src]

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

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

pub const USE_BANK_1_BIT: u8[src]

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

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

pub const PLAYBACK_BIT: u8[src]

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

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

Trait Implementations

impl PartialEq<WaveInitRAMControl> for WaveInitRAMControl[src]

impl Eq for WaveInitRAMControl[src]

impl Debug for WaveInitRAMControl[src]

impl Copy for WaveInitRAMControl[src]

impl Clone for WaveInitRAMControl[src]

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

Performs copy-assignment from source. Read more

impl Default for WaveInitRAMControl[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]