Subversion Repositories HomeAutomation

Rev

Rev 73 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 73 Rev 79
Line 7... Line 7...
7
 *
7
 *
8
 * Author               Date    Comment
8
 * Author               Date    Comment
9
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
 * Johan Böhlin     21-10-06    Original        (Rev 1.0)
10
 * Johan Böhlin     21-10-06    Original        (Rev 1.0)
11
 ********************************************************************/
11
 ********************************************************************/
-
 
12
// $IDI$
-
 
13
 
12
 
14
 
13
#ifndef CAN_H
15
#ifndef CAN_H
14
#define CAN_H
16
#define CAN_H
15
 
17
 
16
#include <CANdefs.h>
18
#include <CANdefs.h>
Line 48... Line 50...
48
#define MY_NID 0x00
50
#define MY_NID 0x00
49
 
51
 
50
#define ADDRL_INDEX 0
52
#define ADDRL_INDEX 0
51
#define ADDRH_INDEX 1
53
#define ADDRH_INDEX 1
52
#define ADDRU_INDEX 2
54
#define ADDRU_INDEX 2
53
#define RID_INDEX 4
55
#define RID_LOW_INDEX 4
-
 
56
#define RID_HIGH_INDEX 5
54
#define ERR_INDEX 4
57
#define ERR_INDEX 4
55
 
58
 
56
//<ERR> 8 bitar feltyp
59
//<ERR> 8 bitar feltyp
57
#define ERR_NO_ERROR 0x00 //= inget fel
60
#define ERR_NO_ERROR 0x00 //= inget fel
58
#define ERR_ERROR 0x01 //= fel
61
#define ERR_ERROR 0x01 //= fel