diff options
author | Alex <colomar.6.4.3@gmail.com> | 2018-12-19 14:00:51 +0100 |
---|---|---|
committer | Alex <colomar.6.4.3@gmail.com> | 2018-12-19 14:00:51 +0100 |
commit | 40c0fa4f843784bce019be3150b9bad60254a234 (patch) | |
tree | a212ec1bfa125b4d39889f74a33887ffe5a9fdd1 | |
parent | e5c5356df074ea679c8b9363e782dfbaee3a2b08 (diff) |
Add lighter proc
-rw-r--r-- | modules/proc/inc/proc_lighter.h | 48 | ||||
-rw-r--r-- | modules/proc/inc/proc_lighter.hpp | 61 |
2 files changed, 109 insertions, 0 deletions
diff --git a/modules/proc/inc/proc_lighter.h b/modules/proc/inc/proc_lighter.h new file mode 100644 index 0000000..077bf56 --- /dev/null +++ b/modules/proc/inc/proc_lighter.h @@ -0,0 +1,48 @@ +/******************************************************************************
+ * Copyright (C) 2018 Alejandro Colomar Andrés *
+ ******************************************************************************/
+
+
+/******************************************************************************
+ ******* include guard ********************************************************
+ ******************************************************************************/
+# ifndef VA_PROC_LIGHTER_H
+ # define VA_PROC_LIGHTER_H
+
+
+/******************************************************************************
+ ******* macros ***************************************************************
+ ******************************************************************************/
+
+
+/******************************************************************************
+ ******* enums ****************************************************************
+ ******************************************************************************/
+ enum Proc_Label {
+ LIGHTER_OK,
+ LIGHTER_NOK_LIGHTER,
+ LIGHTER_NOK_SIZE
+ };
+
+
+/******************************************************************************
+ ******* variables ************************************************************
+ ******************************************************************************/
+
+
+/******************************************************************************
+ ******* functions ************************************************************
+ ******************************************************************************/
+ int proc_lighter_calibrate (void);
+ int proc_lighter (void);
+
+
+/******************************************************************************
+ ******* include guard ********************************************************
+ ******************************************************************************/
+# endif /* proc_lighter.h */
+
+
+/******************************************************************************
+ ******* end of file **********************************************************
+ ******************************************************************************/
diff --git a/modules/proc/inc/proc_lighter.hpp b/modules/proc/inc/proc_lighter.hpp new file mode 100644 index 0000000..9e5529a --- /dev/null +++ b/modules/proc/inc/proc_lighter.hpp @@ -0,0 +1,61 @@ +/******************************************************************************
+ * Copyright (C) 2018 Alejandro Colomar Andrés *
+ ******************************************************************************/
+
+
+/******************************************************************************
+ ******* include guard ********************************************************
+ ******************************************************************************/
+# ifndef VA_PROC_LIGHTER_H
+ # define VA_PROC_LIGHTER_H
+
+
+/******************************************************************************
+ ******* macros ***************************************************************
+ ******************************************************************************/
+
+
+/******************************************************************************
+ ******* enums ****************************************************************
+ ******************************************************************************/
+ enum Proc_Lighter {
+ LIGHTER_OK,
+ LIGHTER_NOK_PATTERN,
+ LIGHTER_NOK_LIGHTER,
+ LIGHTER_NOK_SIZE
+ };
+
+
+/******************************************************************************
+ ******* C wrapper ************************************************************
+ ******************************************************************************/
+extern "C" {
+
+
+/******************************************************************************
+ ******* variables ************************************************************
+ ******************************************************************************/
+
+
+/******************************************************************************
+ ******* functions ************************************************************
+ ******************************************************************************/
+ int proc_lighter_calibrate (void);
+ int proc_lighter (void);
+
+
+/******************************************************************************
+ ******* C wrapper ************************************************************
+ ******************************************************************************/
+} /* extern "C" */
+
+
+/******************************************************************************
+ ******* include guard ********************************************************
+ ******************************************************************************/
+# endif /* proc_lighter.hpp */
+
+
+/******************************************************************************
+ ******* end of file **********************************************************
+ ******************************************************************************/
|