-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathmemory.tsp
60 lines (50 loc) · 875 Bytes
/
memory.tsp
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
import "@ebusd/ebus-typespec";
import "./_templates.tsp";
using Ebus;
using Ebus.Num;
using Ebus.Dtm;
using Ebus.Str;
namespace Memory {
/** default *r */
@base(0x9, 0)
model r {}
/** default *wi for user level "install" */
@write
@auth("install")
@base(0x9, 1)
model wi {}
/** RAM data */
@inherit(r, wi)
@ext
model Ram {
/** start address */
@out
address: UIN;
/** number of bytes */
@out
count?: UCH;
/** data bytes */
data: HEX;
}
/** default *r */
@base(0x9, 2)
model r_1 {}
/** default *wi for user level "install" */
@write
@auth("install")
@base(0x9, 3)
model wi_1 {}
/** EEPROM data */
@inherit(r_1, wi_1)
@ext
model Eeprom {
/** start address */
@out
address: UIN;
/** number of bytes */
@out
count?: UCH;
/** data bytes */
data: HEX;
}
}