blob: 060af20d6218960c3ca3ec47774f1e0247b81b48 [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module holds the data structures used for communication between
Optofidelity DUT software and test software.
from collections import namedtuple
Measurement = namedtuple('Measurement', ['panel_x', 'panel_y', 'pressure',
'finger_id', 'delay', 'time', 'event',
'yaw', 'tilt', 'UNKNOWN',
'touch_major', 'touch_minor',
'tool_type', 'button_pressed'])
Measurement.__new__.__defaults__ = (0.0,) * 7
Axis = namedtuple('Axis', ['min', 'max', 'resolution'])
DUTConfig = namedtuple('DUTConfig', ['client_id', 'x', 'y', 'pressure',
'touch_major', 'touch_minor'])