Struct UltraliteMk3Protocol

Source
pub struct UltraliteMk3Protocol;
Expand description

The protocol implementation for Ultralite mk3 (FireWire only).

Implementations§

Source§

impl UltraliteMk3Protocol

Source

pub const NOTIFY_PORT_CHANGE: u32 = 1_073_741_824u32

Notification mask for main assignment, return assignment, and phone assignment. The change of phone assignment is also notified in command message.

Trait Implementations§

Source§

impl CommandDspOperation for UltraliteMk3Protocol

Source§

fn send_commands( req: &mut FwReq, node: &mut FwNode, sequence_number: &mut u8, cmds: &[DspCmd], timeout_ms: u32, ) -> Result<(), Error>

Source§

fn register_message_destination_address( resp: &mut FwResp, req: &mut FwReq, node: &mut FwNode, timeout_ms: u32, ) -> Result<(), Error>

Source§

fn begin_messaging( req: &mut FwReq, node: &mut FwNode, sequence_number: &mut u8, timeout_ms: u32, ) -> Result<(), Error>

Source§

fn cancel_messaging( req: &mut FwReq, node: &mut FwNode, sequence_number: &mut u8, timeout_ms: u32, ) -> Result<(), Error>

Source§

fn release_message_destination_address( resp: &mut FwResp, req: &mut FwReq, node: &mut FwNode, timeout_ms: u32, ) -> Result<(), Error>

Source§

impl Debug for UltraliteMk3Protocol

Source§

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

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

impl Default for UltraliteMk3Protocol

Source§

fn default() -> UltraliteMk3Protocol

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

impl MotuCommandDspDynamicsSpecification for UltraliteMk3Protocol

Source§

const COMP_THRESHOLD_MIN: i32 = -48i32

The minimum value of threshold in compressor.
Source§

const COMP_THRESHOLD_MAX: i32 = 0i32

The maximum value of threshold in compressor.
Source§

const COMP_THRESHOLD_STEP: i32 = 1i32

The step value of threshold in compressor.
Source§

const COMP_RATIO_MIN: f32 = 1f32

The minimum value of ration in compressor.
Source§

const COMP_RATIO_MAX: f32 = 10f32

The maximum value of ration in compressor.
Source§

const COMP_ATTACK_MIN: i32 = 10i32

The minimum value of attack in compressor.
Source§

const COMP_ATTACK_MAX: i32 = 100i32

The maximum value of attack in compressor.
Source§

const COMP_ATTACK_STEP: i32 = 1i32

The step value of attack in compressor.
Source§

const COMP_RELEASE_MIN: i32 = 10i32

The minimum value of release in compressor.
Source§

const COMP_RELEASE_MAX: i32 = 100i32

The maximum value of release in compressor.
Source§

const COMP_RELEASE_STEP: i32 = 1i32

The step value of release in compressor.
Source§

const COMP_GAIN_MIN: f32 = -6f32

The minimum value of gain in compressor.
Source§

const COMP_GAIN_MAX: f32 = 0f32

The maximum value of gain in compressor.
Source§

const LEVELER_PERCENTAGE_MIN: u32 = 0u32

The minimum value of percentge in leveler.
Source§

const LEVELER_PERCENTAGE_MAX: u32 = 100u32

The maximum value of percentge in leveler.
Source§

const LEVELER_PERCENTAGE_STEP: u32 = 1u32

The step value of percentge in leveler.
Source§

fn create_dynamics_parameters( state: &CommandDspDynamicsState, ch: usize, ) -> Vec<DynamicsParameter>

Source§

fn parse_dynamics_parameter( state: &mut CommandDspDynamicsState, param: &DynamicsParameter, ch: usize, )

Source§

impl MotuCommandDspEqualizerSpecification for UltraliteMk3Protocol

Source§

const EQUALIZER_FREQ_MIN: u32 = 20u32

The minimum value of frequency.
Source§

const EQUALIZER_FREQ_MAX: u32 = 20_000u32

The maximum value of frequency.
Source§

const EQUALIZER_FREQ_STEP: u32 = 1u32

The step value of frequency.
Source§

const EQUALIZER_GAIN_MIN: f32 = -20f32

The minimum value of gain.
Source§

const EQUALIZER_GAIN_MAX: f32 = 20f32

The maximum value of gain.
Source§

const EQUALIZER_WIDTH_MIN: f32 = 0.00999999977f32

The minimum value of width.
Source§

const EQUALIZER_WIDTH_MAX: f32 = 3f32

The maximum value of width.
Source§

