2 * Texas Instruments TMP105 Temperature Sensor
4 * Browse the data sheet:
6 * http://www.ti.com/lit/gpn/tmp105
8 * Copyright (C) 2012 Alex Horn <alex.horn@cs.ox.ac.uk>
9 * Copyright (C) 2008-2012 Andrzej Zaborowski <balrogg@gmail.com>
11 * This work is licensed under the terms of the GNU GPL, version 2 or
12 * later. See the COPYING file in the top-level directory.
21 * @TMP105_REG_TEMPERATURE: Temperature register
22 * @TMP105_REG_CONFIG: Configuration register
23 * @TMP105_REG_T_LOW: Low temperature register (also known as T_hyst)
24 * @TMP105_REG_T_HIGH: High temperature register (also known as T_OS)
26 * The following temperature sensors are
27 * compatible with the TMP105 registers:
45 typedef enum TMP105Reg
{
46 TMP105_REG_TEMPERATURE
= 0,
54 * @i2c: dispatcher to TMP105 hardware model
55 * @temp: temperature with 0.001 centigrades units in the range -40 C to +125 C
57 * Sets the temperature of the TMP105 hardware model.
59 * Bits 5 and 6 (value 32 and 64) in the register indexed by TMP105_REG_CONFIG
60 * determine the precision of the temperature. See Table 8 in the data sheet.
62 * @see_also: I2C_SLAVE macro
63 * @see_also: http://www.ti.com/lit/gpn/tmp105
65 void tmp105_set(I2CSlave
*i2c
, int temp
);