[−][src]Struct gba_hal::data::Sweep
Controls the sweep effect (Pulse A only).
- 0-2: Shift number
- 3: Sweep is decreasing or increasing
- 4-6: Time per sweep. Units of
x/128sec akax * 7.8ms
If sweep is disabled by setting sweep time to 0, the sweep should also be set to decreasing mode.
Methods
impl Sweep[src]
impl Sweep[src]
pub const SHIFT_NUM_MASK: u8[src]
pub const fn shift_num(self) -> u8[src]
pub const fn with_shift_num(self, shift_num: u8) -> Self[src]
pub const DECREASING_BIT: u8[src]
pub const fn decreasing(self) -> bool[src]
pub const fn with_decreasing(self, bit: bool) -> Self[src]
pub const TIMER_MASK: u8[src]
pub const fn timer(self) -> u8[src]
pub const fn with_timer(self, timer: u8) -> Self[src]
Trait Implementations
impl PartialEq<Sweep> for Sweep[src]
impl Eq for Sweep[src]
impl Debug for Sweep[src]
impl Copy for Sweep[src]
impl Clone for Sweep[src]
fn clone(&self) -> Sweep[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for Sweep[src]
Auto Trait Implementations
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,