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

Fields

addr: u16
len: u8

0x14: Reads float data from a given base address. Max length is 14

WriteMemory

Fields

addr: u16
data: BytesWrap

0x04: Writes byte data to the given address

ReadMemory

Fields

addr: u16
size: u8

0x05: Reads byte data from the given address. Max read sizes are 61 bytes. (64 - crc - len - cmd)

SetConfig

Fields

config: u8
reset: bool

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

Fields

addr: Addr
data: [Value; 5]

0x30: Write biquad data

WriteBiquadBypass

Fields

addr: Addr
value: bool

0x19: Toggle biquad filter bypass

Read

Fields

addr: Addr
len: u8

0x02: Read DSP data

Write

Fields

addr: Addr
value: Value

0x13: Write dsp data

FirLoadStart

Fields

index: u8

0x39: Start FIR load

FirLoadData

Fields

index: u8
data: Vec<f32, Global>

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

Fields

addr: Addr
max: u8
arg: bool
slot: u8

Unknown

Fields

cmd_id: u8
payload: BytesWrap

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Responses given by the service.

Errors produced by the service.

The future response value.

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more

Process the request and return the response asynchronously. Read more

The type of value produced by the sink when an error occurs.

Attempts to prepare the Sink to receive a value. Read more

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 more

Flush any remaining output from this sink. Read more

Flush any remaining output and close this sink, if necessary. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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