1 /*
2  * This file is part of OpenCorsairLink.
3  * Copyright (C) 2017-2019  Sean Nelson <audiohacked@gmail.com>
4 
5  * OpenCorsairLink is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 2 of the License, or
8  * any later version.
9 
10  * OpenCorsairLink is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14 
15  * You should have received a copy of the GNU General Public License
16  * along with OpenCorsairLink.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 /*! \file lowlevel/asetek.h
20  *  \brief Lowlevel Routines for Asetek
21  */
22 #ifndef _LOWLEVEL_ASETEK_H
23 #define _LOWLEVEL_ASETEK_H
24 
25 #include <libusb.h>
26 
27 int
28 corsairlink_asetek_init( struct libusb_device_handle* dev_handle, uint8_t endpoint );
29 
30 int
31 corsairlink_asetek_deinit( struct libusb_device_handle* dev_handle, uint8_t endpoint );
32 
33 int
34 corsairlink_asetek_write(
35     struct libusb_device_handle* dev_handle, uint8_t endpoint, uint8_t* data, int length );
36 
37 int
38 corsairlink_asetek_read(
39     struct libusb_device_handle* dev_handle, uint8_t endpoint, uint8_t* data, int length );
40 
41 #endif
42