/** * \file * * * \brief LM75 sensor temperature family. * * \author Daniele Basile * * $WIZ$ module_name = "lm75" * $WIZ$ module_depends = "timer", "i2c" * $WIZ$ module_configuration = "bertos/cfg/cfg_lm75.h" * $WIZ$ module_hw = "bertos/hw/hw_lm75.h" */ #ifndef DRV_LM75_H #define DRV_LM75_H #include #include // Macro and data type to manage celsius degree #include #include #define I2C_READBIT BV(0) #if COMPILER_C99 #define lm75_read(...) PP_CAT(lm75_read ## _, COUNT_PARMS(__VA_ARGS__)) (__VA_ARGS__) #else #define lm75_read(args...) PP_CAT(lm75_read ## _, COUNT_PARMS(args)) (args) #endif #if !CONFIG_I2C_DISABLE_OLD_API DEPRECATED deg_t lm75_read_1(uint8_t sens_addr); #endif /* !CONFIG_I2C_DISABLE_OLD_API */ deg_t lm75_read_2(I2c *i2c, uint8_t sens_addr); #endif /* DRV_LM75_H */