Subversion Repositories HomeAutomation

Rev

Rev 339 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

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