-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.yml
104 lines (104 loc) · 2.92 KB
/
device.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
%YAML 1.1
---
# yaml-language-server: $schema=https://harp-tech.org/draft-02/schema/device.json
device: TimestampGeneratorGen3
whoAmI: 1158
firmwareVersion: "1.2"
hardwareTargets: "1.2"
registers:
Config:
address: 32
type: U8
access: Write
maskType: ConfigurationFlags
description: Specifies the device configuration
DevicesConnected:
address: 33
type: U8
access: Read
maskType: ConnectedDevices
description: Specifies which CLK_OUT ports have devices connected.
RepeaterStatus:
address: 34
type: U8
access: Write
maskType: RepeaterFlags
description: Check whether device is a repeater or spreading internal timestamp
BatteryRate:
address: 35
type: U8
access: Write
maskType: BatteryRateConfiguration
description: Configure how often the battery value is sent to computer
Battery:
address: 36
type: Float
access: Event
description: Reads the current battery charge
BatteryThresholdLow:
address: 37
type: Float
access: Write
description: Specifies the low threshold from where the battery should start to be charged
BatteryThresholdHigh:
address: 38
type: Float
access: Write
description: Specifies the high threshold from where the battery stops being charged
BatteryCalibration0:
address: 39
type: U16
access: Write
BatteryCalibration1:
address: 40
type: U16
access: Write
Timer:
address: 41
type: U32
access: [Write, Event]
description: Unitary counter that periodically produces a value at the frequency defined by register TimerFrequency.
TimerFrequency:
address: 42
type: U8
access: Write
maskType: TimerRate
description: Frequency at which the Timer will generate new values.
bitMasks:
ConfigurationFlags:
description: Specifies configuration flags for the device.
bits:
StartBatteryCycle: {value: 0x1, description: Starts battery cycle to extend batteries life.}
StartDischarge: {value: 0x2, description: Starts to discharge right away.}
StartCharge: {value: 0x4, description: Starts to charge right away.}
Stop: {value: 0x8, description: Stop any control of the battery and resume normal function.}
ConnectedDevices:
description: Specifies if an output port has a device connected.
bits:
Out0: 0x01
Out1: 0x02
Out2: 0x04
Out3: 0x08
Out4: 0x10
Out5: 0x20
RepeaterFlags:
description: Specifies whether the device is a clock repeater.
bits:
Repeater: 0x01
groupMasks:
BatteryRateConfiguration:
description: Specifies the rate at which the battery charge event is sent.
values:
EveryMinute: 0
Every10Seconds: 1
EverySecond: 2
Never: 3
TimerRate:
description: Specifies the rate at which the timer counter is sent.
values:
Disabled: 0
Timer50Hz: 1
Timer100Hz: 2
Timer200Hz: 3
Timer500Hz: 4
Timer1000Hz: 5