]> oss.titaniummirror.com Git - tinyos-2.x.git/blob - tos/chips/rf230/DummyLayerC.nc
IRIS: reworked the time sync implementation
[tinyos-2.x.git] / tos / chips / rf230 / DummyLayerC.nc
1 /*
2 * Copyright (c) 2007, Vanderbilt University
3 * All rights reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation for any purpose, without fee, and without written agreement is
7 * hereby granted, provided that the above copyright notice, the following
8 * two paragraphs and the author appear in all copies of this software.
9 *
10 * IN NO EVENT SHALL THE VANDERBILT UNIVERSITY BE LIABLE TO ANY PARTY FOR
11 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
12 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE VANDERBILT
13 * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 *
15 * THE VANDERBILT UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
16 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
17 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18 * ON AN "AS IS" BASIS, AND THE VANDERBILT UNIVERSITY HAS NO OBLIGATION TO
19 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20 *
21 * Author: Miklos Maroti
22 */
23
24 generic configuration DummyLayerC()
25 {
26 provides
27 {
28 interface SplitControl;
29 interface Send;
30 interface Receive;
31 interface LowPowerListening;
32
33 interface RadioState;
34 interface RadioSend;
35 interface RadioReceive;
36 interface RadioCCA;
37
38 interface DummyConfig as UnconnectedConfig;
39 }
40
41 uses
42 {
43 interface RadioState as SubState;
44 interface RadioSend as SubRadioSend;
45 interface RadioReceive as SubRadioReceive;
46 interface RadioCCA as SubRadioCCA;
47 interface SplitControl as SubControl;
48 interface Send as SubSend;
49 interface Receive as SubReceive;
50
51 interface DummyConfig as Config;
52 }
53 }
54
55 implementation
56 {
57 RadioState = SubState;
58 RadioSend = SubRadioSend;
59 RadioReceive = SubRadioReceive;
60 RadioCCA = SubRadioCCA;
61
62 SplitControl = SubControl;
63 Send = SubSend;
64 Receive = SubReceive;
65
66 Config = UnconnectedConfig;
67
68 components DummyLayerP;
69 LowPowerListening = DummyLayerP.LowPowerListening;
70 }