DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
Variables
global.cpp File Reference
#include "global.hpp"
Include dependency graph for global.cpp:

Variables

MultiTauACorrRTTeensy< LIN_CORRS, SERIES_SIZE, BIN_RATIO > multitau
 
PITController< PIT_CHANNEL_IN_USEPI_t
 PI_t Resource. More...
 
TMR1Controller TTL_c
 TTL_c Resource. More...
 
volatile counter_t Counter_val = 0
 Stores the value read from the counter. More...
 
volatile bool Update_flag = false
 Indicates if a new value has arrived from the counting module. More...
 
volatile unsigned int Update_count = 0
 Stores the number of updates made on the correlator channels since the last serialout. More...
 
uint32_t SerialOut_After = 100
 
const double Gate_time_us = GATE_TIME_US
 Serial output is done after these many updates (default → overriden in the setup function). More...
 
const double Allowed_period_error_us = ALLOWED_GATE_TIME_ERROR_US
 The gate time of TTL_C in microseconds (us) More...
 
const int32_t sync_code = SYNC_CODE
 Gate time precision error due to finite precision of timers. More...
 
float array [CHANNEL_SIZE] = {0}
 

Variable Documentation

◆ Allowed_period_error_us

const double Allowed_period_error_us = ALLOWED_GATE_TIME_ERROR_US

The gate time of TTL_C in microseconds (us)

◆ array

float array[CHANNEL_SIZE] = {0}

◆ Counter_val

volatile counter_t Counter_val = 0

Stores the value read from the counter.

◆ Gate_time_us

const double Gate_time_us = GATE_TIME_US

Serial output is done after these many updates (default → overriden in the setup function).

◆ multitau

MultiTauACorrRTTeensy<LIN_CORRS, SERIES_SIZE, BIN_RATIO> multitau

◆ PI_t

PI_t Resource.

◆ SerialOut_After

uint32_t SerialOut_After = 100

◆ sync_code

const int32_t sync_code = SYNC_CODE

Gate time precision error due to finite precision of timers.

◆ TTL_c

TTL_c Resource.

◆ Update_count

volatile unsigned int Update_count = 0

Stores the number of updates made on the correlator channels since the last serialout.

◆ Update_flag

volatile bool Update_flag = false

Indicates if a new value has arrived from the counting module.