LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
va_print.hpp File Reference

Declares a variadic print utility for streamlined debugging output. More...

#include <stdint.h>
#include "internal/user_config_bridge.hpp"
Include dependency graph for va_print.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void VaPrint::setBase (uint8_t baseToSet)
 Set the numeric base used for integral debug output.
 
void VaPrint::setPrec (uint8_t precisionToSet)
 Set the decimal precision used for floating-point debug output.
 
void VaPrint::print (const String &text)
 Print an Arduino String without appending a newline.
 
void VaPrint::print (char character)
 Print a single character without appending a newline.
 
void VaPrint::print (char *const text)
 Print a mutable C string without appending a newline.
 
void VaPrint::print (const char *const text)
 Print an immutable C string without appending a newline.
 
void VaPrint::print (const __FlashStringHelper *const text)
 Print a PROGMEM string without appending a newline.
 
void VaPrint::print (float value)
 Print a float without appending a newline.
 
void VaPrint::print (double value)
 Print a double without appending a newline.
 
void VaPrint::println ()
 Print only a newline.
 
template<typename T , typename... Rest>
 VaPrint::__attribute__ ((always_inline)) static inline void println(T value
 Print multiple values and terminate the line once at the end.
 
 VaPrint::println (rest...)
 

Variables

Rest VaPrint::rest
 

Detailed Description

Declares a variadic print utility for streamlined debugging output.

Author
Jacopo Labardi (labodj)

Copyright 2026 Jacopo Labardi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ print() [1/7]

void VaPrint::print ( char *const  text)

Print a mutable C string without appending a newline.

Parameters
textString to print.
Here is the call graph for this function:

◆ print() [2/7]

void VaPrint::print ( char  character)

Print a single character without appending a newline.

Parameters
characterCharacter to print.
Here is the call graph for this function:

◆ print() [3/7]

void VaPrint::print ( const __FlashStringHelper *const  text)

Print a PROGMEM string without appending a newline.

Parameters
textPROGMEM string to print.
Here is the call graph for this function:

◆ print() [4/7]

void VaPrint::print ( const char *const  text)

Print an immutable C string without appending a newline.

Parameters
textString to print.
Here is the call graph for this function:

◆ print() [5/7]

void VaPrint::print ( const String &  text)

Print an Arduino String without appending a newline.

Parameters
textString to print.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print() [6/7]

void VaPrint::print ( double  value)

Print a double without appending a newline.

Parameters
valueFloating-point value to print.
Here is the call graph for this function:

◆ print() [7/7]

void VaPrint::print ( float  value)

Print a float without appending a newline.

Parameters
valueFloating-point value to print.
Here is the call graph for this function:

◆ setBase()

void VaPrint::setBase ( uint8_t  baseToSet)

Set the numeric base used for integral debug output.

Parameters
baseToSetNew base passed to HardwareSerial::print() for integral values.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPrec()

void VaPrint::setPrec ( uint8_t  precisionToSet)

Set the decimal precision used for floating-point debug output.

Parameters
precisionToSetNumber of decimals to print for floating-point values.
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ rest

Rest VaPrint::rest
Initial value:
{
print(value)
void print(const String &text)
Print an Arduino String without appending a newline.
Definition va_print.cpp:57