#[non_exhaustive]pub enum FxRouting {
Serial1234,
Parallel12Serial34,
Parallel12Parallel34,
Parallel1234,
Parallel123Serial4,
Serial12Parallel34,
Serial1Parallel234,
ParallelSerial1234,
Serial34Feedback412,
Serial4Feedback4123,
}Expand description
FX Connection Mode.
Every value the synthesizer has a name for. A byte outside the table is not
one of these: FxRouting::from_raw answers None for it, and the byte stays
in the program either way.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Serial1234
Serial 1-2-3-4.
Parallel12Serial34
Parallel 1/2, serial 3-4.
Parallel12Parallel34
Parallel 1/2, parallel 3/4.
Parallel1234
Parallel 1/2/3/4.
Parallel123Serial4
Parallel 1/2/3, serial 4.
Serial12Parallel34
Serial 1-2, parallel 3/4.
Serial1Parallel234
Serial 1, parallel 2/3/4.
ParallelSerial1234
Parallel (serial 1-2-3)/4.
Serial34Feedback412
Serial 3-4 feedback 4(1-2).
Serial4Feedback4123
Serial 4 feedback 4(1-2-3).
Implementations§
Source§impl FxRouting
impl FxRouting
Sourcepub const fn from_raw(raw: u8) -> Option<Self>
pub const fn from_raw(raw: u8) -> Option<Self>
Returns the value this byte selects on DEFAULT_FIRMWARE.
None when the table does not list the byte.
Sourcepub const fn from_raw_for(raw: u8, _firmware: Version) -> Option<Self>
pub const fn from_raw_for(raw: u8, _firmware: Version) -> Option<Self>
Returns the value this byte selects on the firmware a device inquiry reported.
Every firmware numbers this table the same way, so the version makes no difference here; it is taken so that every value type reads alike.
Sourcepub const fn raw(self) -> u8
pub const fn raw(self) -> u8
Returns the byte that selects this value on DEFAULT_FIRMWARE.
Sourcepub const fn raw_for(self, _firmware: Version) -> Option<u8>
pub const fn raw_for(self, _firmware: Version) -> Option<u8>
Returns the byte that selects this value on the firmware a device inquiry reported.
Always Some for this table, which every firmware numbers the same way.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Returns the name the synthesizer’s display writes, as of
DEFAULT_FIRMWARE.
Sourcepub fn name_for(self, firmware: Version) -> Option<&'static str>
pub fn name_for(self, firmware: Version) -> Option<&'static str>
Returns the name the synthesizer’s display writes on the firmware a device inquiry reported.
None for a value that firmware does not have. The names live in the
value table the parameter layer already carries; nothing here holds a
second copy of them.
Trait Implementations§
impl Copy for FxRouting
Source§impl<'de> Deserialize<'de> for FxRouting
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FxRouting
serde only.