lm75.h
Go to the documentation of this file.
00001 00043 #ifndef DRV_LM75_H 00044 #define DRV_LM75_H 00045 00046 #include <cpu/types.h> 00047 00048 #include <drv/ntc.h> // Macro and data type to manage celsius degree 00049 #include <drv/i2c.h> 00050 00051 #include <cpu/attr.h> 00052 00053 #define I2C_READBIT BV(0) 00054 00055 #if COMPILER_C99 00056 #define lm75_read(...) PP_CAT(lm75_read ## _, COUNT_PARMS(__VA_ARGS__)) (__VA_ARGS__) 00057 #else 00058 00065 #define lm75_read(args...) PP_CAT(lm75_read ## _, COUNT_PARMS(args)) (args) 00066 #endif 00067 00068 #if !CONFIG_I2C_DISABLE_OLD_API 00069 00070 DEPRECATED deg_t lm75_read_1(uint8_t sens_addr); 00071 #endif /* !CONFIG_I2C_DISABLE_OLD_API */ 00072 00073 deg_t lm75_read_2(I2c *i2c, uint8_t sens_addr); 00074 00075 #endif /* DRV_LM75_H */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)