4#include "./../types.hpp"
15template <index_t Series_Size,
bool hasMonitorChannel>
46 for(
unsigned int i = 0; i <= LoopFor; i++)
62 for (
int i = 0; i < size; i++)
72 float_t
inline norm() {
return 1;}
77 void ch_out() const __attribute__((always_inline))
80 Serial.write((char8cast_t*)&(
Channel_array),
sizeof(channel_t)*Series_Size);
90 for(
unsigned int i = 0; i < Series_Size; i++)
This is an implementation of Lin_ACorr_RT_Base for Teensy with (No normalisation or baseline subtract...
Definition: Lin_ACorr_RT_Teensy.hpp:17
channel_t Channel_array[Series_Size]
Defines a run-time polymorphic MonitorChannel object, which decomposes to ghost channel (UnitMeanChan...
Definition: Lin_ACorr_RT_Teensy.hpp:25
void ch_out_norm() const __attribute__((flatten))
Outputs the channel array to the Serial port after normalising it.
Definition: Lin_ACorr_RT_Teensy.hpp:87
Simpler_Circular_Buffer< counter_t, Series_Size > Series_array
Stores the data points in a circular Buffer.
Definition: Lin_ACorr_RT_Teensy.hpp:26
void ch_out() const __attribute__((always_inline))
Outputs the complete channel to the Serial port.
Definition: Lin_ACorr_RT_Teensy.hpp:77
float_t norm()
Returns the accumulate of the channel so far.
Definition: Lin_ACorr_RT_Teensy.hpp:72
void push_datum(counter_t datum)
Adds new single data point and processes it to the Channel.
Definition: Lin_ACorr_RT_Teensy.hpp:38
index_t Series_index
Stores the last active index → Post-increment.
Definition: Lin_ACorr_RT_Teensy.hpp:28
void push_data(const counter_t *container, const index_t size) __attribute__((flatten))
Repeatedly calls push_datum() on the given container of values, one at a time.
Definition: Lin_ACorr_RT_Teensy.hpp:60
LinACorrRTTeensy()
Default Constructor.
Definition: Lin_ACorr_RT_Teensy.hpp:32
Definition: simpler_circular_buffer.hpp:6
uint32_t counter_t
Data type received from the pulse counter. It is the fundamental type used for representing series da...
Definition: types.hpp:7
uint_fast8_t index_t
It is used as the array indices and thus determine the maximum size of the Channel_array and the Seri...
Definition: types.hpp:10