Struct InputConfig
Configuration for a single Quattrocento input (IN1–IN8 or MULTIPLE IN1–IN4). Maps to the three-byte CONF0/CONF1/CONF2 block in the 40-byte command.
Inherited Members
Namespace: MOSAIC.Components.Devices.Quattrocento
Assembly: MOSAIC.dll
Syntax
public readonly struct InputConfig
Remarks
Each input occupies 3 consecutive bytes in the configuration command:
| Byte | Content |
|---|---|
| CONF0 | MUS<6:0> — muscle index (0–64) |
| CONF1 | SENS<4:0> | ADAPT<2:0> — sensor and adapter type |
| CONF2 | SIDE<1:0> | HPF<1:0> | LPF<1:0> | MODE<1:0> |
Fields
Default
Default input configuration: 10 Hz HPF, 500 Hz LPF, monopolar, nothing else defined.
Declaration
public static readonly InputConfig Default
Field Value
| Type | Description |
|---|---|
| InputConfig |
Properties
AdapterType
Adapter type code (0 = not defined). See protocol doc ADAPT<2:0>.
Declaration
public byte AdapterType { get; init; }
Property Value
| Type | Description |
|---|---|
| byte |
HighPass
High-pass filter cutoff.
Declaration
public HighPassFilter HighPass { get; init; }
Property Value
| Type | Description |
|---|---|
| HighPassFilter |
LowPass
Low-pass filter cutoff.
Declaration
public LowPassFilter LowPass { get; init; }
Property Value
| Type | Description |
|---|---|
| LowPassFilter |
Mode
Detection mode (monopolar / differential / bipolar).
Declaration
public DetectionMode Mode { get; init; }
Property Value
| Type | Description |
|---|---|
| DetectionMode |
MuscleIndex
Muscle index (0 = not defined, 1–64 = specific muscle). Default 0.
Declaration
public byte MuscleIndex { get; init; }
Property Value
| Type | Description |
|---|---|
| byte |
SensorType
Sensor type code (0 = not defined). See protocol doc SENS<4:0>.
Declaration
public byte SensorType { get; init; }
Property Value
| Type | Description |
|---|---|
| byte |
Side
Body side annotation.
Declaration
public BodySide Side { get; init; }
Property Value
| Type | Description |
|---|---|
| BodySide |
Methods
Encode(out byte, out byte, out byte)
Encodes this configuration into the three CONF bytes.
Declaration
public void Encode(out byte conf0, out byte conf1, out byte conf2)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | conf0 | CONF0: muscle index (bit 7 fixed 0). |
| byte | conf1 | CONF1: SENS<4:0> | ADAPT<2:0>. |
| byte | conf2 | CONF2: SIDE<1:0> | HPF<1:0> | LPF<1:0> | MODE<1:0>. |