pub struct SdHardParameters { /* private fields */ }
Expand description

Parameters for the SdHard machine.

Implementations§

source§

impl SdHardParameters

source

pub fn set_lev(&mut self, lev: usize) -> Result<(), RytmError>

Sets the lev parameter.

Range: 0..=127

source

pub fn plock_set_lev( &self, lev: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the lev parameter.

Range: 0..=127

source

pub fn plock_get_lev( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the lev parameter.

Range: 0..=127

source

pub fn plock_clear_lev(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the lev parameter if set.

source§

impl SdHardParameters

source

pub const fn get_lev(&self) -> usize

Gets the lev parameter.

Range: 0..=127

source§

impl SdHardParameters

source

pub fn set_tun(&mut self, tun: f32) -> Result<(), RytmError>

Sets the tun parameter.

Range: -32.0..=32.0

source

pub fn plock_set_tun( &self, tun: f32, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the tun parameter.

Range: -32.0..=32.0

source

pub fn plock_get_tun(&self, trig_index: usize) -> Result<Option<f32>, RytmError>

Gets the parameter lock for the tun parameter.

Range: -32.0..=32.0

source

pub fn plock_clear_tun(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the tun parameter if set.

source§

impl SdHardParameters

source

pub const fn get_tun(&self) -> f32

Gets the tun parameter.

Range: -32.0..=32.0

source§

impl SdHardParameters

source

pub fn set_dec(&mut self, dec: usize) -> Result<(), RytmError>

Sets the dec parameter.

Range: 0..=127

source

pub fn plock_set_dec( &self, dec: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the dec parameter.

Range: 0..=127

source

pub fn plock_get_dec( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the dec parameter.

Range: 0..=127

source

pub fn plock_clear_dec(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the dec parameter if set.

source§

impl SdHardParameters

source

pub const fn get_dec(&self) -> usize

Gets the dec parameter.

Range: 0..=127

source§

impl SdHardParameters

source

pub fn set_swd(&mut self, swd: usize) -> Result<(), RytmError>

Sets the swd parameter.

Range: 0..=127

source

pub fn plock_set_swd( &self, swd: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the swd parameter.

Range: 0..=127

source

pub fn plock_get_swd( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the swd parameter.

Range: 0..=127

source

pub fn plock_clear_swd(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the swd parameter if set.

source§

impl SdHardParameters

source

pub const fn get_swd(&self) -> usize

Gets the swd parameter.

Range: 0..=127

source§

impl SdHardParameters

source

pub fn set_tic(&mut self, tic: usize) -> Result<(), RytmError>

Sets the tic parameter.

Range: 0..=127

source

pub fn plock_set_tic( &self, tic: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the tic parameter.

Range: 0..=127

source

pub fn plock_get_tic( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the tic parameter.

Range: 0..=127

source

pub fn plock_clear_tic(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the tic parameter if set.

source§

impl SdHardParameters

source

pub const fn get_tic(&self) -> usize

Gets the tic parameter.

Range: 0..=127

source§

impl SdHardParameters

source

pub fn set_nod(&mut self, nod: usize) -> Result<(), RytmError>

Sets the nod parameter.

Range: 0..=127

source

pub fn plock_set_nod( &self, nod: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the nod parameter.

Range: 0..=127

source

pub fn plock_get_nod( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the nod parameter.

Range: 0..=127

source

pub fn plock_clear_nod(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the nod parameter if set.

source§

impl SdHardParameters

source

pub const fn get_nod(&self) -> usize

Gets the nod parameter.

Range: 0..=127

source§

impl SdHardParameters

source

pub fn set_nol(&mut self, nol: usize) -> Result<(), RytmError>

Sets the nol parameter.

Range: 0..=127

source

pub fn plock_set_nol( &self, nol: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the nol parameter.

Range: 0..=127

source

pub fn plock_get_nol( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the nol parameter.

Range: 0..=127

source

pub fn plock_clear_nol(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the nol parameter if set.

source§

impl SdHardParameters

source

pub const fn get_nol(&self) -> usize

Gets the nol parameter.

Range: 0..=127

source§

impl SdHardParameters

source

pub fn set_swt(&mut self, swt: usize) -> Result<(), RytmError>

Sets the swt parameter.

Range: 0..=127

source

pub fn plock_set_swt( &self, swt: usize, trig_index: usize ) -> Result<(), RytmError>

Sets the parameter lock for the swt parameter.

Range: 0..=127

source

pub fn plock_get_swt( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the swt parameter.

Range: 0..=127

source

pub fn plock_clear_swt(&self, trig_index: usize) -> Result<(), RytmError>

Clears the parameter lock for the swt parameter if set.

source§

impl SdHardParameters

source

pub const fn get_swt(&self) -> usize

Gets the swt parameter.

Range: 0..=127

Trait Implementations§

source§

impl Clone for SdHardParameters

source§

fn clone(&self) -> SdHardParameters

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SdHardParameters

source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SdHardParameters

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SdHardParameters

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SdHardParameters

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,