Skip to content

Commit cb94685

Browse files
authored
Merge pull request #512 from open-ephys/issue-503
Add minimum version check to static device classes
2 parents da6ef61 + 3ddf582 commit cb94685

19 files changed

+57
-0
lines changed

OpenEphys.Onix1/ConfigureAnalogIO.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContex
286286
static class AnalogIO
287287
{
288288
public const int ID = 22;
289+
public const uint MinimumVersion = 2;
289290

290291
// constants
291292
public const int ChannelCount = 12;

OpenEphys.Onix1/ConfigureBno055.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
7070
static class Bno055
7171
{
7272
public const int ID = 9;
73+
public const uint MinimumVersion = 2;
7374

7475
// constants
7576
public const float EulerAngleScale = 1f / 16; // 1 degree = 16 LSB

OpenEphys.Onix1/ConfigureDigitalIO.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
131131
static class DigitalIO
132132
{
133133
public const int ID = 18;
134+
public const uint MinimumVersion = 2;
134135

135136
// managed registers
136137
public const uint ENABLE = 0x0;

OpenEphys.Onix1/ConfigureHarpSyncInput.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
9494
static class HarpSyncInput
9595
{
9696
public const int ID = 30;
97+
public const uint MinimumVersion = 2;
9798

9899
// managed registers
99100
public const uint ENABLE = 0x0; // Enable or disable the data stream

OpenEphys.Onix1/ConfigureHeadstage64ElectricalStimulator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
6262
static class Headstage64ElectricalStimulator
6363
{
6464
public const int ID = 4;
65+
public const uint MinimumVersion = 3;
6566

6667
// NB: could be read from REZ but these are constant
6768
public const double DacBitDepth = 16;

OpenEphys.Onix1/ConfigureHeadstage64OpticalStimulator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
6262
static class Headstage64OpticalStimulator
6363
{
6464
public const int ID = 5;
65+
public const uint MinimumVersion = 3;
6566

6667
// NB: can be read with MINRHEOR and POTRES, but will not change
6768
public const uint MinRheostatResistanceOhms = 590;

OpenEphys.Onix1/ConfigureHeartbeat.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
8484
static class Heartbeat
8585
{
8686
public const int ID = 12;
87+
public const uint MinimumVersion = 1;
8788

8889
public const uint ENABLE = 0; // Enable the heartbeat
8990
public const uint CLK_DIV = 1; // Heartbeat clock divider ratio. Default results in 10 Hz heartbeat. Values less than CLK_HZ / 10e6 Hz will result in 1kHz.

OpenEphys.Onix1/ConfigureLoadTester.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
122122
static class LoadTester
123123
{
124124
public const int ID = 27;
125+
public const uint MinimumVersion = 2;
125126

126127
public const uint ENABLE = 0;
127128
public const uint CLK_DIV = 1;

OpenEphys.Onix1/ConfigureMemoryMonitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
8787
static class MemoryMonitor
8888
{
8989
public const int ID = 28;
90+
public const uint MinimumVersion = 2;
9091

9192
public const uint ENABLE = 0; // Enable the monitor
9293
public const uint CLK_DIV = 1; // Sample clock divider ratio. Values less than CLK_HZ / 10e6 Hz will result in 1kHz.

OpenEphys.Onix1/ConfigureNric1384.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
141141
static class Nric1384
142142
{
143143
public const int ID = 33;
144+
public const uint MinimumVersion = 1;
144145

145146
public const int I2cAddress = 0x70;
146147
public const int ChannelCount = 384;

0 commit comments

Comments
 (0)