pub struct Studiok48Protocol;
Expand description

Protocol implementation of Studio Konnekt 48.

Trait Implementations§

source§

impl Debug for Studiok48Protocol

source§

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

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

impl Default for Studiok48Protocol

source§

fn default() -> Studiok48Protocol

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

impl TcKonnektMutableSegmentOperation<StudioChStripStates> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioConfig> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioHwState> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioLineOutLevel> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioMixerState> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioPhysOut> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioRemote> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektMutableSegmentOperation<StudioReverbState> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektNotifiedSegmentOperation<StudioChStripStates> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 12_582_912u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioConfig> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 262_144u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioHwState> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 67_108_864u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioLineOutLevel> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 65_536u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioMixerState> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 524_288u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioPhysOut> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 1_048_576u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioRemote> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 131_072u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektNotifiedSegmentOperation<StudioReverbState> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 2_097_152u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektSegmentSerdes<StudioChStripMeters> for Studiok48Protocol

source§

const NAME: &'static str = "channel-strip-meter"

The name of segment.
source§

const OFFSET: usize = 8_572usize

The offset of segment.
source§

const SIZE: usize = 120usize

The size of segment.
source§

fn serialize(params: &StudioChStripMeters, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize( params: &mut StudioChStripMeters, raw: &[u8] ) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioChStripStates> for Studiok48Protocol

source§

const NAME: &'static str = "channel-strip-state"

The name of segment.
source§

const OFFSET: usize = 1_500usize

The offset of segment.
source§

const SIZE: usize = 584usize

The size of segment.
source§

fn serialize(params: &StudioChStripStates, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize( params: &mut StudioChStripStates, raw: &[u8] ) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioConfig> for Studiok48Protocol

source§

const NAME: &'static str = "configuration"

The name of segment.
source§

const OFFSET: usize = 68usize

The offset of segment.
source§

const SIZE: usize = 100usize

The size of segment.
source§

fn serialize(params: &StudioConfig, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioConfig, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioHwState> for Studiok48Protocol

source§

const NAME: &'static str = "hardware-state"

The name of segment.
source§

const OFFSET: usize = 8_200usize

The offset of segment.
source§

const SIZE: usize = 68usize

The size of segment.
source§

fn serialize(params: &StudioHwState, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioHwState, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioLineOutLevel> for Studiok48Protocol

source§

const NAME: &'static str = "line-output-level"

The name of segment.
source§

const OFFSET: usize = 0usize

The offset of segment.
source§

const SIZE: usize = 20usize

The size of segment.
source§

fn serialize(params: &StudioLineOutLevel, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize( params: &mut StudioLineOutLevel, raw: &[u8] ) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioMixerMeter> for Studiok48Protocol

source§

const NAME: &'static str = "mixer-meter"

The name of segment.
source§

const OFFSET: usize = 8_376usize

The offset of segment.
source§

const SIZE: usize = 128usize

The size of segment.
source§

fn serialize(params: &StudioMixerMeter, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioMixerMeter, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioMixerState> for Studiok48Protocol

source§

const NAME: &'static str = "mixer-state"

The name of segment.
source§

const OFFSET: usize = 168usize

The offset of segment.
source§

const SIZE: usize = 820usize

The size of segment.
source§

fn serialize(params: &StudioMixerState, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioMixerState, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioPhysOut> for Studiok48Protocol

source§

const NAME: &'static str = "physical-output"

The name of segment.
source§

const OFFSET: usize = 988usize

The offset of segment.
source§

const SIZE: usize = 440usize

The size of segment.
source§

fn serialize(params: &StudioPhysOut, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioPhysOut, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioRemote> for Studiok48Protocol

source§

const NAME: &'static str = "remote-controller"

The name of segment.
source§

const OFFSET: usize = 20usize

The offset of segment.
source§

const SIZE: usize = 48usize

The size of segment.
source§

fn serialize(params: &StudioRemote, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioRemote, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioReverbMeter> for Studiok48Protocol

source§

const NAME: &'static str = "reverb-meter"

The name of segment.
source§

const OFFSET: usize = 8_548usize

The offset of segment.
source§

const SIZE: usize = 24usize

The size of segment.
source§

fn serialize(params: &StudioReverbMeter, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioReverbMeter, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcKonnektSegmentSerdes<StudioReverbState> for Studiok48Protocol

source§

const NAME: &'static str = "reverb-state"

The name of segment.
source§

const OFFSET: usize = 1_428usize

The offset of segment.
source§

const SIZE: usize = 68usize

The size of segment.
source§

fn serialize(params: &StudioReverbState, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioReverbState, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl TcatGlobalSectionSpecification for Studiok48Protocol

source§

const AVAILABLE_CLOCK_SOURCE_OVERRIDE: Option<&'static [ClockSource]> = None

Some models report invalid list for signal source of sampling clock.
source§

const CLOCK_SOURCE_LABEL_TABLE: &'static [ClockSource] = _

Some models report list of labels for signal source of sampling clock with unexpected position.
source§

impl TcatOperation for Studiok48Protocol

source§

fn read( req: &FwReq, node: &FwNode, offset: usize, frames: &mut [u8], timeout_ms: u32 ) -> Result<(), Error>

Initiate read transaction to offset in specific address space and finish it.
source§

fn write( req: &FwReq, node: &FwNode, offset: usize, frames: &mut [u8], timeout_ms: u32 ) -> Result<(), Error>

Initiate write transaction to offset in specific address space and finish it.
source§

fn read_general_sections( req: &FwReq, node: &FwNode, sections: &mut GeneralSections, timeout_ms: u32 ) -> Result<(), Error>

Read section layout.

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, T> TcKonnektSegmentOperation<T> for O

source§

fn cache_whole_segment( req: &FwReq, node: &FwNode, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Cache whole segment and deserialize for parameters.
source§

impl<O> TcatFluctuatedSectionOperation<GlobalParameters> for O

source§

const FLUCTUATED_OFFSETS: &'static [usize] = const FLUCTUATED_OFFSETS: &'static [usize] = &[88];

The set of address offsets in which any value is changed apart from software operation; e.g. hardware metering.
source§

fn partial_cache( req: &FwReq, node: &FwNode, section: &Section, params: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Cache part of section for fluctuated values, then deserialize for parameters.
source§

impl<O> TcatMutableSectionOperation<GlobalParameters> for O

source§

fn whole_update( req: &FwReq, node: &FwNode, section: &Section, params: &T, timeout_ms: u32 ) -> Result<(), Error>

Update whole section by the parameters.
source§

fn partial_update( req: &FwReq, node: &FwNode, section: &Section, params: &T, prev: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Update part of section for any change at the parameters.
source§

impl<O> TcatMutableSectionOperation<RxStreamFormatParameters> for O

source§

fn whole_update( req: &FwReq, node: &FwNode, section: &Section, params: &T, timeout_ms: u32 ) -> Result<(), Error>

Update whole section by the parameters.
source§

fn partial_update( req: &FwReq, node: &FwNode, section: &Section, params: &T, prev: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Update part of section for any change at the parameters.
source§

impl<O> TcatMutableSectionOperation<TxStreamFormatParameters> for O

source§

fn whole_update( req: &FwReq, node: &FwNode, section: &Section, params: &T, timeout_ms: u32 ) -> Result<(), Error>

Update whole section by the parameters.
source§

fn partial_update( req: &FwReq, node: &FwNode, section: &Section, params: &T, prev: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Update part of section for any change at the parameters.
source§

impl<O> TcatNotifiedSectionOperation<GlobalParameters> for O

source§

const NOTIFY_FLAG: u32 = 112u32

Flag in message notified for any change in section.
source§

fn notified(_: &T, msg: u32) -> bool

Check message to be notified or not.
source§

impl<O> TcatNotifiedSectionOperation<RxStreamFormatParameters> for O

source§

const NOTIFY_FLAG: u32 = 1u32

Flag in message notified for any change in section.
source§

fn notified(_: &T, msg: u32) -> bool

Check message to be notified or not.
source§

impl<O> TcatNotifiedSectionOperation<TxStreamFormatParameters> for O

source§

const NOTIFY_FLAG: u32 = 2u32

Flag in message notified for any change in section.
source§

fn notified(_: &T, msg: u32) -> bool

Check message to be notified or not.
source§

impl<O> TcatSectionOperation<ExtendedSyncParameters> for O
where O: TcatOperation,

source§

fn whole_cache( req: &FwReq, node: &FwNode, section: &Section, params: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Cache whole section and deserialize for parameters.
source§

impl<O> TcatSectionOperation<GlobalParameters> for O

source§

fn whole_cache( req: &FwReq, node: &FwNode, section: &Section, params: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Cache whole section and deserialize for parameters.
source§

impl<O> TcatSectionOperation<RxStreamFormatParameters> for O
where O: TcatOperation,

source§

fn whole_cache( req: &FwReq, node: &FwNode, section: &Section, params: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Cache whole section and deserialize for parameters.
source§

impl<O> TcatSectionOperation<TxStreamFormatParameters> for O
where O: TcatOperation,

source§

fn whole_cache( req: &FwReq, node: &FwNode, section: &Section, params: &mut T, timeout_ms: u32 ) -> Result<(), Error>

Cache whole section and deserialize for parameters.
source§

impl<O> TcatSectionSerdes<ExtendedSyncParameters> for O
where O: TcatOperation,

source§

const MIN_SIZE: usize = 16usize

Minimum size of section for parameters.
source§

const ERROR_TYPE: GeneralProtocolError = const ERROR_TYPE: GeneralProtocolError = GeneralProtocolError::ExtendedSync;

The type of error.
source§

fn serialize(_: &ExtendedSyncParameters, _: &mut [u8]) -> Result<(), String>

Serialize parameters for section.
source§

fn deserialize( params: &mut ExtendedSyncParameters, raw: &[u8] ) -> Result<(), String>

Deserialize section for parameters.
source§

impl<O> TcatSectionSerdes<GlobalParameters> for O

source§

const MIN_SIZE: usize = 96usize

Minimum size of section for parameters.
source§

const ERROR_TYPE: GeneralProtocolError = const ERROR_TYPE: GeneralProtocolError = GeneralProtocolError::Global;

The type of error.
source§

fn serialize(params: &GlobalParameters, raw: &mut [u8]) -> Result<(), String>

Serialize parameters for section.
source§

fn deserialize(params: &mut GlobalParameters, raw: &[u8]) -> Result<(), String>

Deserialize section for parameters.
source§

impl<O> TcatSectionSerdes<RxStreamFormatParameters> for O
where O: TcatOperation,

source§

const MIN_SIZE: usize = 8usize

Minimum size of section for parameters.
source§

const ERROR_TYPE: GeneralProtocolError = const ERROR_TYPE: GeneralProtocolError = GeneralProtocolError::RxStreamFormat;

The type of error.
source§

fn serialize( params: &RxStreamFormatParameters, raw: &mut [u8] ) -> Result<(), String>

Serialize parameters for section.
source§

fn deserialize( params: &mut RxStreamFormatParameters, raw: &[u8] ) -> Result<(), String>

Deserialize section for parameters.
source§

impl<O> TcatSectionSerdes<TxStreamFormatParameters> for O
where O: TcatOperation,

source§

const MIN_SIZE: usize = 8usize

Minimum size of section for parameters.
source§

const ERROR_TYPE: GeneralProtocolError = const ERROR_TYPE: GeneralProtocolError = GeneralProtocolError::TxStreamFormat;

The type of error.
source§

fn serialize( params: &TxStreamFormatParameters, raw: &mut [u8] ) -> Result<(), String>

Serialize parameters for section.
source§

fn deserialize( params: &mut TxStreamFormatParameters, raw: &[u8] ) -> Result<(), String>

Deserialize section for parameters.
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.