[][src]Struct gba_hal::data::StereoControl

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

Controls left and right sound outputs.

  • 0-2: Master Right Volume
  • 4-6: Master Left Volume
  • 8: Pulse A right
  • 9: Pulse B right
  • 10: Wave right
  • 11: Noise right
  • 12: Pulse A left
  • 13: Pulse B left
  • 14: Wave left
  • 15: Noise left

Methods

impl StereoControl[src]

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

A const "zero value" constructor

impl StereoControl[src]

pub const VOLUME_RIGHT_MASK: u16[src]

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

pub const fn with_volume_right(self, volume_right: u16) -> Self[src]

pub const VOLUME_LEFT_MASK: u16[src]

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

pub const fn with_volume_left(self, volume_left: u16) -> Self[src]

pub const PULSE_A_RIGHT_BIT: u16[src]

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

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

pub const PULSE_B_RIGHT_BIT: u16[src]

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

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

pub const WAVE_RIGHT_BIT: u16[src]

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

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

pub const NOISE_RIGHT_BIT: u16[src]

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

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

pub const PULSE_A_LEFT_BIT: u16[src]

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

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

pub const PULSE_B_LEFT_BIT: u16[src]

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

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

pub const WAVE_LEFT_BIT: u16[src]

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

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

pub const NOISE_LEFT_BIT: u16[src]

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

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

Trait Implementations

impl PartialEq<StereoControl> for StereoControl[src]

impl Eq for StereoControl[src]

impl Copy for StereoControl[src]

impl Debug for StereoControl[src]

impl Clone for StereoControl[src]

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

Performs copy-assignment from source. Read more

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