exarm-ni-6071e-digital.aadl 1.38 KB
Newer Older
1
2
3
4
5
package ocarina_drivers_exarm_ni_6071e_digital

public

with Base_Types;
6
with Deployment;
7
8
9

subprogram spg_init
properties
10
   Source_Language   => (C);
11
12
13
14
15
16
17
18
19
   Source_Name       => "__po_hi_c_driver_exarm_ni_6071e_digital_init";
end spg_init;


subprogram spg_poller
features
   data1 : out parameter Base_Types::Unsigned_32;
   data2 : out parameter Base_Types::Unsigned_32;
properties
20
   Source_Language   => (C);
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
   Source_Name       => "__po_hi_c_driver_exarm_ni_6071e_digital_poller";
end spg_poller;


thread thr_poller
features
   data1 : out data port Base_Types::Unsigned_32;
   data2 : out data port Base_Types::Unsigned_32;
end thr_poller;

thread implementation thr_poller.i
calls
	mycall : {
	  pspg : subprogram spg_poller;
	};
connections
37
38
   parameter pspg.data1 -> data1;
   parameter pspg.data2 -> data2;
39
40
41
42
43
44
45
46
47
48
properties
   Period => 100 ms;
   Dispatch_Protocol => Periodic;
end thr_poller.i;


abstract driver
features
   data1 : out data port Base_Types::Unsigned_32;
   data2 : out data port Base_Types::Unsigned_32;
49
50
51
properties
   Deployment::Version  => "0.1beta";
   Deployment::Help     => "Write your ASN.1 configuration here";
52
53
54
55
56
57
end driver;

abstract implementation driver.i
subcomponents
   ni6071e_digital_poller : thread thr_poller.i;
connections
58
59
   port ni6071e_digital_poller.data1 -> data1;
   port ni6071e_digital_poller.data2 -> data2;
60
61
62
end driver.i;

end ocarina_drivers_exarm_ni_6071e_digital;