fn create_equalizer_parameters( state: &CommandDspEqualizerState, ch: usize, ) -> Vec<EqualizerParameter>

Source§

fn parse_equalizer_parameter( state: &mut CommandDspEqualizerState, param: &EqualizerParameter, ch: usize, )

Source§

impl MotuCommandDspInputSpecification for UltraliteMk3Protocol

Source§

const INPUT_PORTS: &'static [TargetPort] = ULTRALITE_MK3_INPUT_PORTS

The input ports.
Source§

const MIC_COUNT: usize = 0usize

The number of microphone inputs.
Source§

const LINE_INPUT_COUNT: usize = 0usize

The number of line inputs.
Source§

const INPUT_GAIN_MIN: i32 = -96i32

The minimum value of gain.
Source§

const INPUT_GAIN_MAX: i32 = 22i32

The maximum value of gain.
Source§

const INPUT_GAIN_STEP: i32 = 1i32

The step value of gain.
Source§

const INPUT_WIDTH_MIN: f32 = 0f32

The minimum value of width.
Source§

const INPUT_WIDTH_MAX: f32 = 1f32

The maximum value of width.
Source§

const INPUT_REVERB_GAIN_MIN: f32 = 0f32

The minimum value of gain to send to reverb.
Source§

const INPUT_REVERB_GAIN_MAX: f32 = 1f32

The maximum value of gain to send to reverb.
Source§

const INPUT_REVERB_BALANCE_MIN: f32 = -1f32

The minimum value of left and right balance to send to reverb.
Source§

const INPUT_REVERB_BALANCE_MAX: f32 = 1f32

The maximum value of left and right balance to send to reverb.
Source§

fn create_input_state() -> CommandDspInputState

Instantiate input parameters.
Source§

fn create_input_equalizer_state() -> CommandDspInputEqualizerState

Instantiate input equalizer parameters.
Source§

fn create_input_dynamics_state() -> CommandDspInputDynamicsState

Instantiate input dynamics parameters.
Source§

impl MotuCommandDspMeterSpecification for UltraliteMk3Protocol

Source§

const INPUT_PORTS: &'static [(TargetPort, usize)] = ULTRALITEMK3_METER_INPUT_PORTS

Source§

const OUTPUT_PORTS: &'static [(TargetPort, usize)] = ULTRALITEMK3_METER_OUTPUT_PORTS

Source§

const LEVEL_MIN: f32 = 0f32

Source§

const LEVEL_MAX: f32 = 1f32

Source§

const METER_IMAGE_SIZE: usize = 400usize

Source§

fn create_meter_state() -> CommandDspMeterState

Source§

impl MotuCommandDspMixerSpecification for UltraliteMk3Protocol

Source§

const SOURCE_PORTS: &'static [TargetPort] = ULTRALITE_MK3_MIXER_SOURCE_PORTS

The sources of mixer inputs.
Source§

const OUTPUT_PORTS: &'static [TargetPort] = ULTRALITE_MK3_MIXER_OUTPUT_PORTS

The destination of mixer outputs.
Source§

const MIXER_COUNT: usize = 8usize

The number of mixers.
Source§

const OUTPUT_VOLUME_MIN: f32 = 0f32

The minimum value of volume for mixer output.
Source§

const OUTPUT_VOLUME_MAX: f32 = 1f32

The maximum value of volume for mixer output.
Source§

const SOURCE_GAIN_MIN: f32 = 0f32

The minimum value of gain for mixer source.
Source§

const SOURCE_GAIN_MAX: f32 = 1f32

The maximum value of gain for mixer source.
Source§

const SOURCE_PAN_MIN: f32 = -1f32

The minimum value of left and right balance for mixer source.
Source§

const SOURCE_PAN_MAX: f32 = 1f32

The maximum value of left and right balance for mixer source.
Source§

fn create_mixer_state() -> CommandDspMixerState

Source§

impl MotuCommandDspMonitorSpecification for UltraliteMk3Protocol

Source§

const RETURN_ASSIGN_TARGETS: &'static [TargetPort] = ULTRALITE_MK3_RETURN_ASSIGN_TARGETS

The targets of mixer return.
Source§

const VOLUME_MIN: f32 = 0f32

The minimum value of volume for monitor output.
Source§

const VOLUME_MAX: f32 = 1f32

The maximum value of volume for monitor output.
Source§

impl MotuCommandDspOutputSpecification for UltraliteMk3Protocol

Source§

const OUTPUT_PORTS: &'static [TargetPort] = ULTRALITE_MK3_OUTPUT_PORTS

The destination port of outputs.
Source§

const OUTPUT_GAIN_MIN: f32 = 0f32

The minimum value of gain for outputs.
Source§

const OUTPUT_GAIN_MAX: f32 = 1f32

The maximum value of gain for outputs.
Source§

const OUTPUT_VOLUME_MIN: f32 = 0f32

The minimum value of volume for outputs.
Source§

const OUTPUT_VOLUME_MAX: f32 = 1f32

The maximum value of volume for outputs.
Source§

fn create_output_state() -> CommandDspOutputState

Source§

fn create_output_equalizer_state() -> CommandDspOutputEqualizerState

Source§

fn create_output_dynamics_state() -> CommandDspOutputDynamicsState

Source§

impl MotuCommandDspReverbSpecification for UltraliteMk3Protocol

Source§

const DECAY_TIME_MIN: u32 = 100u32

The minimum value of decay time.
Source§

const DECAY_TIME_MAX: u32 = 60_000u32

The maximum value of decay time.
Source§

const DECAY_TIME_STEP: u32 = 1u32

The step value of decay time.
Source§

const PRE_DELAY_MIN: u32 = 0u32

The minimum value of pre decay time.
Source§

const PRE_DELAY_MAX: u32 = 100u32

The maximum value of pre decay time.
Source§

const PRE_DELAY_STEP: u32 = 1u32

The step value of pre decay time.
Source§

const SHELF_FILTER_FREQ_MIN: u32 = 1_000u32

The minimum value of shelf filter.
Source§

const SHELF_FILTER_FREQ_MAX: u32 = 20_000u32

The maximum value of shelf filter.
Source§

const SHELF_FILTER_FREQ_STEP: u32 = 1u32

The step value of shelf filter.
Source§

const SHELF_FILTER_ATTR_MIN: i32 = -40i32

The minimum value of shelf filter attenuation.
Source§

const SHELF_FILTER_ATTR_MAX: i32 = 0i32

The maximum value of shelf filter attenuation.
Source§

const SHELF_FILTER_ATTR_STEP: i32 = 0i32

The step value of shelf filter attenuation.
Source§

const FREQ_TIME_COUNT: usize = 3usize

The number of frequency times.
Source§

const FREQ_TIME_MIN: u32 = 0u32

The minimum value of frequency time.
Source§

const FREQ_TIME_MAX: u32 = 100u32

The maximum value of frequency time.
Source§

const FREQ_TIME_STEP: u32 = 1u32

The step value of frequency time.
Source§

const FREQ_CROSSOVER_COUNT: usize = 2usize

The number of frequency crossovers.
Source§

const FREQ_CROSSOVER_MIN: u32 = 100u32

The minimum value of frequency crossover.
Source§

const FREQ_CROSSOVER_MAX: u32 = 20_000u32

The maximum value of frequency crossover.
Source§

const FREQ_CROSSOVER_STEP: u32 = 1u32

The step value of frequency crossover.
Source§

const WIDTH_MIN: f32 = -1f32

The minimum value of width.
Source§

const WIDTH_MAX: f32 = 1f32

The maximum value of width.
Source§

const REFLECTION_SIZE_MIN: u32 = 50u32

The minimum value of reflection size.
Source§

const REFLECTION_SIZE_MAX: u32 = 400u32

The maximum value of reflection size.
Source§

const REFLECTION_SIZE_STEP: u32 = 1u32

The step value of reflection size.
Source§

const REFLECTION_LEVEL_MIN: f32 = 0f32

The minimum value of reflection level.
Source§

const REFLECTION_LEVEL_MAX: f32 = 1f32

The maximum value of reflection level.
Source§

impl MotuPortAssignSpecification for UltraliteMk3Protocol

Source§

const ASSIGN_PORT_TARGETS: &'static [TargetPort] = ULTRALITE_MK3_ASSIGN_PORT_TARGETS

Source§

const ASSIGN_PORT_VALS: &'static [u8] = ULTRALITE_MK3_ASSIGN_PORT_VALS

Source§

impl MotuVersion3ClockSpecification for UltraliteMk3Protocol

Source§

const CLOCK_RATES: &'static [ClkRate] = ULTRALITE_MK3_CLOCK_RATES

Source§

const CLOCK_RATE_VALS: &'static [u8] = ULTRALITE_MK3_CLOCK_RATE_VALS

Source§

const CLOCK_SRCS: &'static [V3ClkSrc] = ULTRALITE_MK3_CLOCK_SRCS

Source§

const CLOCK_SRC_VALS: &'static [u8] = ULTRALITE_MK3_CLOCK_SRC_VALS

Source§

