commit | 992954e3695beb3bbc71dc8d8b9b7a3d7d428bd1 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@chromium.org> | Fri Jul 31 21:24:44 2020 |
committer | Mike Frysinger <vapier@chromium.org> | Tue Aug 04 15:15:51 2020 |
tree | 17ef7f8b78d237d55aed891b757c1c7397e9380e | |
parent | e75d7778a635943a9ed79fb72db1f88d8332faf8 [diff] |
common-mk: check-owners: drop noparents settings There is no top-level owners currently, so noparent isn't doing anything. It is causing problems though when we try to inherit the files in other subdirs which have parent owners. BUG=None TEST=upload still works Exempt-From-Owner-Approval: touching all the files! Change-Id: I314449a02300979ae52dffa754582bc0cfc321e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2332953 Reviewed-by: Stephane Belmon <sbelmon@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2 Cr-Mirrored-Commit: 3bedb01f0bbf8767db84c3dace0a1a126ce304b5
Project goal and motivation
This library provides a set of wrapper and test helpers around libiio.
It is meant to provide a common foundation for Chrome OS to access and interface IIO sensors, with:
At the root of the hierarchy, there exists the IioContext
, which represents the IIO devices currently available on the system. These can be retrieved by name and inspected, via instances of IioDevice
.
An IioDevice
allows reading and writing attributes of an IIO device via type-safe helper APIs. It also offers support for configuring the buffer and trigger of an IIO device, which we use in order to allow the Chrome UI to read accelerometer data and support screen rotation.
An IioDevice
also exposes a list of IioChannel
s, which can individually be enabled and disabled.
Useful mocks for the core classes are provided, such that a test author can focus on the logic of the unit tests and share a common testing language with other engineers working in this space. Sharing the foundation of testing IIO sensor access helps ensure that any improvement in this area can benefit all clients.