Class QuattrocentoInput

Represents a single configurable input on the Quattrocento amplifier (one of IN1..IN8 or MULTIPLE IN1..IN4).

Inheritance
QuattrocentoInput
Namespace: MOSAIC.Components.Devices.Quattrocento
Assembly: MOSAIC.dll
Syntax
public sealed class QuattrocentoInput : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging

Fields

_isEnabled

Whether this input is currently enabled in the stream. Default: false.

Declaration
[ObservableProperty]
private bool _isEnabled
Field Value
Type Description
bool

Properties

ChannelCount

Number of EMG channels this input contributes when enabled.

Declaration
public int ChannelCount { get; }
Property Value
Type Description
int

Index

Zero-based index within its category (0–7 for IN, 0–3 for MULT).

Declaration
public int Index { get; init; }
Property Value
Type Description
int

IsEnabled

Whether this input is currently enabled in the stream. Default: false.

Declaration
[ExcludeFromCodeCoverage]
public bool IsEnabled { get; set; }
Property Value
Type Description
bool

IsMultiple

True for MULTIPLE IN (64 ch); false for standard IN (16 ch).

Declaration
public bool IsMultiple { get; init; }
Property Value
Type Description
bool

Label

Display label, e.g. "IN1" or "MULT3".

Declaration
public string Label { get; init; }
Property Value
Type Description
string

Methods

OnIsEnabledChanged(bool)

Executes the logic for when IsEnabled just changed.

Declaration
private void OnIsEnabledChanged(bool value)
Parameters
Type Name Description
bool value

The new property value that was set.

Remarks

This method is invoked right after the value of IsEnabled is changed.

OnIsEnabledChanged(bool, bool)

Executes the logic for when IsEnabled just changed.

Declaration
private void OnIsEnabledChanged(bool oldValue, bool newValue)
Parameters
Type Name Description
bool oldValue

The previous property value that was replaced.

bool newValue

The new property value that was set.

Remarks

This method is invoked right after the value of IsEnabled is changed.

OnIsEnabledChanging(bool)

Executes the logic for when IsEnabled is changing.

Declaration
private void OnIsEnabledChanging(bool value)
Parameters
Type Name Description
bool value

The new property value being set.

Remarks

This method is invoked right before the value of IsEnabled is changed.

OnIsEnabledChanging(bool, bool)

Executes the logic for when IsEnabled is changing.

Declaration
private void OnIsEnabledChanging(bool oldValue, bool newValue)
Parameters
Type Name Description
bool oldValue

The previous property value that is being replaced.

bool newValue

The new property value being set.

Remarks

This method is invoked right before the value of IsEnabled is changed.

Implements

INotifyPropertyChanged
INotifyPropertyChanging

Search documentation

Start typing to search the documentation.