# My Digital Signal Controller Library # The objective of MyDSC library is to implement controllers with help digital signal processors, digital signal controllers or mixed signals processors.

Dependents:   mydsc_sampling_example mydsc_sampling_example mydsc-serial-example mydsc-nonblocking-example

Revision:
4:90c3f1288d41
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/mydsc_error.h	Sat Mar 28 16:09:15 2020 +0000
@@ -0,0 +1,34 @@
+/** @file: mydsc_error.h
+    @author Gastón H. Salazar-Silva <gaston_salazar@yahoo.com>
+    
+    @brief A very basic error reporting system.
+**/
+
+#ifndef MYDSC_ERROR_H
+#define MYDSC_ERROR_H
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/// Error conditions on looking-up a key, or trying to setting the value.
+
+typedef enum {
+    MYDSC_SUCCESS,
+    MYDSC_KVP_NO_SET,
+    MYDSC_KVP_NO_KEY,
+    MYDSC_KVP_WRONG_VALUE
+} mydsc_errno_t;
+
+extern mydsc_errno_t mydsc_errno;
+
+extern char *mydsc_error[];
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // MYDSC_ERROR_H