Namespaces

Enumerations

enum class DataBits
Name Value
k5 0
k6 1
k7 2
k8 3

Number of bits transmitted per character.

Defined at line 101 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

enum class Parity
Name Value Comments
kNone 0

No bits dedicated to parity.

kEven 1

Parity bit present; is 0 iff the number of 1s in the word is even.

kOdd 2

Parity bit present; is 0 iff the number of 1s in the word is odd.

The bit pattern mechanism to help detect transmission errors.

Defined at line 109 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

enum class StopBits
Name Value
k1 0
k2 1

The duration of the stop period in terms of the transmitted bit rate.

Defined at line 116 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

enum class IoRegisterType
Name Value Comments
kNone 0

Null/Stub drivers.

kMmio8 1

MMIO is performed without any scaling what so ever, this means that
registers offsets are treated as byte offsets from the base address.

kMmio32 2

MMIO is performed with an scaling factor of 4, this means that
register offsets are treated as 4-byte offsets from the base address.

kPio 3

PIO.

Defined at line 136 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

Records

Functions

  • template <>
    std::optional<zbi_dcfg_simple_t> ParseConfig<zbi_dcfg_simple_t> (std::string_view string)

    These specializations are defined in the library to cover all the ZBI item

    payload types used by the various drivers.

    Defined at line 13 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    std::optional<zbi_dcfg_simple_t> ParseConfig<zbi_dcfg_simple_t> (std::string_view string)

    These specializations are defined in the library to cover all the ZBI item

    payload types used by the various drivers.

    Defined at line 13 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    void UnparseConfig<zbi_dcfg_simple_t> (const zbi_dcfg_simple_t & config, FILE * out)

    Defined at line 22 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    void UnparseConfig<zbi_dcfg_simple_t> (const zbi_dcfg_simple_t & config, FILE * out)

    Defined at line 22 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    std::optional<zbi_dcfg_simple_pio_t> ParseConfig<zbi_dcfg_simple_pio_t> (std::string_view string)

    Defined at line 27 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    std::optional<zbi_dcfg_simple_pio_t> ParseConfig<zbi_dcfg_simple_pio_t> (std::string_view string)

    Defined at line 27 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    void UnparseConfig<zbi_dcfg_simple_pio_t> (const zbi_dcfg_simple_pio_t & config, FILE * out)

    Defined at line 36 of file ../../zircon/system/ulib/uart/parse.cc

  • template <>
    void UnparseConfig<zbi_dcfg_simple_pio_t> (const zbi_dcfg_simple_pio_t & config, FILE * out)

    Defined at line 36 of file ../../zircon/system/ulib/uart/parse.cc

  • template <typename Config>
    std::optional<Config> ParseConfig (std::string_view )

    This template is specialized by payload configuration type (see below).

    It parses bits out of strings from the "kernel.serial" boot option.

    Defined at line 124 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

  • template <typename Config>
    std::optional<Config> ParseConfig (std::string_view )

    This template is specialized by payload configuration type (see below).

    It parses bits out of strings from the "kernel.serial" boot option.

    Defined at line 124 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

  • template <typename Config>
    void UnparseConfig (const Config & config, FILE * out)

    This template is specialized by payload configuration type (see below).

    It recreates a string for Parse.

    Defined at line 132 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

  • template <typename Config>
    void UnparseConfig (const Config & config, FILE * out)

    This template is specialized by payload configuration type (see below).

    It recreates a string for Parse.

    Defined at line 132 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

Concepts

template <class Driver> MmioDriver requires (const Driver &driver) { { driver.mmio_range() } -> std::same_as<MmioRange>; }

This matches either a Driver API object or a KernelDriver wrapper

instantiation for an MMIO-based driver.

Defined at line 189 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

template <class Driver> PioDriver std::same_as<typename std::decay_t<Driver>::config_type, zbi_dcfg_simple_pio_t>

Defined at line 194 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h

template <class Driver> NonMmioDriver !MmioDriver<Driver>

Defined at line 197 of file ../../zircon/system/ulib/uart/include/lib/uart/uart.h