-
Notifications
You must be signed in to change notification settings - Fork 8
/
niscan_dfs.h
58 lines (43 loc) · 1.26 KB
/
niscan_dfs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* NISSAN CONTROL DEFINITIONS
*/
#define NIS_AC1_IDX 0x54A
#define NIS_AC1_TEMP_IDX 4
#define NIS_AC1_TEMP_MSK B11111111
#define NIS_AC2_IDX 0x54B
#define NIS_AC2_AUTO_IDX 1
#define NIS_AC2_AUTO_MSK B00001110
#define NIS_AC2_AUTO_ON B00000110
#define NIS_AC2_AUTO_OFF B00001000
#define NIS_AC2_MODE_IDX 2
#define NIS_AC2_MODE_OFF 0x80
#define NIS_AC2_MODE_FEET 0x98
#define NIS_AC2_MODE_WINDFEET 0xA0
#define NIS_AC2_MODE_FACE 0x88
#define NIS_AC2_MODE_FACEFEET 0x90
#define NIS_AC2_WIND_IDX 3
#define NIS_AC2_WIND_MSK B10000000
#define NIS_AC2_WIND_ON B10000000
#define NIS_AC2_WIND_OFF B00000000
#define NIS_AC2_RECI_IDX 3
#define NIS_AC2_RECI_MSK B00000011
#define NIS_AC2_RECI_ON B00000001
#define NIS_AC2_RECI_OFF B00000010
#define NIS_AC2_FANS_IDX 4
#define NIS_AC2_FANS_OFF 04
#define NIS_AC2_FANS_1 0C
#define NIS_AC2_FANS_2 14
#define NIS_AC2_FANS_3 1C
#define NIS_AC2_FANS_4 24
#define NIS_AC2_FANS_5 2C
#define NIS_AC2_FANS_6 34
#define NIS_AC2_FANS_7 3C
#define NIS_AC3_IDX 0x54C
#define NIS_AC3_AC_IDX 2
#define NIS_AC3_AC_MSK B10000000
#define NIS_AC3_AC_ON B10000000
#define NIS_AC3_AC_OFF B00000000
#define NIS_AC4_IDX 0x625
#define NIS_AC4_RH_IDX 0
#define NIS_AC4_RH_MSK B00000001
#define NIS_AC4_RH_ON B00000001