[Tinyos-commits]
CVS: tinyos-1.x/tos/platform/telos Humidity.h, NONE, 1.1
Joe Polastre
jpolastre at users.sourceforge.net
Mon Jun 13 14:00:52 PDT 2005
- Previous message: [Tinyos-commits] CVS: tinyos-1.x/tos/platform/telos
HumidityInterruptC.nc, NONE, 1.1 HumidityC.nc, 1.1,
1.2 HumidityM.nc, 1.2, 1.3 HumidityProtocolC.nc, 1.2,
1.3 hardware.h, 1.15, 1.16
- Next message: [Tinyos-commits]
CVS: tinyos-1.x/tos/platform/telosb hardware.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/tos/platform/telos
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv836
Added Files:
Humidity.h
Log Message:
Humidity pin definitions and timeouts. Can be reconfigured by
overwriting this file either via paths or malicious code changes :)
--- NEW FILE: Humidity.h ---
//$Id: Humidity.h,v 1.1 2005/06/13 21:00:50 jpolastre Exp $
/* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement
* is hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY
* OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/**
* @author Joe Polastre
*/
#ifndef _H_HUMIDITY_SENSIRION_H
#define _H_HUMIDITY_SENSIRIONH_
#define HUMIDITY_TIMEOUT_MS 30
#define HUMIDITY_TIMEOUT_TRIES 20
enum {
// Sensirion Humidity addresses and commands
TOSH_HUMIDITY_ADDR = 5,
TOSH_HUMIDTEMP_ADDR = 3,
TOSH_HUMIDITY_RESET = 0x1E
};
void HUMIDITY_MAKE_CLOCK_OUTPUT() { TOSH_MAKE_HUM_SCL_OUTPUT(); }
void HUMIDITY_MAKE_CLOCK_INPUT() { TOSH_MAKE_HUM_SCL_INPUT(); }
void HUMIDITY_CLEAR_CLOCK() { TOSH_CLR_HUM_SCL_PIN(); }
void HUMIDITY_SET_CLOCK() { TOSH_SET_HUM_SCL_PIN(); }
void HUMIDITY_MAKE_DATA_OUTPUT() { TOSH_MAKE_HUM_SDA_OUTPUT(); }
void HUMIDITY_MAKE_DATA_INPUT() { TOSH_MAKE_HUM_SDA_INPUT(); }
void HUMIDITY_CLEAR_DATA() { TOSH_CLR_HUM_SDA_PIN(); }
void HUMIDITY_SET_DATA() { TOSH_SET_HUM_SDA_PIN(); }
char HUMIDITY_GET_DATA() { return TOSH_READ_HUM_SDA_PIN(); }
#endif
- Previous message: [Tinyos-commits] CVS: tinyos-1.x/tos/platform/telos
HumidityInterruptC.nc, NONE, 1.1 HumidityC.nc, 1.1,
1.2 HumidityM.nc, 1.2, 1.3 HumidityProtocolC.nc, 1.2,
1.3 hardware.h, 1.15, 1.16
- Next message: [Tinyos-commits]
CVS: tinyos-1.x/tos/platform/telosb hardware.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-commits
mailing list