Ff400Protocol

Struct Ff400Protocol 

Source
pub struct Ff400Protocol;
Expand description

The protocol implementation for Fireface 400.

Implementations§

Source§

impl Ff400Protocol

Source

pub const MIC_INPUT_GAIN_MIN: i8 = 0i8

The minimum value of gain for microphone input.

Source

pub const MIC_INPUT_GAIN_MAX: i8 = 65i8

The maximum value of gain for microphone input.

Source

pub const MIC_INPUT_GAIN_STEP: i8 = 1i8

The step value of gain for microphone input.

Source

pub const LINE_INPUT_GAIN_MIN: i8 = 0i8

The minimum value of gain for line input.

Source

pub const LINE_INPUT_GAIN_MAX: i8 = 36i8

The maximum value of gain for line input.

Source

pub const LINE_INPUT_GAIN_STEP: i8 = 1i8

The step value of gain for line input.

Trait Implementations§

Source§

impl Debug for Ff400Protocol

Source§

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

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

impl Default for Ff400Protocol

Source§

fn default() -> Ff400Protocol

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

impl Ff400MessageParse<Ff400InputGainStatus> for Ff400Protocol

Source§

fn parse_message(params: &mut Ff400InputGainStatus, message: u32) -> bool

Return false if no event is found. If found, deserialize parameters and return true.
Source§

impl Ff400MessageParse<Ff400MidiMessage> for Ff400Protocol

Source§

fn parse_message(params: &mut Ff400MidiMessage, message: u32) -> bool

Return false if no event is found. If found, deserialize parameters and return true.
Source§

impl Ff400MessageParse<FormerOutputVolumeState> for Ff400Protocol

Source§

fn parse_message(params: &mut FormerOutputVolumeState, message: u32) -> bool

Return false if no event is found. If found, deserialize parameters and return true.
Source§

impl RmeFfCacheableParamsOperation<Ff400Status> for Ff400Protocol

Source§

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

Cache whole parameters from registers.
Source§

impl RmeFfFormerMeterSpecification for Ff400Protocol

Source§

const METER_OFFSET: u64 = 2_148_532_224u64

Source§

const LEVEL_MIN: i32 = 0i32

Source§

const LEVEL_MAX: i32 = 2_147_483_392i32

Source§

const LEVEL_STEP: i32 = 256i32

Source§

fn create_meter_state() -> FormerMeterState

Source§

impl RmeFfFormerSpecification for Ff400Protocol

Source§

const ANALOG_INPUT_COUNT: usize = 8usize

The number of analog (line and microphone) inputs.
Source§

const SPDIF_INPUT_COUNT: usize = 2usize

The number of S/PDIF inputs.
Source§

const ADAT_INPUT_COUNT: usize = 8usize

The number of ADAT inputs.
Source§

const STREAM_INPUT_COUNT: usize = 18usize

The number of stream inputs.
Source§

const ANALOG_OUTPUT_COUNT: usize = 8usize

The number of analog outputs.
Source§

const SPDIF_OUTPUT_COUNT: usize = 2usize

The number of S/PDIF outputs.
Source§

const ADAT_OUTPUT_COUNT: usize = 8usize

The number of ADAT outputs.
Source§

const PHYS_INPUT_COUNT: usize = _

The number of physical inputs (line, microphone, S/PDIF, and ADAT).
Source§

const PHYS_OUTPUT_COUNT: usize = _

The number of physical outputs (line, S/PDIF, and ADAT).
Source§

impl RmeFfOffsetParamsDeserialize<Ff400Config> for Ff400Protocol

Source§

fn deserialize_offsets(params: &mut Ff400Config, raw: &[u8])

Deserialize parameters into raw data.
Source§

impl RmeFfOffsetParamsDeserialize<Ff400Status> for Ff400Protocol

Source§

fn deserialize_offsets(params: &mut Ff400Status, raw: &[u8])

Deserialize parameters into raw data.
Source§

impl RmeFfOffsetParamsSerialize<Ff400Config> for Ff400Protocol

Source§

