DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
Variables
global.hpp File Reference
#include "./../code/software/multi_tau.hpp"
#include "./../code/software/histogram.hpp"
#include "./../code/hardware/pit.hpp"
#include "./../code/hardware/qtmr1.hpp"
#include "./../code/hardware/interarrival.hpp"
#include "./../code/hardware/perf_counter.hpp"
Include dependency graph for global.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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
 Stores the value read from the counter. More...
 
volatile bool Update_flag
 Indicates if a new value has arrived from the counting module. More...
 
volatile unsigned int Update_count
 Stores the number of updates made on the correlator channels since the last serialout. More...
 
uint32_t SerialOut_After
 
const double Gate_time_us
 Serial output is done after these many updates (default → overriden in the setup function). More...
 
const double Allowed_period_error_us
 The gate time of TTL_C in microseconds (us) More...
 
const int32_t sync_code
 Gate time precision error due to finite precision of timers. More...
 
float array [CHANNEL_SIZE]
 

Variable Documentation

◆ Allowed_period_error_us

const double Allowed_period_error_us
extern

The gate time of TTL_C in microseconds (us)

◆ array

float array[CHANNEL_SIZE]
extern

◆ Counter_val

volatile counter_t Counter_val
extern

Stores the value read from the counter.

◆ Gate_time_us

const double Gate_time_us
extern

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

◆ multitau

MultiTauACorrRTTeensy<LIN_CORRS, SERIES_SIZE, BIN_RATIO> multitau
extern

◆ PI_t

PI_t Resource.

◆ SerialOut_After

uint32_t SerialOut_After
extern

◆ sync_code

const int32_t sync_code
extern

Gate time precision error due to finite precision of timers.

◆ TTL_c

TMR1Controller TTL_c
extern

TTL_c Resource.

◆ Update_count

volatile unsigned int Update_count
extern

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

◆ Update_flag

volatile bool Update_flag
extern

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