Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sink.hpp File Reference

The logger's two contracts: an output sink and a timestamp provider. More...

Detailed Description

The logger's two contracts: an output sink and a timestamp provider.

The logger, the tagged lines and the fault handlers write through a sink and never name a device, so this directory includes nothing from hw/, usb/ or system/. A device's sink lives with the device:

<sbl/log.hpp> picks a build's defaults among them.

Contracts:

  • sink: static void write(const char* str), a NUL-terminated string
  • timestamp: static uint32_t now(), milliseconds

Definition in file sink.hpp.

#include <cstdint>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  sbl::log::NullOutput
 
struct  sbl::log::NullTimestamp
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::log
 Logging.
 

Variables

template<typename T >
constexpr bool sbl::log::is_sink_v = detail::is_sink<T>::value
 
template<typename T >
constexpr bool sbl::log::is_timestamp_v = detail::is_timestamp<T>::value