6 This module defines a simple and unoptimized interface for byte-by-byte
7 input/output. This can be done over a logging system, stdio, UART, via a
8 photodiode and modulated kazoo, or basically any way to get data in and out
11 This facade doesn't dictate any policies on input and output data encoding,
12 format, or transmission protocol. It only requires that backends return a
13 ``OkStatus()`` if the operation succeeds. Backends may provide useful error
14 Status types, but depending on the implementation-specific Status values is
15 NOT recommended. Since this facade provides a very vague I/O interface, it
16 does NOT provide tests. Backends are expected to provide their own testing to
19 The intent of this module for simplifying bringup or otherwise getting data
20 in/out of a CPU in a way that is platform-agnostic. The interface is designed
21 to be easy to understand. There's no initialization as part of this
22 interface, there's no configuration, and the interface is no-frills WYSIWYG
25 **It is strongly advised NOT to build projects on top of this interface.** There
26 are many drawbacks to using this interface, so it's not generally suited for use
31 This module requires relatively minimal setup:
33 1. Chose a ``pw_sys_io`` backend, or write one yourself.
34 2. If using GN build, Specify the ``pw_sys_io_BACKEND`` GN build arg to point
35 the library that provides a ``pw_sys_io`` backend.
39 See backend docs for how to interact with the underlying system I/O