Added SHT11 driver for TMote.
[sos-2x.git] / modules / include / mod_pid.h
blob84b0a746a8465d101214c8a34e96c8d40a5b1c4a
1 /**
2 * @file mod_pid.h
3 * @brief PID definition for application modules
4 * @author Ram Kumar {ram@ee.ucla.edu}
6 */
8 #ifndef _MOD_PID_H
9 #define _MOD_PID_H
11 // A central place to register all the application specific module IDs
12 // The module IDs should be assigned relative to APP_MOD_MIN_PID
13 // For example
14 // #define MAG_SENSOR_PID (APP_MOD_MIN_PID + 2)
17 enum {
18 //! 128 Default Application Id. NOT GUARANTEED TO BE UNIQUE !!
19 DFLT_APP_ID0 = (APP_MOD_MIN_PID + 0),
21 //! 129 Default Application Id. NOT GUARANTEED TO BE UNIQUE !!
22 DFLT_APP_ID1 = (APP_MOD_MIN_PID + 1),
24 //! 130 Default Application Id. NOT GUARANTEED TO BE UNIQUE !!
25 DFLT_APP_ID2 = (APP_MOD_MIN_PID + 2),
27 //! 131 Default Application Id. NOT GUARANTEED TO BE UNIQUE !!
28 DFLT_APP_ID3 = (APP_MOD_MIN_PID + 3),
30 //! 132 Magnetic Sensor Driver
31 MAG_SENSOR_PID = (APP_MOD_MIN_PID + 4),
33 //! 133 Neighbourhood Discovery
34 NBHOOD_PID = (APP_MOD_MIN_PID + 5),
36 //! 134 Tiny Diffusion Protocol
37 TD_PROTO_PID = (APP_MOD_MIN_PID + 6),
39 //! 135 Tiny Diffusion Engine
40 TD_ENGINE_PID = (APP_MOD_MIN_PID + 7),
42 //! 136 Module Daemon PC Front-end PID
43 MOD_D_PC_PID = (APP_MOD_MIN_PID + 8),
45 //! 137 Function registry test server module
46 MOD_FN_S_PID = (APP_MOD_MIN_PID + 9),
48 //! 138 Function registry test client module
49 MOD_FN_C_PID = (APP_MOD_MIN_PID + 10),
51 //! 139 Aggregation tree module
52 MOD_AGG_TREE_PID = (APP_MOD_MIN_PID + 11),
54 //! 140 Flooding routing module
55 MOD_FLOODING_PID = (APP_MOD_MIN_PID + 12),
57 //! 141 Tree routing module
58 TREE_ROUTING_PID = (APP_MOD_MIN_PID + 13),
60 //! 142 Surge Application module
61 SURGE_MOD_PID = (APP_MOD_MIN_PID + 14),
63 //! 143 Beef Application module
64 BEEF_MOD_PID = (APP_MOD_MIN_PID + 15),
66 //! 144 Light Potentiometer
67 LITEPOT_PID = (APP_MOD_MIN_PID + 16),
69 //! 145 Photo Sensor
70 PHOTOTEMP_SENSOR_PID = (APP_MOD_MIN_PID + 17),
72 //! 146 sounder
73 SOUNDER_PID = (APP_MOD_MIN_PID + 18),
75 //! 147 sounder
76 // Ram - Two sounders ??
77 ACK_MOD_PID = (APP_MOD_MIN_PID + 19),
79 //! 148 AODV Module
80 AODV_PID = (APP_MOD_MIN_PID + 20),
82 //! 149 Ping Module
83 PING_PID = (APP_MOD_MIN_PID + 21),
85 //! 150 GPSR routing module
86 GPSR_MOD_PID = (APP_MOD_MIN_PID + 22),
88 //! 151 Routing client module
89 CLIENT_MOD_PID = (APP_MOD_MIN_PID + 23),
91 //! 152 - I2C Packet Module
92 I2CPACKET_PID = (APP_MOD_MIN_PID + 24),
94 //! 153 - Viz Packet for visualization
95 VIZ_PID_0 = (APP_MOD_MIN_PID + 25),
97 //! 154 - Viz Packet for visualization
98 VIZ_PID_1 = (APP_MOD_MIN_PID + 26),
100 //! 155 - Accelerometer Sensor
101 ACCEL_SENSOR_PID = (APP_MOD_MIN_PID + 27),
103 //! 156 - Camera Driver Module
104 CAMERA_PID = (APP_MOD_MIN_PID + 28),
106 //! 157 - Blink Communication Module
107 BLINK_PID = (APP_MOD_MIN_PID + 29),
109 //! 158 - MICA WEATHER BOARD SERIAL SWITCH
110 SERIAL_SWITCH_PID = (APP_MOD_MIN_PID + 30),
112 //! 159 - TPSN - Time Sync. Module
113 TPSN_TIMESYNC_PID = (APP_MOD_MIN_PID + 31),
115 //! 160 - RATS - Rate Adaptive Time Synch.
116 RATS_TIMESYNC_PID = (APP_MOD_MIN_PID + 32),
118 //! 161 - Crypto - Symmetric Crypto Library
119 CRYPTO_SYMMETRIC_PID = (APP_MOD_MIN_PID + 33),
121 //! 162 - RFSN - Reputation Framework (Security)
122 RFSN_PID = (APP_MOD_MIN_PID + 34),
124 //! 163 - Outlier Detector (RFSN)
125 OUTLIER_PID = (APP_MOD_MIN_PID + 35),
127 //! 164
128 PHOTO_SENSOR_PID = (APP_MOD_MIN_PID + 36),
130 //! 165
131 DVM_MODULE_PID = (APP_MOD_MIN_PID + 37),
133 //! 166 - ADS7828 ADC on mda300
134 ADS7828_SENSOR_PID = (APP_MOD_MIN_PID + 38),
136 //! 167 - Temperature Sensor
137 TEMP_SENSOR_PID = (APP_MOD_MIN_PID + 39),
139 //! PLEASE add the name to modules/mod_pid.c
142 #ifdef PC_PLATFORM
143 extern char mod_pid_name[][256];
144 #endif
145 #endif