BeRTOS
|
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 #define lm75_read(args...) PP_CAT(lm75_read ## _, COUNT_PARMS(args)) (args) 00059 #endif 00060 00061 #if !CONFIG_I2C_DISABLE_OLD_API 00062 00063 DEPRECATED deg_t lm75_read_1(uint8_t sens_addr); 00064 #endif /* !CONFIG_I2C_DISABLE_OLD_API */ 00065 00066 deg_t lm75_read_2(I2c *i2c, uint8_t sens_addr); 00067 00068 #endif /* DRV_LM75_H */