Lines Matching defs:sensors
61 * bytes, 26 + 16 = 42 are sensors detecting pressure in the X or
63 * 15 inch PowerBooks, only the 16 first sensors in the X-direction
64 * are used. In the X-direction, the sensors correspond to byte
70 * In the Y direction, the sensors correspond to byte positions
74 * On 12 inch iBooks only the 9 first sensors in Y-direction are used.
84 * accumulator is large for sensors whose pressure has recently
90 * weighted average of the other sensors (the weights are the
145 /* The maximum number of sensors. */
177 * x_sensors: The number of sensors in the X-direction.
181 * y_sensors: The number of sensors in the Y-direction.
189 int x_sensors; /* The number of X-sensors. */
191 int y_sensors; /* The number of Y-sensors. */
249 int sc_x_sensors; /* Number of X-sensors. */
254 int sc_y_sensors; /* Number of Y-sensors. */
554 * Reorder the sensor values so that all the X-sensors are before the
555 * Y-sensors in the natural order. Note that this might have to be
578 /* X-sensors. */
585 * we ignore these sensors until we figure out their meaning.
590 /* Y-sensors. */
698 detect_pos(int *sensors, int n_sensors, int threshold, int fact,
710 if (sensors[i] >= threshold) {
711 if (i == 0 || sensors[i - 1] < threshold)
713 s += sensors[i];
714 w += sensors[i] * i;