OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
fprint.h File Reference
#include "Arduino.h"
Include dependency graph for fprint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ANSI_COLOR_RED   "\x1b[31m"
 
#define ANSI_COLOR_GREEN   "\x1b[32m"
 
#define ANSI_COLOR_YELLOW   "\x1b[33m"
 
#define ANSI_COLOR_BLUE   "\x1b[34m"
 
#define ANSI_COLOR_MAGENTA   "\x1b[35m"
 
#define ANSI_COLOR_CYAN   "\x1b[36m"
 
#define ANSI_COLOR_RESET   "\x1b[0m"
 
#define MAXCMD_LEN   255
 
#define HEXDUMP_COLS   16
 
#define SUPPRESSHEXDUMP   0
 
#define HEXDUMP(a, b)   (SUPPRESSHEXDUMP==0) ? __hexdump__(a,b) : (void) 0;
 

Functions

void printlnGreen (const char c[])
 
void printlnRed (const char c[])
 
void printlnMagenta (const char c[])
 
void printMagenta (const char c[])
 
void printGreen (const char c[])
 
void __hexdump__ (const void *p_buf, uint32_t l_len)
 

Macro Definition Documentation

◆ ANSI_COLOR_BLUE

#define ANSI_COLOR_BLUE   "\x1b[34m"

◆ ANSI_COLOR_CYAN

#define ANSI_COLOR_CYAN   "\x1b[36m"

◆ ANSI_COLOR_GREEN

◆ ANSI_COLOR_MAGENTA

#define ANSI_COLOR_MAGENTA   "\x1b[35m"

◆ ANSI_COLOR_RED

◆ ANSI_COLOR_RESET

◆ ANSI_COLOR_YELLOW

#define ANSI_COLOR_YELLOW   "\x1b[33m"

◆ HEXDUMP

#define HEXDUMP (   a,
 
)    (SUPPRESSHEXDUMP==0) ? __hexdump__(a,b) : (void) 0;

◆ HEXDUMP_COLS

◆ MAXCMD_LEN

◆ SUPPRESSHEXDUMP

#define SUPPRESSHEXDUMP   0

Function Documentation

◆ __hexdump__()

void __hexdump__ ( const void *  p_buf,
uint32_t  l_len 
)
inline

◆ printGreen()

void printGreen ( const char  c[])
inline

This function prints a given input in green color without a \r
signs at the end

Return values
None
Examples
C:/Users/Enriquez/Documents/Arduino/libraries/arduino-optiga-trust-m/src/fprint.h.

◆ printlnGreen()

void printlnGreen ( const char  c[])
inline

This function prints a given input in green color with a \r
signs at the end

Return values
None
Examples
C:/Users/Enriquez/Documents/Arduino/libraries/arduino-optiga-trust-m/src/fprint.h.

◆ printlnMagenta()

void printlnMagenta ( const char  c[])
inline

This function prints a given input in magenta color with a \r
signs at the end

Return values
None
Examples
C:/Users/Enriquez/Documents/Arduino/libraries/arduino-optiga-trust-m/src/fprint.h.

◆ printlnRed()

void printlnRed ( const char  c[])
inline

This function prints a given input in red color with a \r
signs at the end

Return values
None
Examples
C:/Users/Enriquez/Documents/Arduino/libraries/arduino-optiga-trust-m/src/fprint.h.

◆ printMagenta()

void printMagenta ( const char  c[])
inline

This function prints a given input in magenta color without a \r
signs at the end

Return values
None
Examples
C:/Users/Enriquez/Documents/Arduino/libraries/arduino-optiga-trust-m/src/fprint.h.