Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_printf.h File Reference

A simple printf utility for debug prints and cli support. Required for remote CLI to function properly. More...

#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdarg.h>
+ Include dependency graph for tr_printf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* putchar_cb) (char ch)
 Function pointer definition for put char callback.
 
typedef void(* putstr_cb) (const char *str, int len)
 Function pointer definition for put string callback.
 

Functions

void tr_printf_init (putchar_cb putc, putstr_cb puts)
 Initializes the printf utility.
 
void tr_vsprintf (char *buf, int maxlen, const char *fmt, const va_list args)
 Write formated data from variable argument list to string.
 
void tr_printf (const char *fmt,...)
 Writes the passed in C string to the standard output (stdout).
 

Detailed Description

A simple printf utility for debug prints and cli support. Required for remote CLI to function properly.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com