fn serialize_offsets(params: &Ff400Config) -> Vec<u8>

Serialize parameters from raw data.
Source§

impl RmeFfOffsetParamsSerialize<Ff400Status> for Ff400Protocol

Source§

fn serialize_offsets(params: &Ff400Status) -> Vec<u8>

Serialize parameters from raw data.
Source§

impl RmeFfPartiallyUpdatableParamsOperation<Ff400InputGainStatus> for Ff400Protocol

Source§

fn update_partially( req: &mut FwReq, node: &mut FwNode, params: &mut Ff400InputGainStatus, update: Ff400InputGainStatus, timeout_ms: u32, ) -> Result<(), Error>

Source§

impl RmeFfPartiallyUpdatableParamsOperation<FormerOutputVolumeState> for Ff400Protocol

Source§

fn update_partially( req: &mut FwReq, node: &mut FwNode, params: &mut FormerOutputVolumeState, update: FormerOutputVolumeState, timeout_ms: u32, ) -> Result<(), Error>

Source§

impl RmeFfWhollyUpdatableParamsOperation<Ff400Config> for Ff400Protocol

Source§

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

Update registers for whole parameters.
Source§

impl RmeFfWhollyUpdatableParamsOperation<Ff400InputGainStatus> for Ff400Protocol

Source§

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

Update registers for whole parameters.
Source§

impl RmeFfWhollyUpdatableParamsOperation<FormerOutputVolumeState> for Ff400Protocol

Source§

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

Update registers for whole parameters.
Source§

impl RmeFormerMixerSpecification for Ff400Protocol

Source§

const MIXER_OFFSET: u64 = 2_148_007_936u64

Source§

const AVAIL_COUNT: usize = 18usize

Source§

const DST_COUNT: usize = _

Source§

const GAIN_MIN: i32 = 0i32

Source§

const GAIN_ZERO: i32 = 32_768i32

Source§

const GAIN_MAX: i32 = 65_536i32

Source§

const GAIN_STEP: i32 = 1i32

Source§

fn create_mixer_state() -> FormerMixerState

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> RmeFfCacheableParamsOperation<FormerMeterState> for O

Source§

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

Cache whole parameters from registers.
Source§

impl<O> RmeFfOffsetParamsDeserialize<FormerMeterState> for O

Source§

fn deserialize_offsets(params: &mut FormerMeterState, raw: &[u8])

Deserialize parameters into raw data.
Source§

impl<O> RmeFfOffsetParamsDeserialize<FormerMixerState> for O

Source§

fn deserialize_offsets(params: &mut FormerMixerState, raw: &[u8])

Deserialize parameters into raw data.
Source§

impl<O> RmeFfOffsetParamsDeserialize<FormerOutputVolumeState> for O

Source§

fn deserialize_offsets(params: &mut FormerOutputVolumeState, raw: &[u8])

Deserialize parameters into raw data.
Source§

impl<O> RmeFfOffsetParamsSerialize<FormerMeterState> for O

Source§

fn serialize_offsets(params: &FormerMeterState) -> Vec<u8>

Serialize parameters from raw data.
Source§

impl<O> RmeFfOffsetParamsSerialize<FormerMixerState> for O

Source§

fn serialize_offsets(params: &FormerMixerState) -> Vec<u8>

Serialize parameters from raw data.
Source§

impl<O> RmeFfOffsetParamsSerialize<FormerOutputVolumeState> for O

Source§

fn serialize_offsets(params: &FormerOutputVolumeState) -> Vec<u8>

Serialize parameters from raw data.
Source§

impl<O> RmeFfPartiallyUpdatableParamsOperation<FormerMixerState> for O

Source§

fn update_partially( req: &mut FwReq, node: &mut FwNode, params: &mut FormerMixerState, update: FormerMixerState, timeout_ms: u32, ) -> Result<(), Error>

Source§

impl<O> RmeFfWhollyUpdatableParamsOperation<FormerMixerState> for O

Source§

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

Update registers for whole parameters.
Source§

impl<O> RmeFormerOutputSpecification for O

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.