at86rf230.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * AT86RF230/RF231 driver
  3. *
  4. * Copyright (C) 2009-2012 Siemens AG
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2
  8. * as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. *
  19. * Written by:
  20. * Dmitry Eremin-Solenikov <dmitry.baryshkov@siemens.com>
  21. */
  22. #ifndef AT86RF230_H
  23. #define AT86RF230_H
  24. struct at86rf230_platform_data {
  25. int rstn;
  26. int slp_tr;
  27. int dig2;
  28. /* Setting the irq_type will configure the driver to request
  29. * the platform irq trigger type according to the given value
  30. * and configure the interrupt polarity of the device to the
  31. * corresponding polarity.
  32. *
  33. * Allowed values are: IRQF_TRIGGER_RISING, IRQF_TRIGGER_FALLING,
  34. * IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW
  35. *
  36. * Setting it to 0, the driver does not touch the trigger type
  37. * configuration of the interrupt and sets the interrupt polarity
  38. * of the device to high active (the default value).
  39. */
  40. int irq_type;
  41. };
  42. #endif