return 0; /* Conversion start success */
}
+/* Place the sensor in continuous convertion mode */
+int tmp101_sensor_set_continuous_conversion(struct tmp101_sensor_config* conf)
+{
+ int ret = 0;
+ char cmd[CONF_BUF_SIZE] = { conf->addr, TMP_REG_CONFIG, };
+
+ if (tmp101_probe_sensor(conf) != 1) {
+ return -ENODEV;
+ }
+
+ cmd[2] = (TMP_THERMOSTAT_INTERRUPT_MODE | (conf->resolution & (0x03 << 5)));
+ ret = i2c_write(conf->bus_num, cmd, 3, NULL);
+ conf->last_accessed_register = TMP_REG_CONFIG;
+ if (ret != 3) {
+ conf->probe_ok = 0;
+ return ret;
+ }
+ return 0; /* Configuration change success */
+}
*/
int tmp101_sensor_start_conversion(struct tmp101_sensor_config* conf);
+/* Place the sensor in continuous convertion mode.
+ * conf: the sensor configuration structure.
+ */
+int tmp101_sensor_set_continuous_conversion(struct tmp101_sensor_config* conf);
#endif /* EXTDRV_TEMP_H */