Subversion Repositories HomeAutomation

Rev

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

Rev 339 Rev 341
Line 1... Line 1...
1
/*********************************************************************
1
/*********************************************************************
2
 *
2
 *
3
 *   Defines functs and funccs and other global definitions.
3
 *   Defines functs and funccs and other global definitions.
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:            $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/Include/funcdefs.h $
6
 * FileName:            $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/Include/funcdefs.h $
7
 * Last changed:    $LastChangedDate: 2007-02-25 20:51:08 +0100 (Sun, 25 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-02-25 21:15:41 +0100 (Sun, 25 Feb 2007) $
8
 * By:          $LastChangedBy: johboh $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 339 $
9
 * Revision:        $Revision: 341 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#include <typedefs.h>
12
#include <typedefs.h>
13
 
13
 
14
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
14
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
Line 75... Line 75...
75
                    pstDOOR_FREEZER=0x5, pstDOOR_REFRIGERATOR=0x6,
75
                    pstDOOR_FREEZER=0x5, pstDOOR_REFRIGERATOR=0x6,
76
                    pstBLIND_TR=0x7
76
                    pstBLIND_TR=0x7
77
                } PGM_SENSOR_TYPE;
77
                } PGM_SENSOR_TYPE;
78
// When CAN_PGM_PACKET.type==pcSENSOR
78
// When CAN_PGM_PACKET.type==pcSENSOR
79
//  When CAN_PGM_PACKET.id==pstIR
79
//  When CAN_PGM_PACKET.id==pstIR
-
 
80
//      data[3] = type
-
 
81
//      data[2] = toogle
-
 
82
//      data[1] = addr
80
//      data[0]...
83
//      data[0] = data
-
 
84
 
81
//  When CAN_PGM_PACKET.id==pstTEMP_*
85
//  When CAN_PGM_PACKET.id==pstTEMP_*
82
//      data[1] = integer value -127 to 127
86
//      data[1] = integer value -127 to 127
83
//      data[0] = decimal value 0-9
87
//      data[0] = decimal value 0-9
-
 
88
 
84
//  When CAN_PGM_PACKET.id==pstBLIND_*
89
//  When CAN_PGM_PACKET.id==pstBLIND_*
85
//      data[0] = Precent value 0-100
90
//      data[0] = Precent value 0-100
86
 
91
 
87
typedef enum _PGM_ACTUATOR_TYPE {  
92
typedef enum _PGM_ACTUATOR_TYPE {  
88
                    patBLIND_TR=0x7
93
                    patBLIND_TR=0x7