2011-12-25 12:35:51 +01:00
|
|
|
/*
|
2014-10-15 21:39:06 +02:00
|
|
|
* økoyono MiniLEDCube
|
2011-12-25 12:35:51 +01:00
|
|
|
*
|
|
|
|
* By Kai Lauterbach (klaute at web dot de) 11/2011
|
|
|
|
*
|
|
|
|
* Based on http://mosfetkiller.de/?s=miniledcube
|
|
|
|
*
|
|
|
|
* License: General Public License (GPL v3)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LEDCUBE_H_INCLUDED__
|
|
|
|
#define __LEDCUBE_H_INCLUDED__
|
|
|
|
|
2011-12-22 19:06:59 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <usb.h> /* this is libusb */
|
|
|
|
|
|
|
|
#include "opendevice.h" /* common code moved to separate module */
|
|
|
|
|
2011-12-28 01:19:02 +01:00
|
|
|
#include "globals.h"
|
|
|
|
|
|
|
|
#include "../firmware/globals.h"
|
2011-12-22 19:06:59 +01:00
|
|
|
#include "../firmware/requests.h" /* custom request numbers */
|
|
|
|
#include "../firmware/usbconfig.h" /* device's VID/PID and names */
|
|
|
|
|
|
|
|
usb_dev_handle *_lc_handle = NULL;
|
|
|
|
|
|
|
|
const unsigned char _lc_rawVid[2] = {USB_CFG_VENDOR_ID},
|
|
|
|
_lc_rawPid[2] = {USB_CFG_DEVICE_ID};
|
|
|
|
|
|
|
|
char _lc_vendor[] = {USB_CFG_VENDOR_NAME, 0},
|
|
|
|
_lc_product[] = {USB_CFG_DEVICE_NAME, 0};
|
|
|
|
|
|
|
|
char _lc_buffer[4];
|
|
|
|
|
|
|
|
int _lc_vid,
|
|
|
|
_lc_pid;
|
|
|
|
|
2011-12-25 12:35:51 +01:00
|
|
|
int lc_setFrame(unsigned long);
|
|
|
|
int lc_setMode(int);
|
2011-12-25 13:50:54 +01:00
|
|
|
int lc_saveFrame(unsigned long, int, int);
|
2011-12-25 12:35:51 +01:00
|
|
|
int lc_init(void);
|
|
|
|
int lc_close(void);
|
|
|
|
|
|
|
|
#endif // __LEDCUBE_H_INCLUDED__
|
2011-12-22 19:06:59 +01:00
|
|
|
|