pub enum Commands {
Show 21 variants
ReadHardwareId,
ReadFloats {
addr: u16,
len: u8,
},
WriteMemory {
addr: u16,
data: BytesWrap,
},
ReadMemory {
addr: u16,
size: u8,
},
SetConfig {
config: u8,
reset: bool,
},
SetSource {
source: u8,
},
SetMute {
value: bool,
},
SetVolume {
value: Gain,
},
WriteBiquad {
addr: Addr,
data: [Value; 5],
},
WriteBiquadBypass {
addr: Addr,
value: bool,
},
Read {
addr: Addr,
len: u8,
},
Write {
addr: Addr,
value: Value,
},
FirLoadStart {
index: u8,
},
FirLoadData {
index: u8,
data: Vec<f32>,
},
FirLoadEnd,
DiracBypass {
value: u8,
},
BulkLoad {
payload: BytesWrap,
},
BulkLoadFilterData {
payload: BytesWrap,
},
Unk07 {
payload: u8,
},
SwitchMux {
addr: Addr,
max: u8,
arg: bool,
slot: u8,
},
Unknown {
cmd_id: u8,
payload: BytesWrap,
},
}
Variants§
ReadHardwareId
0x31: Read hardware id
ReadFloats
0x14: Reads float data from a given base address. Max length is 14
WriteMemory
0x04: Writes byte data to the given address
ReadMemory
0x05: Reads byte data from the given address. Max read sizes are 61 bytes. (64 - crc - len - cmd)
SetConfig
0x25: Sets the current configuration
SetSource
0x34: Unary command to set the current source
SetMute
0x17 Unary command to set the master mute setting
SetVolume
0x42: Set master volume
WriteBiquad
0x30: Write biquad data
WriteBiquadBypass
0x19: Toggle biquad filter bypass
Read
0x02: Read DSP data
Write
0x13: Write dsp data
FirLoadStart
0x39: Start FIR load
FirLoadData
0x3a: FIR Data
FirLoadEnd
0x3b: FIR Data Completed
DiracBypass
BulkLoad
0x12: Seen when restoring a configuration
BulkLoadFilterData
0x06: Seen after 0x12 in configuration restore
Unk07
SwitchMux
Unknown
Implementations§
Trait Implementations§
Source§impl Service<Commands> for MultiplexerService
impl Service<Commands> for MultiplexerService
Source§type Error = MiniDSPError
type Error = MiniDSPError
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<MultiplexerService as Service<Commands>>::Response, <MultiplexerService as Service<Commands>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<MultiplexerService as Service<Commands>>::Response, <MultiplexerService as Service<Commands>>::Error>> + Send>>
The future response value.
Source§impl<Backend> Sink<Commands> for FrameCodec<Backend>
impl<Backend> Sink<Commands> for FrameCodec<Backend>
Source§type Error = <Backend as Sink<Bytes>>::Error
type Error = <Backend as Sink<Bytes>>::Error
The type of value produced by the sink when an error occurs.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: Commands) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Commands) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moreAuto Trait Implementations§
impl !Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more