Add commands for enabling/disabling diagnostics

We need to be able to disable diagnostics while atrusctl is running.

BUG=b:37615566
TEST=Built for guado, tested by first starting atrusctl daemon and
verified that when running atrusctl daemon --diag-disable the logs no
longer appeared.

Change-Id: I0bcf4ebbfaa6c49bcde1fdae9aa433d0e3cbd742
Signed-off-by: Karl Petersson <karl@limesaudio.com>
Reviewed-on: https://chromium-review.googlesource.com/484421
Reviewed-by: Emil Lundmark <emil@limesaudio.com>
Reviewed-by: Simon Que <sque@chromium.org>
1 file changed
tree: ec1c7e90b20943ab49f17f9817112367180660d4
  1. conf/
  2. src/
  3. .clang-format
  4. .clang-tidy
  5. .gitignore
  6. CMakeLists.txt
  7. LICENSE.md
  8. PRESUBMIT.cfg
  9. README.md
README.md

atrusctl

This tool is used to interact with an Atrus device.

Requirements

The GNU C Library, libusb 1.0 and libudev are required. GNU C is required because the program utilizes argp.

Building

CMake is used for building the application.

Here is an example of how to build:

$ mkdir build/
$ cd build/
$ cmake ..
$ make

You can also install it on your machine by running:

$ make install

Using

Run the following to see the help section of the application.

$ atrusctl --help

Also, make sure you have read and write access to the USB device. This may be done by, e.g., setting appropriate udev rules.

License

Individual files are tagged with SPDX-License-Identifier to indicate its license instead of including the full license text. See the SPDX License List for more information.