mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-23 18:26:47 +02:00
d0fb1a8992
- atrf-proxy/PROTOCOL, atrf-proxy/atrf-proxy.c (cmd_zero): removed the POLL command - lib/atben.c (atben_driver): don't export atben_interrupt anymore (we still use it internally) - lib/atnet.c (atnet_interrupt, atnet_driver): removed atnet_interrupt - lib/atusb-common.h (atusb_interrupt), lib/atusb-common.h (atusb_interrupt), lib/atusb-spi.c (atusb_spi_driver), lib/atusb.c (atusb_driver): removed atusb_interrupt - lib/driver.h (struct atrf_driver): removed "interrupt" - include/atrf.h (atrf_interrupt), lib/atrf.c (atrf_interrupt): removed
41 lines
1.0 KiB
C
41 lines
1.0 KiB
C
/*
|
|
* lib/atusb-common.h - ATUSB access functions shared by all ATUSB drivers
|
|
*
|
|
* Written 2010-2011 by Werner Almesberger
|
|
* Copyright 2010-2011 Werner Almesberger
|
|
*
|
|
* 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 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
|
|
#ifndef ATUSB_COMMON_H
|
|
#define ATUSB_COMMON_H
|
|
|
|
|
|
#define FROM_DEV ATUSB_FROM_DEV(0)
|
|
#define TO_DEV ATUSB_TO_DEV(0)
|
|
|
|
|
|
struct atusb_dsc {
|
|
usb_dev_handle *dev;
|
|
int error;
|
|
};
|
|
|
|
|
|
int atusb_error(void *handle);
|
|
int atusb_clear_error(void *handle);
|
|
void *atusb_open(const char *arg);
|
|
void atusb_close(void *handle);
|
|
void atusb_reset(void *handle);
|
|
void atusb_reset_rf(void *handle);
|
|
void atusb_test_mode(void *handle);
|
|
void atusb_slp_tr(void *handle, int on, int pulse);
|
|
int atusb_interrupt_wait(void *handle, int timeout_ms);
|
|
|
|
int atusb_set_clkm(void *handle, int mhz);
|
|
|
|
#endif /* !ATUSB_COMMON_H */
|