[][src]Struct gba_hal::data::LengthEnvelope

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

Length and envelope controls for the Noise output

  • 0-5 (wo): sound length (64-n)/256 seconds
  • 8-10: Envelope step time, n/64 seconds, 0 for off.
  • 11: Envelope increasing
  • 12-15: Envelope initial volume

Methods

impl LengthEnvelope[src]

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

A const "zero value" constructor

impl LengthEnvelope[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 STEP_TIME_MASK: u16[src]

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

pub const fn with_step_time(self, step_time: u16) -> Self[src]

pub const ENVELOPE_INCREASING_BIT: u16[src]

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

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

pub const INITIAL_VOLUME_MASK: u16[src]

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

pub const fn with_initial_volume(self, initial_volume: u16) -> Self[src]

Trait Implementations

impl PartialEq<LengthEnvelope> for LengthEnvelope[src]

impl Eq for LengthEnvelope[src]

impl Debug for LengthEnvelope[src]

impl Copy for LengthEnvelope[src]

impl Clone for LengthEnvelope[src]

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

Performs copy-assignment from source. Read more

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