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
//! Test for making sure everything is documented
#![deny(missing_docs)]
device_driver::create_device!(
device_name: MyTestDevice,
dsl: {
config {
type RegisterAddressType = u8;
type CommandAddressType = u8;
type BufferAddressType = u8;
}
/// X
register Foo {
const ADDRESS = 0;
const SIZE_BITS = 8;
/// X
value0: bool = 0,
},
/// X
command Bar {
const ADDRESS = 0;
const SIZE_BITS_IN = 8;
const SIZE_BITS_OUT = 8;
in {
/// X
value0: bool = 0,
}
out {
/// X
value0: bool = 0,
}
},
/// X
buffer Baz = 0,
/// X
block B {
},
/// X
ref R = register Foo {
const ADDRESS = 1;
}
}
);