Sony Lanc protocol lib.
Diff: aconno_LANC.h
- Revision:
- 0:8c14d4021035
diff -r 000000000000 -r 8c14d4021035 aconno_LANC.h --- /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