Root/tools/include/atspi.h

Source at commit 36e73c4abb520aa65722ef5e1483bcb8b75bf9f4 created 9 years 1 month ago.
By Werner Almesberger, Moved tools/ out of atrf, in preparation of merge with atusd.
1/*
2 * include/atspi.h - ATSPI access functions library
3 *
4 * Written 2010 by Werner Almesberger
5 * Copyright 2010 Werner Almesberger
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
13#ifndef ATSPI_H
14#define ATSPI_H
15
16#include <stdint.h>
17#include <usb.h>
18
19
20int atspi_error(void);
21int atspi_clear_error(void);
22
23usb_dev_handle *atspi_open(void);
24void atspi_close(usb_dev_handle *dev);
25
26void atspi_reset(usb_dev_handle *dev);
27void atspi_reset_rf(usb_dev_handle *dev);
28
29void atspi_reg_write(usb_dev_handle *dev, uint8_t reg, uint8_t value);
30uint8_t atspi_reg_read(usb_dev_handle *dev, uint8_t reg);
31
32void atspi_buf_write(usb_dev_handle *dev, const void *buf, int size);
33int atspi_buf_read(usb_dev_handle *dev, void *buf, int size);
34
35#endif /* !ATSPI_H */
36

Archive Download this file



interactive