00001 /* 00002 * This file is part of the sigrok project. 00003 * 00004 * Copyright (C) 2010 Sven Peter <sven@fail0verflow.com> 00005 * Copyright (C) 2010 Haxx Enterprises <bushing@gmail.com> 00006 * All rights reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or 00009 * without modification, are permitted provided that the following 00010 * conditions are met: 00011 * 00012 * * Redistributions of source code must retain the above copyright notice, 00013 * this list of conditions and the following disclaimer. 00014 * 00015 * * Redistributions in binary form must reproduce the above copyright notice, 00016 * this list of conditions and the following disclaimer in the documentation 00017 * and/or other materials provided with the distribution. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00022 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 00023 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00024 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00025 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00026 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00027 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00028 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 00029 * THE POSSIBILITY OF SUCH DAMAGE. 00030 */ 00031 00032 #ifndef LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_GL_USB_H 00033 #define LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_GL_USB_H 00034 00035 #include <libusb.h> 00036 #include "sigrok.h" 00037 00038 SR_PRIV int gl_read_bulk(libusb_device_handle *devh, void *buffer, 00039 unsigned int size); 00040 SR_PRIV int gl_reg_write(libusb_device_handle *devh, unsigned int reg, 00041 unsigned int val); 00042 SR_PRIV int gl_reg_read(libusb_device_handle *devh, unsigned int reg); 00043 00044 #endif