[][src]Struct gba_hal::data::DMAMixer

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

Controls DMA Sound mixing.

  • 0-1: non-dma sound level: quarter, half, or full.
  • 2: DMA sound A full (true) or half (false)
  • 3: DMA sound B full (true) or half (false)
  • 8: DMA sound A enabled right
  • 9: DMA sound A enabled left
  • 10: DMA sound A timer 1 (true) or timer 0 (false)
  • 11 (wo): Reset FIFO A
  • 12: DMA sound B enabled right
  • 13: DMA sound B enabled left
  • 14: DMA sound B timer 1 (true) or timer 0 (false)
  • 15 (wo): Reset FIFO B

Methods

impl DMAMixer[src]

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

A const "zero value" constructor

impl DMAMixer[src]

pub const NON_DMA_VOLUME_MASK: u16[src]

pub fn non_dma_volume(self) -> NonDMASoundVolume[src]

pub const fn with_non_dma_volume(
    self,
    non_dma_volume: NonDMASoundVolume
) -> Self
[src]

pub const DMA_A_FULL_BIT: u16[src]

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

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

pub const DMA_B_FULL_BIT: u16[src]

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

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

pub const DMA_A_RIGHT_BIT: u16[src]

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

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

pub const DMA_A_LEFT_BIT: u16[src]

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

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

pub const DMA_A_TIMER1_BIT: u16[src]

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

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

pub const DMA_A_RESET_FIFO_BIT: u16[src]

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

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

pub const DMA_B_RIGHT_BIT: u16[src]

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

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

pub const DMA_B_LEFT_BIT: u16[src]

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

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

pub const DMA_B_TIMER1_BIT: u16[src]

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

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

pub const DMA_B_RESET_FIFO_BIT: u16[src]

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

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

Trait Implementations

impl PartialEq<DMAMixer> for DMAMixer[src]

impl Eq for DMAMixer[src]

impl Debug for DMAMixer[src]

impl Copy for DMAMixer[src]

impl Clone for DMAMixer[src]

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

Performs copy-assignment from source. Read more

impl Default for DMAMixer[src]

Auto Trait Implementations

impl Send for DMAMixer

impl Sync for DMAMixer

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]