Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
embedded_printf.hpp File Reference

Lightweight printf implementation for ARM Cortex-M systems. More...

#include <cstdint>
#include <cstdarg>
#include <cstddef>
#include <sbl/common/defaults.hpp>
Include dependency graph for embedded_printf.hpp:

Go to the source code of this file.

Classes

class  sbl::core::util::EmbeddedPrintf
 Lightweight printf implementation for ARM Cortex-M systems. More...
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::core
 
namespace  sbl::core::util
 

Functions

int sbl::core::util::embedded_vsnprintf (char *buffer, std::size_t size, const char *format, va_list args)
 Embedded printf functions.
 
int sbl::core::util::embedded_snprintf (char *buffer, std::size_t size, const char *format,...)
 

Detailed Description

Lightweight printf implementation for ARM Cortex-M systems.

Minimal printf supporting only essential format specifiers:

Features:

Usage: This is used automatically by the logging system when SBL_USE_EMBEDDED_PRINTF is defined. Otherwise, it falls back to system printf.

Definition in file embedded_printf.hpp.