Sony Lanc protocol lib.

Files at this revision

API Documentation at this revision

Comitter:
jurica238814
Date:
Thu Jun 28 09:00:33 2018 +0000
Commit message:
Dummy commit. Does not compile (refactoring in progress...?)

Changed in this revision

aconno_LANC.cpp Show annotated file Show diff for this revision Revisions of this file
aconno_LANC.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/aconno_LANC.cpp	Thu Jun 28 09:00:33 2018 +0000
@@ -0,0 +1,8 @@
+/*
+ * Made by Jurica Resetar @ aconno
+ * jurica_resetar@yahoo.com
+ * More info @ aconno.de
+ *
+ * All rights reserved
+ *
+ */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/aconno_LANC.h	Thu Jun 28 09:00:33 2018 +0000
@@ -0,0 +1,33 @@
+/*
+ * Made by Jurica Resetar @ aconno
+ * jurica_resetar@yahoo.com
+ * More info @ aconno.de
+ *
+ * All rights reserved
+ *
+ */
+ 
+#ifndef ACONNO_LANC_H
+#define ACONNO_LANC_H
+ 
+#include "mbed.h"
+
+#define MY_BUF_SIZE     13*8
+#define LANC_H          0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF    /* 13 B */
+#define LANC_H_L        0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF    /* 13 B */
+#define LANC_L          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00    /* 13 B */
+
+uint8_t normalCommand[MY_BUF_SIZE] __attribute__ ((aligned (32))) = {LANC_L,LANC_L,LANC_L,LANC_H, LANC_H,LANC_L,LANC_L,LANC_L};
+uint8_t zoomCommand[MY_BUF_SIZE] __attribute__ ((aligned (32))) = {LANC_L,LANC_L,LANC_L,LANC_H, LANC_L,LANC_H,LANC_L,LANC_L};
+uint8_t startStop[MY_BUF_SIZE] __attribute__ ((aligned (32))) = {LANC_H,LANC_H,LANC_L,LANC_L,LANC_H,LANC_H,LANC_L,LANC_L};
+uint8_t zoomIn[MY_BUF_SIZE] __attribute__ ((aligned (32))) = {LANC_H,LANC_L,LANC_L,LANC_H,LANC_H,LANC_H,LANC_L,LANC_L};     // Tele
+uint8_t zoomOut[MY_BUF_SIZE] __attribute__ ((aligned (32))) = {LANC_H,LANC_H,LANC_L,LANC_H,LANC_H,LANC_H,LANC_L,LANC_L};    // Wide
+
+class aconno_lanc{
+    public:
+        init();
+        sendCommand();
+    private:
+}
+ 
+#endif