]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
voltage sensors for mica family - all based on internal ADC for
authoridgay <idgay>
Tue, 22 May 2007 21:02:12 +0000 (21:02 +0000)
committeridgay <idgay>
Tue, 22 May 2007 21:02:12 +0000 (21:02 +0000)
consistency and simplicity (external sensor on mica2, mica2dot no
longer used)

tos/platforms/mica/VoltageNowC.nc
tos/platforms/mica/VoltageStreamC.nc

index 814a04e81f8b5a3227b52443dc69e77ac03474aa..b7088847808d4df97a4647d5b1e5820ff4d9ac9e 100644 (file)
@@ -1,16 +1,9 @@
-/* $Id$
- * Copyright (c) 2006 Intel Corporation
- * All rights reserved.
- *
- * This file is distributed under the terms in the attached INTEL-LICENSE     
- * file. If you do not find these files, copies can be found by writing to
- * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
- * 94704.  Attention:  Intel License Inquiry.
- */
 /**
- * Voltage sensor.
- * 
- * @author David Gay
+ * Battery Voltage. The returned value represents the difference
+ * between the battery voltage and V_BG (1.23V). The formula to convert
+ * it to mV is: 1223 * 1024 / value.
+ *
+ * @author Razvan Musaloiu-E.
  */
 
 #include "hardware.h"
index ff477a6ea1d6d1a99f0d4a5780963414d763beb3..fdb5176278fd39a50269b57eb887f14d8136ed36 100644 (file)
@@ -1,16 +1,9 @@
-/* $Id$
- * Copyright (c) 2006 Intel Corporation
- * All rights reserved.
- *
- * This file is distributed under the terms in the attached INTEL-LICENSE     
- * file. If you do not find these files, copies can be found by writing to
- * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
- * 94704.  Attention:  Intel License Inquiry.
- */
 /**
- * Voltage sensor.
- * 
- * @author David Gay
+ * Battery Voltage. The returned value represents the difference
+ * between the battery voltage and V_BG (1.23V). The formula to convert
+ * it to mV is: 1223 * 1024 / value.
+ *
+ * @author Razvan Musaloiu-E.
  */
 
 #include "hardware.h"