Skip to content

Commit 5bbd6a0

Browse files
committed
Improve schema for consistency with Device.LoadCells
1 parent 5b06ae6 commit 5bbd6a0

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

device.yml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ registers:
2727
offset: 2
2828
Channel3:
2929
offset: 3
30-
DI0State:
30+
DigitalInputState:
3131
address: 34
3232
access: Event
3333
type: U8
34-
maskType: DigitalState
34+
maskType: DigitalInputs
3535
description: State of the digital input pin 0.
3636
Reserved0: &ReservedReg
3737
address: 35
@@ -52,19 +52,19 @@ registers:
5252
address: 38
5353
access: Write
5454
type: U8
55-
maskType: SamplingRateConfig
55+
maskType: SamplingRateMode
5656
description: Sets the sampling frequency of the ADC.
5757
DI0Trigger:
5858
address: 39
5959
access: Write
6060
type: U8
61-
maskType: DI0TriggerConfig
61+
maskType: TriggerConfig
6262
description: Configuration of the digital input pin 0.
6363
DO0Sync:
6464
address: 40
6565
access: Write
6666
type: U8
67-
maskType: DO0SyncConfig
67+
maskType: SyncConfig
6868
description: Configuration of the digital output pin 0.
6969
DO0PulseWidth:
7070
address: 41
@@ -135,7 +135,7 @@ registers:
135135
address: 58
136136
access: Write
137137
type: U8
138-
maskType: ThresholdOnAdcChannel
138+
maskType: AdcChannel
139139
visibility: private
140140
description: Target ADC channel that will be used to trigger a threshold event on DO0 pin.
141141
DO1TargetChannel:
@@ -192,22 +192,22 @@ registers:
192192
Reserved20:
193193
<<: *ReservedReg
194194
address: 73
195-
DO0BufferRisingEdge: &bufferedthreshold
195+
DO0TimeAboveThreshold: &bufferedthreshold
196196
address: 74
197197
access: Write
198198
type: U16
199199
visibility: private
200200
defaultValue: 0
201201
description: Time (ms) above threshold value that is required to trigger a DO0 pin event.
202-
DO1BufferRisingEdge:
202+
DO1TimeAboveThreshold:
203203
<<: *bufferedthreshold
204204
address: 75
205205
description: Time (ms) above threshold value that is required to trigger a DO1 pin event.
206-
DO2BufferRisingEdge:
206+
DO2TimeAboveThreshold:
207207
<<: *bufferedthreshold
208208
address: 76
209209
description: Time (ms) above threshold value that is required to trigger a DO2 pin event.
210-
DO3BufferRisingEdge:
210+
DO3TimeAboveThreshold:
211211
<<: *bufferedthreshold
212212
address: 77
213213
description: Time (ms) above threshold value that is required to trigger a DO3 pin event.
@@ -223,20 +223,20 @@ registers:
223223
Reserved24:
224224
<<: *ReservedReg
225225
address: 81
226-
DO0BufferFallingEdge:
226+
DO0TimeBelowThreshold:
227227
<<: *bufferedthreshold
228228
address: 82
229229
visibility: private
230230
description: Time (ms) below threshold value that is required to trigger a DO0 pin event.
231-
DO1BufferFallingEdge:
231+
DO1TimeBelowThreshold:
232232
<<: *bufferedthreshold
233233
address: 83
234234
description: Time (ms) below threshold value that is required to trigger a DO1 pin event.
235-
DO2BufferFallingEdge:
235+
DO2TimeBelowThreshold:
236236
<<: *bufferedthreshold
237237
address: 84
238238
description: Time (ms) below threshold value that is required to trigger a DO2 pin event.
239-
DO3BufferFallingEdge:
239+
DO3TimeBelowThreshold:
240240
<<: *bufferedthreshold
241241
address: 85
242242
description: Time (ms) below threshold value that is required to trigger a DO3 pin event.
@@ -256,6 +256,10 @@ registers:
256256
<<: *ReservedReg
257257
address: 90
258258
bitMasks:
259+
DigitalInputs:
260+
description: Available digital input lines.
261+
bits:
262+
DI0: 0x1
259263
DigitalOutputs:
260264
description: Specifies the state of port digital output lines.
261265
bits:
@@ -268,11 +272,6 @@ bitMasks:
268272
DO2Changed: 0x40
269273
DO4Changed: 0x80
270274
groupMasks:
271-
DigitalState:
272-
description: The state of a digital pin.
273-
values:
274-
Low: 0
275-
High: 1
276275
RangeAndFilterConfig:
277276
description: Available settings to set the range (Volt) and LowPass filter cutoff (Hz) of the ADC.
278277
values:
@@ -288,24 +287,24 @@ groupMasks:
288287
Range10V_LowPass11k9Hz: 0x13
289288
Range10V_LowPass18k5Hz: 0x12
290289
Range10V_LowPass22kHz: 0x11
291-
SamplingRateConfig:
290+
SamplingRateMode:
292291
description: Available sampling frequency settings of the ADC.
293292
values:
294-
Frequency1k: 0x00
295-
Frequency2k: 0x01
296-
DI0TriggerConfig:
293+
SamplingRate1000Hz: 0x00
294+
SamplingRate2000Hz: 0x01
295+
TriggerConfig:
297296
description: Available configurations for when using DI0 as an acquisition trigger.
298297
values:
299298
None: 0
300299
StartOnRisingEdge: 1
301300
StartOnFallingEdge: 2
302301
SampleOnRisingEdge: 3
303302
SampleOnFallingEdge: 4
304-
DO0SyncConfig:
303+
SyncConfig:
305304
description: Available configurations when using DO0 pin to report firmware events.
306305
values:
307-
Output: 0
308-
ToggleEachSecond: 1
306+
None: 0
307+
Heartbeat: 1
309308
Pulse: 2
310309
StartSyncOutputTarget:
311310
description: Available digital output pins that are able to be triggered on acquisition start.
@@ -315,7 +314,7 @@ groupMasks:
315314
DO1: 2
316315
DO2: 3
317316
DO3: 4
318-
ThresholdOnAdcChannel:
317+
AdcChannel:
319318
description: Available target analog channels to be targeted for threshold events.
320319
values:
321320
Channel0: 0

0 commit comments

Comments
 (0)