Subversion Repositories HomeAutomation

Rev

Rev 56 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*********************************************************************
  2.  *
  3.  *                  CAN.c header file
  4.  *
  5.  *********************************************************************
  6.  * FileName:        CAN.h
  7.  *
  8.  * Author               Date    Comment
  9.  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10.  * Johan Böhlin     21-10-06    Original        (Rev 1.0)
  11.  ********************************************************************/
  12.  
  13. #ifndef CAN_H
  14. #define CAN_H
  15.  
  16. #include <CANdefs.h>
  17. #include <compiler.h>
  18. #include <typedefs.h>
  19.  
  20.  
  21. typedef struct _CAN_MESSAGE
  22. {
  23.    
  24.     DWORD ident;
  25.     BOOL extended;
  26.     BYTE data_length;
  27.     BYTE data[8];
  28. } CAN_MESSAGE;
  29.  
  30.  
  31.  
  32.  
  33. void canInit(void);
  34. void canISR(void);
  35. void canParse(CAN_MESSAGE cm);
  36. BOOL canSendMessage(CAN_MESSAGE cm);
  37.  
  38. #endif //CAN.h
  39.