Home
last modified time | relevance | path

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

/Zephyr-latest/samples/sensor/jc42/src/
Dmain.c46 const int temp_ucel = temp->val1 * UCEL_PER_CEL + temp->val2; in set_window() local
47 const int low_ucel = temp_ucel - TEMP_WINDOW_HALF_UCEL; in set_window()
48 const int high_ucel = temp_ucel + TEMP_WINDOW_HALF_UCEL; in set_window()
72 int temp_ucel) in set_window_ucel() argument
75 .val1 = temp_ucel / UCEL_PER_CEL, in set_window_ucel()
76 .val2 = temp_ucel % UCEL_PER_CEL, in set_window_ucel()
/Zephyr-latest/samples/sensor/adt7420/src/
Dmain.c71 int temp_ucel = val->val1 * UCEL_PER_CEL + val->val2; in temp_in_window() local
73 return (temp_ucel >= low_ucel) && (temp_ucel <= high_ucel); in temp_in_window()
79 int temp_ucel = val->val1 * UCEL_PER_CEL + val->val2; in sensor_set_window() local
81 low_ucel = temp_ucel - TEMP_WINDOW_HALF_UCEL; in sensor_set_window()
82 high_ucel = temp_ucel + TEMP_WINDOW_HALF_UCEL; in sensor_set_window()