Subversion Repositories HomeAutomation

Rev

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

Rev 326 Rev 344
Line 1... Line 1...
1
/*
1
/*
2
 * Defines functs, funccs and other global definitions
2
 * Defines functs, funccs and other global definitions
3
 * This is the one for eqnet :)
-
 
4
 *
3
 *
5
 * IDENT: <CLASS><TYPE><SID> DATA: <data7>...<data0>
4
 * IDENT: <CLASS><TYPE><SID> DATA: <data7>...<data0>
6
 *
5
 *
7
 * <CLASS>, 4 bits = Function type.
6
 * <CLASS>, 4 bits = Function type.
8
 * <TYPE>, 17 bits = Function code.
7
 * <TYPE>, 17 bits = Function code.
Line 82... Line 81...
82
#define ACT_TYPE_SERVO      0x03L
81
#define ACT_TYPE_SERVO      0x03L
83
#define ACT_TYPE_BLINDS     ACT_TYPE_SERVO
82
#define ACT_TYPE_BLINDS     ACT_TYPE_SERVO
84
#define ACT_TYPE_LCD        0x04L
83
#define ACT_TYPE_LCD        0x04L
85
#define ACT_TYPE_IRTRANS    0x05L
84
#define ACT_TYPE_IRTRANS    0x05L
86
 
85
 
-
 
86
/* ACT LCD 12 bits <ACTION><SIZE> 0xFFFL
-
 
87
 *
-
 
88
 * <ACTION>, 4 bits = Type och action.
-
 
89
 * <SIZE>, 8 bits = Size of display.
-
 
90
 */
-
 
91
#define LCD_ACTION_MASK 0xF00L /* bit[12..8] */
-
 
92
#define LCD_ACTION_MASK 0x0FFL /* bit[7..0] */
-
 
93
 
-
 
94
#define LCD_ACTION_BITS 8
-
 
95
#define LCD_ACTION_BITS 0
-
 
96
 
-
 
97
 
-
 
98
/* <ACTION> 4 bits 0xFL */
-
 
99
 
-
 
100
#define LCD_ACTION_CLR      0x0L
-
 
101
#define LCD_ACTION_CURS     0x1L
-
 
102
#define LCD_ACTION_TEXT     0x2L
-
 
103
#define LCD_ACTION_SIZE     0x3L
-
 
104
 
-
 
105
 
-
 
106
/* <SIZE> 8 bits 0xFFL */
-
 
107
#define LCD_SIZE_ALL    0x00L
-
 
108
#define LCD_SIZE_2x16   0x02L
-
 
109
#define LCD_SIZE_4x20   0x10L
87
 
110
 
88
/*************************************************************
111
/*************************************************************
89
 * <SID> 8 bits 0xFFL
112
 * <SID> 8 bits 0xFFL
90
 ************************************************************/
113
 ************************************************************/
91
 
114