-
Notifications
You must be signed in to change notification settings - Fork 5
/
yaml_syntax.yaml
58 lines (56 loc) · 1.07 KB
/
yaml_syntax.yaml
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
register_address_type: u8
registers:
id:
description: Doc comment for the ID register
rw_type: ro
address: 12
size_bits: 24
reset_value: 0x000005
fields:
manufacturer:
description: Doc comment for the manufacturer field
type: u16
conversion: Manufacturer
start: 0
end: 16
version:
type: u8
start: 16
end: 20
edition:
type: u8
strict_conversion:
One: 1
Two:
Five:
description: Test!
value: 5
Others: default
start: 20
end: 24
baudrate:
rw_type: rw
address: 42
size_bits: 16
byte_order: le
description: "Baudrate register"
fields:
value:
description: "Baudrate value"
type: u16
start: 0
end: 16
commands:
sleep:
id: 0
burn:
description: Let's out the magic smoke
id: 0xDEAD
buffers:
terminal:
id: 123
rw_type: ro
fifo:
description: A buffer you can write to and read from
id: 124
rw_type: rw