impl MotuClockNameDisplaySpecification for UltraliteMk3Protocol

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<O> MotuCommandDspImageOperation<CommandDspMeterState, [f32; 400]> for O

Source§

fn parse_image(params: &mut CommandDspMeterState, image: &[f32; 400])

Parse image transferred in the series of isochronous packets.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspInputDynamicsState> for O

Source§

fn build_commands(params: &CommandDspInputDynamicsState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command( params: &mut CommandDspInputDynamicsState, command: &DspCmd, ) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspInputEqualizerState> for O

Source§

fn build_commands(params: &CommandDspInputEqualizerState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command( params: &mut CommandDspInputEqualizerState, command: &DspCmd, ) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspInputState> for O

Source§

fn build_commands(params: &CommandDspInputState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command(params: &mut CommandDspInputState, command: &DspCmd) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspMixerState> for O

Source§

fn build_commands(params: &CommandDspMixerState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command(params: &mut CommandDspMixerState, command: &DspCmd) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspMonitorState> for O

Source§

fn build_commands(params: &CommandDspMonitorState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command(params: &mut CommandDspMonitorState, command: &DspCmd) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspOutputDynamicsState> for O

Source§

fn build_commands(params: &CommandDspOutputDynamicsState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command( params: &mut CommandDspOutputDynamicsState, command: &DspCmd, ) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspOutputEqualizerState> for O

Source§

fn build_commands(params: &CommandDspOutputEqualizerState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command( params: &mut CommandDspOutputEqualizerState, command: &DspCmd, ) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspOutputState> for O

Source§

fn build_commands(params: &CommandDspOutputState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command(params: &mut CommandDspOutputState, command: &DspCmd) -> bool

Parse DSP command for parameters.
Source§

impl<O> MotuCommandDspParametersOperation<CommandDspReverbState> for O

Source§

fn build_commands(params: &CommandDspReverbState) -> Vec<DspCmd>

Build DSP commands for parameters.
Source§

fn parse_command(params: &mut CommandDspReverbState, command: &DspCmd) -> bool

Parse DSP command for parameters.
Source§

impl<O, T> MotuCommandDspUpdatableParamsOperation<T> for O

Source§

fn update_partially( req: &mut FwReq, node: &mut FwNode, sequence_number: &mut u8, params: &mut T, updates: T, timeout_ms: u32, ) -> Result<(), Error>

Update the part of parameters.
Source§

impl<O> MotuWhollyCacheableParamsOperation<PhoneAssignParameters> for O

Source§

fn cache_wholly( req: &mut FwReq, node: &mut FwNode, params: &mut PhoneAssignParameters, timeout_ms: u32, ) -> Result<(), Error>

Cache whole parameters.
Source§

impl<O> MotuWhollyCacheableParamsOperation<V3PortAssignParameters> for O

Source§

fn cache_wholly( req: &mut FwReq, node: &mut FwNode, params: &mut V3PortAssignParameters, timeout_ms: u32, ) -> Result<(), Error>

Cache whole parameters.
Source§

impl<O> MotuWhollyCacheableParamsOperation<Version3ClockParameters> for O

Source§

fn cache_wholly( req: &mut FwReq, node: &mut FwNode, params: &mut Version3ClockParameters, timeout_ms: u32, ) -> Result<(), Error>

Cache whole parameters.
Source§

impl<O> MotuWhollyUpdatableParamsOperation<ClockNameDisplayParameters> for O

Source§

fn update_wholly( req: &mut FwReq, node: &mut FwNode, params: &ClockNameDisplayParameters, timeout_ms: u32, ) -> Result<(), Error>

Update whole parameters.
Source§

impl<O> MotuWhollyUpdatableParamsOperation<PhoneAssignParameters> for O

Source§

fn update_wholly( req: &mut FwReq, node: &mut FwNode, params: &PhoneAssignParameters, timeout_ms: u32, ) -> Result<(), Error>

Update whole parameters.
Source§

impl<O> MotuWhollyUpdatableParamsOperation<V3PortAssignParameters> for O

Source§

fn update_wholly( req: &mut FwReq, node: &mut FwNode, params: &V3PortAssignParameters, timeout_ms: u32, ) -> Result<(), Error>

Update whole parameters.
Source§

impl<O> MotuWhollyUpdatableParamsOperation<Version3ClockParameters> for O

Source§

fn update_wholly( req: &mut FwReq, node: &mut FwNode, params: &Version3ClockParameters, timeout_ms: u32, ) -> Result<(), Error>

Update whole parameters.
Source§

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

Source§

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>,

Source§

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.