Root/atrf/tools/include/atspi.h

Source at commit c2dd23840ce5875deca09673fcb8abb8dc3a8e7a created 9 years 1 month ago.
By Werner Almesberger, Moved fw/ and tools/ into atrf/ as well.
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
32#endif /* !ATSPI_H */
33

Archive Download this file



interactive