Subversion Repositories HomeAutomation

Rev

Rev 849 | Rev 867 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 849 Rev 852
Line 51... Line 51...
51
 
51
 
52
#define CAN_TST             0x0FUL
52
#define CAN_TST             0x0FUL
53
//--------------------------------------------------------------------
53
//--------------------------------------------------------------------
54
 
54
 
55
 
55
 
-
 
56
//--------------------------------------------------- //
56
// New class definitions for modulebased applications
57
// New class definitions for modulebased applications //
57
//-----------------------------------
58
//--------------------------------------------------- //
-
 
59
 
58
#define DIR_FROM_OWNER          1       // If a module sends a packet
60
// Module classes
59
#define DIR_TO_OWNER            0       // If a module sends a packet to another module
-
 
60
//-----------------------------------
61
//------------------------------------
61
#define CAN_CLASS_MODULE_NMT        0x0BUL      // If we move the functionality for this to BIOS we should use CAN_NMT instead
62
#define CAN_CLASS_MODULE_NMT        0x0BUL      // If we move the functionality for this to BIOS we should use CAN_NMT instead
62
#define CAN_CMD_MODULE_NMT_LIST     0x00UL      // Tell the application to report which modules it has
-
 
63
//-----------------------------------
-
 
64
#define CAN_CLASS_MODULE_ACT        0x0CUL
63
#define CAN_CLASS_MODULE_ACT        0x0CUL
65
//------------------------------------
-
 
66
#define CAN_CLASS_MODULE_SNS        0x0DUL
64
#define CAN_CLASS_MODULE_SNS        0x0DUL
-
 
65
#define CAN_CLASS_MODULE_DEF        0x0EUL
-
 
66
 
-
 
67
// Module frame direction
67
//------------------------------------
68
//------------------------------------
-
 
69
#define DIR_FROM_OWNER          1       // If a module sends a packet
-
 
70
#define DIR_TO_OWNER            0       // If a module sends a packet to another module
68
 
71
 
-
 
72
// Module types
69
//------------------------------------
73
//------------------------------------
-
 
74
#define CAN_TYPE_MODULE_def_default 0x01
70
#define CAN_TYPE_MODULE_sns_ds18x20     0x03
75
#define CAN_TYPE_MODULE_sns_ds18x20 0x03
71
#define CAN_TYPE_MODULE_sns_FOST02      0x05
76
#define CAN_TYPE_MODULE_sns_FOST02  0x05
72
 
-
 
73
#define CAN_TYPE_MODULE_ACT_hd44789     0x04
-
 
74
#define CAN_TYPE_MODULE_sns_BusVoltage      0x06
77
#define CAN_TYPE_MODULE_sns_BusVoltage  0x06
-
 
78
#define CAN_TYPE_MODULE_act_hd44789 0x04
75
 
79
 
-
 
80
// Module commands
-
 
81
//------------------------------------
-
 
82
#define CAN_CMD_MODULE_NMT_LIST     0x00UL      // Tell the application to report which modules it has
76
 
83
 
77
 
84
 
78
 
85
 
79
 
86
 
80
//---------------------------------------------------------------------------
87
//---------------------------------------------------------------------------