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, Global>,
},
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
Fields
source: u8
0x34: Unary command to set the current source
SetMute
Fields
value: bool
0x17 Unary command to set the master mute setting
SetVolume
Fields
value: Gain
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
Fields
index: u8
0x39: Start FIR load
FirLoadData
0x3a: FIR Data
FirLoadEnd
0x3b: FIR Data Completed
DiracBypass
Fields
value: u8
BulkLoad
Fields
payload: BytesWrap
0x12: Seen when restoring a configuration
BulkLoadFilterData
Fields
payload: BytesWrap
0x06: Seen after 0x12 in configuration restore
Unk07
Fields
payload: u8
SwitchMux
Unknown
Implementations
Trait Implementations
type Error = MiniDSPError
type Error = MiniDSPError
Errors produced by the service.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Auto Trait Implementations
impl RefUnwindSafe for Commands
impl UnwindSafe for Commands
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more