Jurica Resetar / aconno_LANC
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers aconno_LANC.h Source File

aconno_LANC.h

00001 /*
00002  * Made by Jurica Resetar @ aconno
00003  * jurica_resetar@yahoo.com
00004  * More info @ aconno.de
00005  *
00006  * All rights reserved
00007  *
00008  */
00009  
00010 #ifndef ACONNO_LANC_H
00011 #define ACONNO_LANC_H
00012  
00013 #include "mbed.h"
00014 
00015 #define MY_BUF_SIZE     13*8
00016 #define LANC_H          0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF    /* 13 B */
00017 #define LANC_H_L        0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF    /* 13 B */
00018 #define LANC_L          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00    /* 13 B */
00019 
00020 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};
00021 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};
00022 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};
00023 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
00024 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
00025 
00026 class aconno_lanc{
00027     public:
00028         init();
00029         sendCommand();
00030     private:
00031 }
00032  
00033 #endif