blob: 19b336e70a3aa0014fa87d40a41c819581e00f1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/**
* Copyright (C) 2019 Johan van der Vyver
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VOLTRONIC__DEV__USB__H__
#define __VOLTRONIC__DEV__USB__H__
#include "voltronic_dev.h"
/**
* Create an opaque pointer to a voltronic device connected over USB
*
* vendor_id - Device vendor id to search for. ie. 0x0665
* product_id - Device product id to search for. ie. 0x5161
*
* Returns an opaque pointer to a voltronic device or 0 if an error occurred
*
* Function sets errno (POSIX)/LastError (Windows) to approriate error on failure
*/
voltronic_dev_t voltronic_usb_create(
const unsigned int vendor_id,
const unsigned int product_id);
#endif
|