tico 0.1
Mechanical Watch Terminal Timegrapher
Functions | Variables
printing.c File Reference
#include "printing.h"
#include "modsigned.h"
#include "mydefs.h"
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for printing.c:

Functions

void printmsg (const char *fmt,...)
 
void print (const char *fmt,...)
 
void printheader (double fittedRate, unsigned int everyline, double beatError, double seconds)
 
void printspaces (int maxpos, size_t hexvalue, size_t mod, size_t acolumns, double avgPos, double correlationThreshold)
 Prints spaces to visually represent the position of the maximum correlation in the capture output, based on the provided parameters. More...
 

Variables

volatile unsigned int columns
 

Function Documentation

◆ print()

void print ( const char *  fmt,
  ... 
)

◆ printheader()

void printheader ( double  fittedRate,
unsigned int  everyline,
double  beatError,
double  seconds 
)

◆ printmsg()

void printmsg ( const char *  fmt,
  ... 
)

◆ printspaces()

void printspaces ( int  maxpos,
size_t  hexvalue,
size_t  mod,
size_t  acolumns,
double  avgPos,
double  correlationThreshold 
)

Prints spaces to visually represent the position of the maximum correlation in the capture output, based on the provided parameters.

Parameters
maxposThe position of the maximum correlation.
hexvalueThe hexadecimal value representing the correlation strength.
modThe modulus used for calculating the width of the spaces.
acolumnsThe total number of columns available for printing.
avgPosThe average position of the correlation.
correlationThresholdThe threshold for determining the color of the output.

Variable Documentation

◆ columns

volatile unsigned int columns
extern