Home
last modified time | relevance | path

Searched refs:UCEL_PER_CEL (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/samples/sensor/mcp9808/src/
Dmain.c13 #define UCEL_PER_CEL 1000000 macro
46 const int temp_ucel = temp->val1 * UCEL_PER_CEL + temp->val2; in set_window()
50 .val1 = low_ucel / UCEL_PER_CEL, in set_window()
51 .val2 = low_ucel % UCEL_PER_CEL, in set_window()
56 val.val1 = high_ucel / UCEL_PER_CEL, in set_window()
57 val.val2 = high_ucel % UCEL_PER_CEL, in set_window()
75 .val1 = temp_ucel / UCEL_PER_CEL, in set_window_ucel()
76 .val2 = temp_ucel % UCEL_PER_CEL, in set_window_ucel()
122 rc = set_window_ucel(dev, TEMP_INITIAL_CEL * UCEL_PER_CEL); in main()
/Zephyr-Core-3.5.0/samples/sensor/adt7420/src/
Dmain.c16 #define UCEL_PER_CEL 1000000 macro
58 sensor_val.val1 = value / UCEL_PER_CEL; in sensor_set_attribute()
59 sensor_val.val2 = value % UCEL_PER_CEL; in sensor_set_attribute()
71 int temp_ucel = val->val1 * UCEL_PER_CEL + val->val2; in temp_in_window()
79 int temp_ucel = val->val1 * UCEL_PER_CEL + val->val2; in sensor_set_window()