\hypertarget{capture__helpers_8h_source}{}\doxysection{capture\+\_\+helpers.\+h}
\label{capture__helpers_8h_source}\index{inc/capture\_helpers.h@{inc/capture\_helpers.h}}
\mbox{\hyperlink{capture__helpers_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{config_8h}{config.h}}"{}}}
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{myarr_8h}{myarr.h}}"{}}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{resources_8h}{resources.h}}"{}}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 \textcolor{keyword}{typedef} \textcolor{keyword}{struct}}
\DoxyCodeLine{8 \{}
\DoxyCodeLine{9     \textcolor{keywordtype}{int} \mbox{\hyperlink{structLoopState_a8c973d1dad43cba9882314999c15188c}{cumulativeShift}};}
\DoxyCodeLine{10     \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{structLoopState_a278d83ec6cce1f1af446d14b1021b3c9}{tickIndex}};}
\DoxyCodeLine{11     \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structLoopState_aade3310f0edb8f4aafab2925f29fcb3f}{globalTickIndex}};}
\DoxyCodeLine{12 \} \mbox{\hyperlink{structLoopState}{LoopState}};}
\DoxyCodeLine{13 }
\DoxyCodeLine{23 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_a7bb6c91e392478b87529b6a7c4e0df94}{printFinals}}(\mbox{\hyperlink{structCapConfig}{CapConfig}}* cfg, \mbox{\hyperlink{structAppResources}{AppResources}}* res, \textcolor{keywordtype}{size\_t} totalTickTock);}
\DoxyCodeLine{24 }
\DoxyCodeLine{30 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_ac6f5d784e10f01f224b9bba1424f9cbf}{printPeak}}(\mbox{\hyperlink{structCapConfig}{CapConfig}}* cfg, \mbox{\hyperlink{structAppResources}{AppResources}}* res);}
\DoxyCodeLine{31 }
\DoxyCodeLine{37 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_a50e20c3eea97677665a99de3130edc5a}{fillReference}}(FILE* fpDefPeak, \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* reference, \textcolor{keywordtype}{size\_t} teeth);}
\DoxyCodeLine{38 }
\DoxyCodeLine{47 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_a8e13ee36857caa5124fcf483906e7892}{shiftBufferData}}(\textcolor{keywordtype}{size\_t}* ticktock,}
\DoxyCodeLine{48                      \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* subpos,}
\DoxyCodeLine{49                      \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* maxpos,}
\DoxyCodeLine{50                      \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* maxvals);}
\DoxyCodeLine{51 }
\DoxyCodeLine{63 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_aaf7cec3508044906e4daa5b37dc3323a}{processLogging}}(\mbox{\hyperlink{structCapConfig}{CapConfig}}* cfg,}
\DoxyCodeLine{64                     \mbox{\hyperlink{structAppResources}{AppResources}}* res,}
\DoxyCodeLine{65                     \textcolor{keywordtype}{size\_t} totalTime,}
\DoxyCodeLine{66                     \textcolor{keywordtype}{size\_t} writeInterval);}
\DoxyCodeLine{67 }
\DoxyCodeLine{82 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_ac32de3131551418091d61d370bf8bd93}{fitAndPrint}}(\textcolor{keyword}{const} \mbox{\hyperlink{structLoopState}{LoopState}}* state,}
\DoxyCodeLine{83                  \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* cumulativeTick,}
\DoxyCodeLine{84                  \mbox{\hyperlink{structAppResources}{AppResources}}* res,}
\DoxyCodeLine{85                  \mbox{\hyperlink{structCapConfig}{CapConfig}}* cfg,}
\DoxyCodeLine{86                  \textcolor{keywordtype}{size\_t} currentColumns);}
\DoxyCodeLine{87 }
\DoxyCodeLine{95 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_aea9fc01cce6cd5bb54702bae5a482db0}{rotateDerivativeWindow}}(\mbox{\hyperlink{structAppResources}{AppResources}}* res, \textcolor{keywordtype}{int} cumulativeShift);}
\DoxyCodeLine{96 }
\DoxyCodeLine{110 \textcolor{keywordtype}{int} \mbox{\hyperlink{capture__helpers_8h_aa632bcaf1299fe0f1b4b90828d462739}{findMaxPosition}}(\mbox{\hyperlink{structAppResources}{AppResources}}* res,}
\DoxyCodeLine{111                     \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* cumulativeTick,}
\DoxyCodeLine{112                     \textcolor{keyword}{const} \mbox{\hyperlink{structLoopState}{LoopState}}* state,}
\DoxyCodeLine{113                     \mbox{\hyperlink{structCapConfig}{CapConfig}}* cfg);}
\DoxyCodeLine{114 }
\DoxyCodeLine{129 \textcolor{keywordtype}{void} \mbox{\hyperlink{capture__helpers_8h_a351d765405d74ea6875ac7e520da0d4c}{updateTotalShiftIfNeeded}}(\mbox{\hyperlink{structLoopState}{LoopState}}* state,}
\DoxyCodeLine{130                               \textcolor{keywordtype}{int} peakOffset,}
\DoxyCodeLine{131                               \mbox{\hyperlink{structAppResources}{AppResources}}* res,}
\DoxyCodeLine{132                               \mbox{\hyperlink{structCapConfig}{CapConfig}}* cfg);}

\end{DoxyCode}
