DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
Classes | Macros | Enumerations
errors.hpp File Reference
#include "pins.hpp"
#include "./../types.hpp"
#include "ledpanel.hpp"
#include <Arduino.h>
Include dependency graph for errors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Errors
 

Macros

#define PIT_CHANNEL_IN_USE   2
 
#define TEENSY_MAX_ALLOCATION   125000
 This file contain the Common Error Codes for Software-Hardware Interface. It defines the Error_t and namespace Errors that are used to handle the errors and interact with the LED dashboard. More...
 

Enumerations

enum class  Error_t {
  Success = 0 , Counter_Overflow , Counter_Underflow , Precision ,
  Input_Validation , Generic_Error
}
 Enumarates the error codes thrown by the different modules. More...
 

Macro Definition Documentation

◆ PIT_CHANNEL_IN_USE

#define PIT_CHANNEL_IN_USE   2

◆ TEENSY_MAX_ALLOCATION

#define TEENSY_MAX_ALLOCATION   125000

This file contain the Common Error Codes for Software-Hardware Interface. It defines the Error_t and namespace Errors that are used to handle the errors and interact with the LED dashboard.

Author
Yatharth Bhasin (github → yatharthb97) Maximum Allocations of 32-bit integers allowed on the microcontroller Teensy.

Enumeration Type Documentation

◆ Error_t

enum class Error_t
strong

Enumarates the error codes thrown by the different modules.

Enumerator
Success 

No error.

Counter_Overflow 

Passed Value caused a counter overflow.

Counter_Underflow 

Passed Value caused a counter underflow.

Precision 

Error generated when difference due to finite resolution is greater than acceptable.

Input_Validation 

Input validation failed.

Generic_Error 

Only here for development and debugging.