-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.yml
127 lines (127 loc) · 3.53 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
%YAML 1.1
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/harp-tech/reflex-generator/main/schema/device.json
device: RfidReader
whoAmI: 2094
firmwareVersion: "1.3"
hardwareTargets: "1.2"
registers:
InboundDetectionId: &detectionevent
address: 32
type: U64
access: Event
description: The ID of the tag that was detected as having entered the area of the reader.
OutboundDetectionId:
<< : *detectionevent
address: 33
description: The ID of the tag that was detected as having exited the area of the reader.
DO0State:
address: 34
type: U8
access: [Write, Event]
maskType: DigitalState
description: Changes the state of the digital output pin.
HardwareNotificationsState:
address: 35
type: U8
access: Write
maskType: HardwareNotifications
description: Enables or disables hardware notifications.
HardwareNotificationsTrigger:
address: 36
type: U8
access: Write
maskType: HardwareNotifications
description: Triggers hardware notifications.
BuzzerDuration: ¬ificationduration
address: 37
type: U16
access: Write
minValue: 2
description: The time the buzzer will stay on (sensitive to multiples of 2).
TopLedDuration:
<< : *notificationduration
address: 38
description: The time the top LED will stay on (sensitive to multiples of 2).
BottomLedDuration:
<< : *notificationduration
address: 39
description: The time the bottom LED will stay on (sensitive to multiples of 2).
BuzzerFrequency:
address: 40
type: U16
access: Write
minValue: 200
maxValue: 15000
description: The frequency of the buzzer notification.
TopLedPeriod: ¬ificationblinkperiod
address: 41
type: U16
access: Write
minValue: 2
description: The blink period of the top LED notification (sensitive to multiples of 2).
BottomLedPeriod:
<< : *notificationblinkperiod
address: 42
description: The blink period of the bottom LED notification (sensitive to multiples of 2).
Reserved0: &reserved
address: 43
type: U8
access: Read
visibility: private
description: Reserved for future use.
Reserved1:
<< : *reserved
address: 44
description: Reserved for future use.
MatchTagId0: &matchtagid
address: 45
type: U64
access: Write
defaultValue: 0
description: Sends detection event notifications only when the tag with the specified ID is detected.
MatchTagId1:
<< : *matchtagid
address: 46
MatchTagId2:
<< : *matchtagid
address: 47
MatchTagId3:
<< : *matchtagid
address: 48
MatchTagId0PulseWidth: &matchidwidth
address: 49
type: U16
access: Write
description: The time the digital output pin will stay on (ms) if the corresponding tag is detected.
MatchTagId1PulseWidth:
<< : *matchidwidth
address: 50
MatchTagId2PulseWidth:
<< : *matchidwidth
address: 51
MatchTagId3PulseWidth:
<< : *matchidwidth
address: 52
AnyTagIdPulseWidth:
<< : *matchidwidth
address: 53
description: The time the digital output pin will stay on (ms) if any tag is detected.
DO0PulseWidth:
address: 54
type: U16
access: Write
description: Triggers the digital output pin for the specified duration (ms).
bitMasks:
HardwareNotifications:
description: The available hardware notifications.
bits:
Buzzer: 0x1
TopLed: 0x2
BottomLed: 0x4
groupMasks:
DigitalState:
description: The state of the digital output pin.
values:
Low: 0
High: 1