Debian Codegraph @

src/sensors/huey/huey-device.h

raw
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2013 Richard Hughes <[email protected]>
4 *
5 * Licensed under the GNU General Public License Version 2
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #ifndef __HUEY_DEVICE_H
23 #define __HUEY_DEVICE_H
24
25 #include <glib-object.h>
26 #include <gusb.h>
27 #include <colord-private.h>
28
29 G_BEGIN_DECLS
30
31 gboolean huey_device_send_data (GUsbDevice *device,
32 const guchar *request,
33 gsize request_len,
34 guchar *reply,
35 gsize reply_len,
36 gsize *reply_read,
37 GError **error)
38 G_GNUC_WARN_UNUSED_RESULT;
39 gboolean huey_device_set_leds (GUsbDevice *device,
40 guint8 value,
41 GError **error)
42 G_GNUC_WARN_UNUSED_RESULT;
43 gchar *huey_device_get_serial_number (GUsbDevice *device,
44 GError **error)
45 G_GNUC_WARN_UNUSED_RESULT;
46 gchar *huey_device_get_status (GUsbDevice *device,
47 GError **error)
48 G_GNUC_WARN_UNUSED_RESULT;
49 gchar *huey_device_get_unlock_string (GUsbDevice *device,
50 GError **error)
51 G_GNUC_WARN_UNUSED_RESULT;
52 gboolean huey_device_unlock (GUsbDevice *device,
53 GError **error)
54 G_GNUC_WARN_UNUSED_RESULT;
55 gdouble huey_device_get_ambient (GUsbDevice *device,
56 GError **error)
57 G_GNUC_WARN_UNUSED_RESULT;
58 gboolean huey_device_read_register_byte (GUsbDevice *device,
59 guint8 addr,
60 guint8 *value,
61 GError **error)
62 G_GNUC_WARN_UNUSED_RESULT;
63 gboolean huey_device_read_register_string (GUsbDevice *device,
64 guint8 addr,
65 gchar *value,
66 gsize len,
67 GError **error)
68 G_GNUC_WARN_UNUSED_RESULT;
69 gboolean huey_device_read_register_word (GUsbDevice *device,
70 guint8 addr,
71 guint32 *value,
72 GError **error)
73 G_GNUC_WARN_UNUSED_RESULT;
74 gboolean huey_device_read_register_float (GUsbDevice *device,
75 guint8 addr,
76 gfloat *value,
77 GError **error)
78 G_GNUC_WARN_UNUSED_RESULT;
79 gboolean huey_device_read_register_vector (GUsbDevice *device,
80 guint8 addr,
81 CdVec3 *value,
82 GError **error)
83 G_GNUC_WARN_UNUSED_RESULT;
84 gboolean huey_device_read_register_matrix (GUsbDevice *device,
85 guint8 addr,
86 CdMat3x3 *value,
87 GError **error)
88 G_GNUC_WARN_UNUSED_RESULT;
89
90 G_END_DECLS
91
92 #endif /* __HUEY_DEVICE_H */
93