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

Implements the variadic print utility. More...

Include dependency graph for va_print.cpp:

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.
 

Variables

uint8_t VaPrint::base = 10U
 Numeric base passed to HardwareSerial::print() when printing integral debug values.
 
uint8_t VaPrint::prec = 2U
 Decimal precision passed to HardwareSerial::print() when printing floating-point debug values.
 

Detailed Description

Implements the variadic print utility.

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: