7#include "./../types.hpp"
11#define TEENSY_MAX_ALLOCATION 125000
46 if(error_val <= error_limit)
55 template <
unsigned int Lin_channels, index_t Series_size,
unsigned int Bin_Ratio>
60 input_ok = input_ok && (Bin_Ratio >= 1);
62 input_ok = input_ok && (Series_size % Bin_Ratio == 0);
64 input_ok = input_ok && (Lin_channels > 0);
80 void static _assert_(
bool expression,
const char* __attribute__((unused)) message =
"")
Definition: errors.hpp:27
static Error_t Precison_Threshold(double error_val, double error_limit)
Receives error value and error threshold and returns an appropriate error state.
Definition: errors.hpp:44
static void _assert_(bool expression, const char *__attribute__((unused)) message="")
Custom assertion function.
Definition: errors.hpp:80
static Error_t Auto_MultiTau_Input_Validator()
Input Validator for MultiTau auto-correlator.
Definition: errors.hpp:56
static void Validate(const Error_t error)
Receives an error state and sets up the corresponding LED indicator.
Definition: errors.hpp:31
#define TEENSY_MAX_ALLOCATION
This file contain the Common Error Codes for Software-Hardware Interface. It defines the Error_t and ...
Definition: errors.hpp:11
Error_t
Enumarates the error codes thrown by the different modules.
Definition: errors.hpp:17
@ Counter_Underflow
Passed Value caused a counter underflow.
@ Input_Validation
Input validation failed.
@ Counter_Overflow
Passed Value caused a counter overflow.
@ Precision
Error generated when difference due to finite resolution is greater than acceptable.
@ Generic_Error
Only here for development and debugging.
LEDSet< 5 > LEDPanel({LED_BUILTIN, LED_RED, LED_GREEN, LED_WHITE, LED_BLUE})
const int ER_PRECISION_PIN
Definition: pins.hpp:23
const int ER_INPUT_VALIDATION
Definition: pins.hpp:25
const int ER_OVERFLOW_PIN
Definition: pins.hpp:24