Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board
PrintError.h
Go to the documentation of this file.
1 #ifndef PrintError_h
2 #define PrintError_h
3 #include <stdint.h>
4 void printError(int16_t errorNum);
5 
6 #define _PRINT_ERROR_VOLTAGE_SOURCE_SETTING 0
7 #define _PRINT_ERROR_CURRENT_SOURCE_SETTING 1
8 #define _PRINT_ERROR_SERIAL_COMMAND 2
9 #define _PRINT_ERROR_NO_CALIBRATION_DATA_FOUND 3
10 #define _PRINT_ERROR_FACTORY_CALIBRATION_RESTORE_FAILED_CATASTROPHICALLY
11 
12 void printError(int16_t errorNum)
13 {
14  Serial.print(F("Error("));
15  Serial.print(errorNum);
16  Serial.println(")");
17 }
18 #endif
void printError(int16_t errorNum)
Definition: PrintError.h:12