generated from AllenNeuralDynamics/harp.device.pico-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.yml
70 lines (69 loc) · 1.81 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
%YAML 1.1
---
# yaml-language-server: $schema=https://harp-tech.org/draft-02/schema/device.json
device: WhiteRabbit
whoAmI: 1404
firmwareVersion: "0.1"
hardwareTargets: "0.1"
registers:
ConnectedDevices:
address: 32
type: U16
access: Event
maskType: ClockOutChannels
description: "The currently connected output channels. An event will be generated when any of the channels are connected or disconnected."
Counter:
address: 33
type: U32
access: [Write, Event]
description: "The counter value. This value is incremented at the frequency specified by CounterFrequencyHz. Write to force a counter value."
CounterFrequencyHz:
address: 34
type: U16
access: Write
maxValue: 500
defaultValue: 0
minValue: 0
description: "The frequency at which the counter is incremented. A value of 0 disables the counter."
AuxPortMode:
address: 35
type: U8
access: Write
description: "The function of the auxiliary port."
maskType: AuxPortModeConfig
AuxPortBaudRate:
address: 36
type: U32
access: Write
defaultValue: 1000
minValue: 40
maxValue: 1000000
description: "The baud rate, in bps, of the auxiliary port when in HarpClock mode."
bitMasks:
ClockOutChannels:
description: "Clock output channels"
bits:
None: 0x00
Channel0: 0x01
Channel1: 0x02
Channel2: 0x04
Channel3: 0x08
Channel4: 0x10
Channel5: 0x20
Channel6: 0x40
Channel7: 0x80
Channel8: 0x100
Channel9: 0x200
Channel10: 0x400
Channel11: 0x800
Channel12: 0x1000
Channel13: 0x2000
Channel14: 0x4000
Channel15: 0x8000
groupMasks:
AuxPortModeConfig:
description: "Auxiliary port available configuration"
values:
Disabled: 0x0
HarpClock: 0x1
PPS: 0x2