[−][src]Struct gba_hal::data::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]
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]
fn eq(&self, other: &LengthEnvelope) -> bool
[src]
fn ne(&self, other: &LengthEnvelope) -> bool
[src]
impl Eq for LengthEnvelope
[src]
impl Debug for LengthEnvelope
[src]
impl Copy for LengthEnvelope
[src]
impl Clone for LengthEnvelope
[src]
fn clone(&self) -> 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]
fn default() -> LengthEnvelope
[src]
Auto Trait Implementations
impl Send for LengthEnvelope
impl Sync for LengthEnvelope
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,