6#include "./../code/hardware/qtmr1.hpp"
8#include "./../code/hardware/ledpanel.hpp"
9#include "./../code/software/multi_tau.hpp"
10#include "./../code/hardware/qtmr1.hpp"
59 #if ENABLE_SYNC_CODE == 1
60 Serial.write((uint8_t*)&(
sync_code),
sizeof(int32_t));
65 IMXRT_TMR1.CH[0].CNTR = 0;
void init_pins() __attribute__((always_inline))
Sets the Primary and Secondary inputs for Capture Mode, routed through XBAR. Reference XBAR and IOMUX...
Definition: qtmr1.hpp:185
void start() __attribute__((always_inline))
Starts up-counting from the set counter value.
Definition: qtmr1.hpp:24
void init() __attribute__((always_inline))
Definition: qtmr1.hpp:107
void loop_interarrival()
Definition: featureline2.hpp:42
void setup_interarrival()
Definition: featureline2.hpp:13
const double Gate_time_us
Serial output is done after these many updates (default → overriden in the setup function).
Definition: global.cpp:29
TMR1Controller TTL_c
TTL_c Resource.
Definition: global.cpp:19
uint32_t SerialOut_After
Definition: global.cpp:28
const int32_t sync_code
Gate time precision error due to finite precision of timers.
Definition: global.cpp:31
volatile unsigned int Update_count
Stores the number of updates made on the correlator channels since the last serialout.
Definition: global.cpp:25
volatile counter_t Counter_val
Stores the value read from the counter.
Definition: global.cpp:23
LEDSet< 5 > LEDPanel({LED_BUILTIN, LED_RED, LED_GREEN, LED_WHITE, LED_BLUE})
const int LED_WHITE
Definition: pins.hpp:9
const int LED_BLUE
Definition: pins.hpp:7
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
uint32_t serial_max_count(double Gate_time_us, double Serial_out_time_ms)
Definition: utilities.cpp:7