Skip to content

Commit 37f6a3b

Browse files
committed
Refactor schema for consistency
1 parent b537ced commit 37f6a3b

1 file changed

Lines changed: 19 additions & 24 deletions

File tree

device.yml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ registers:
3535
offset: 6
3636
Channel7:
3737
offset: 7
38-
DI0:
38+
DI0State:
3939
address: 34
4040
access: Event
4141
type: U8
4242
maskType: DigitalState
43-
description: Status of the digital input pin 0. An event will be emitted when DI0Mode == Input.
44-
DO0:
43+
description: Status of the digital input pin 0. An event will be emitted when DI0Trigger == Input.
44+
DO0State:
4545
address: 35
4646
access: Event
4747
type: U8
4848
maskType: DigitalState
49-
description: Status of the digital output pin 0. An periodic event will be emitted when DigitalOutput0Mode == ToggleEachSecond.
50-
BufferThresholds:
49+
description: Status of the digital output pin 0. An periodic event will be emitted when DO0Sync == ToggleEachSecond.
50+
BufferThresholdsState:
5151
address: 36
5252
access: Read
5353
visibility: private
@@ -62,44 +62,44 @@ registers:
6262
Reserved1:
6363
<<: *ReservedReg
6464
address: 38
65-
DI0Mode:
65+
DI0Trigger:
6666
address: 39
6767
access: Write
6868
type: U8
69-
maskType: DI0ModeConfig
69+
maskType: DI0TriggerConfig
7070
description: Configuration of the digital input pin 0.
71-
DO0Mode:
71+
DO0Sync:
7272
address: 40
7373
access: Write
7474
type: U8
75-
maskType: DO0ModeConfig
75+
maskType: DO0SyncConfig
7676
description: Configuration of the digital output pin 0.
7777
DO0PulseWidth:
7878
address: 41
7979
access: Write
8080
type: U8
8181
minValue: 1
8282
maxValue: 255
83-
description: Pulse duration (ms) for the digital output pin 0. The pulse will only be emitted when DO0Mode == Pulse.
84-
DOSet: &output
83+
description: Pulse duration (ms) for the digital output pin 0. The pulse will only be emitted when DO0Sync == Pulse.
84+
DigitalOutputSet: &output
8585
address: 42
8686
type: U16
8787
access: Write
8888
maskType: DigitalOutputs
8989
description: Set the specified digital output lines.
90-
DOClear:
90+
DigitalOutputClear:
9191
<<: *output
9292
address: 43
9393
description: Clear the specified digital output lines.
94-
DOToggle:
94+
DigitalOutputToggle:
9595
<<: *output
9696
address: 44
9797
description: Toggle the specified digital output lines
98-
DOState:
98+
DigitalOutputState:
9999
<<: *output
100100
address: 45
101101
access: [Write, Event]
102-
description: Write the state of all digital output lines. An event will be emitted when the value of any pin was changed by a threshold crossing event.
102+
description: Write the state of all digital output lines. An event will be emitted when the value of any pin was changed by a threshold event.
103103
Reserved2:
104104
<<: *ReservedReg
105105
address: 46
@@ -307,24 +307,19 @@ bitMasks:
307307
DigitalOutput0: 0x4
308308
Thresholds: 0x8
309309
groupMasks:
310-
EnableFlag:
311-
description: The state of an abstract functionality.
312-
values:
313-
Disabled: 0
314-
Enabled: 1
315310
DigitalState:
316311
description: The state of a digital pin.
317312
values:
318313
Low: 0
319314
High: 1
320-
DI0ModeConfig:
321-
description: Available configurations for DI0 pin.
315+
DI0TriggerConfig:
316+
description: Available configurations for when using DI0 as an acquisition trigger.
322317
values:
323318
Input: 0
324319
StartOnRisingEdge: 1
325320
StartOnFallingEdge: 2
326-
DO0ModeConfig:
327-
description: Available configurations for DO0 pin.
321+
DO0SyncConfig:
322+
description: Available configurations when using DO0 pin to report firmware events.
328323
values:
329324
Output: 0
330325
ToggleEachSecond: 1

0 commit comments

Comments
 (0)