atcan.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (c) 2005 FOCUS Software Engineering Pty Ltd <www.focus-sw.com>
  3. * Copyright (c) 2005 proconX <www.proconx.com>
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. * 3. Neither the name of the copyright holders nor the names of
  15. * contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
  19. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  21. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
  22. * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  23. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  24. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  25. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  26. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  28. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29. * SUCH DAMAGE.
  30. *
  31. * For additional information see http://www.ethernut.de/
  32. *
  33. */
  34. /*!
  35. * \file include/dev/atcan.h
  36. * \brief Header for Atmel's internal Full CAN controller driver
  37. */
  38. /*!
  39. * \defgroup xgCanAvr AT90CAN128 CAN device
  40. * \ingroup xgNutArchAvrDev
  41. * \brief Driver for Atmel's internal Full CAN controller
  42. */
  43. /*@{*/
  44. #ifndef _ATCAN_H_
  45. #define _ATCAN_H_
  46. #include <dev/can_dev.h>
  47. extern NUTDEVICE devAtCan;
  48. #if defined(__AVR_AT90CAN128__)
  49. /* Fails to compile on ARM and ICCAVR. */
  50. int8_t AtCanEnableRx(uint8_t noOfMsgObjs,
  51. uint32_t id, int8_t idIsExt, int8_t idRemTag,
  52. uint32_t mask, int8_t maskIsExt, int8_t maskRemTag);
  53. #endif
  54. #endif
  55. /*@}*/