pub enum ChannelCount {
Ch64 = 3,
Ch32 = 2,
Ch16 = 1,
Ch8 = 0,
}Expand description
Number of channels configuration
Variants§
Implementations§
Source§impl ChannelCount
impl ChannelCount
Sourcepub fn nch_setting(&self) -> usize
pub fn nch_setting(&self) -> usize
Returns the NCH setting value (not the actual channel count)
Sourcepub fn bio_channels(&self, mode: WorkingMode) -> usize
pub fn bio_channels(&self, mode: WorkingMode) -> usize
Returns actual bioelectrical channels for a given mode In Bipolar mode (001), channel count is halved
Sourcepub fn total_channels(&self, mode: WorkingMode) -> usize
pub fn total_channels(&self, mode: WorkingMode) -> usize
Returns total channels (bio + 2 AUX + 2 accessory) for a given mode
pub fn from_u8(value: u8) -> Result<Self, SessantaquattroError>
Trait Implementations§
Source§impl Clone for ChannelCount
impl Clone for ChannelCount
Source§fn clone(&self) -> ChannelCount
fn clone(&self) -> ChannelCount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelCount
impl Debug for ChannelCount
Source§impl PartialEq for ChannelCount
impl PartialEq for ChannelCount
impl Copy for ChannelCount
impl StructuralPartialEq for ChannelCount
Auto Trait Implementations§
impl Freeze for ChannelCount
impl RefUnwindSafe for ChannelCount
impl Send for ChannelCount
impl Sync for ChannelCount
impl Unpin for ChannelCount
impl UnwindSafe for ChannelCount
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