Subversion Repositories HomeAutomation

Rev

Rev 363 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*********************************************************************
  2.  *
  3.  *   CAN module header file with prototypes and message typedef
  4.  *
  5.  *********************************************************************
  6.  * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/branches/modules/EmbeddedSoftware/PIC/canBase/Include/CAN.h $
  7.  * Last changed:    $LastChangedDate: 2007-03-13 18:29:20 +0100 (Tue, 13 Mar 2007) $
  8.  * By:              $LastChangedBy: johboh $
  9.  * Revision:        $Revision: 363 $
  10.  ********************************************************************/
  11.  
  12. #ifndef CAN_H
  13. #define CAN_H
  14.  
  15. #include <CANdefs.h>
  16. #include <compiler.h>
  17. #include <typedefs.h>
  18. #include <funcdefs.h>
  19.  
  20. typedef enum {PRIO_LOWEST=0,PRIO_LOW=1,PRIO_HIGH=2,PRIO_HIGEST=3} CAN_PRIORITY;
  21.  
  22.  
  23. void canInit(void);
  24. void canISR(void);
  25. void canParse(CAN_PACKET cp);
  26. BOOL canSendMessage(CAN_PACKET cp, CAN_PRIORITY prio);
  27. BYTE myId(void);
  28.  
  29. #endif //CAN.h
  30.