blob: eda6931bf4bbe5b6df6b78a15ded51fc75b18c7d (
plain)
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
|
@annotation unit {
string value;
};
@annotation range {
double min;
double max;
};
@annotation min {
long value;
};
@annotation max {
long value;
};
@annotation key {
};
module test {
@unit("deg")
@range(min=0.0, max=360.0)
typedef float angle_t;
@unit("degC") @min(-60) @max(100) typedef short temperature_t;
struct structure {
@key unsigned long key;
angle_t degrees;
temperature_t celsius;
};
};
|