forked from WiseLord/ampcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eeprom.h
94 lines (75 loc) · 2.08 KB
/
eeprom.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#ifndef EEPROM_H
#define EEPROM_H
#include <inttypes.h>
#include "audio/audio.h"
/* Audio parameters values */
#define EEPROM_VOLUME 0x00
/* Alarm */
#define EEPROM_A0_HOUR 0x10
#define EEPROM_A0_MIN 0x11
#define EEPROM_A0_WDAY 0x12
#define EEPROM_A0_INPUT 0x13
/* Audio parameters values */
#define EEPROM_AUDIOPROC 0x20
#define EEPROM_MAX_INPUT_CNT 0x21
#define EEPROM_INPUT 0x22
#define EEPROM_APROC_EXTRA 0x23
#define EEPROM_INPUT_ICONS 0x28
/* FM tuner parameters valus */
#define EEPROM_FM_TUNER 0x70
#define EEPROM_FM_CTRL (EEPROM_FM_TUNER + 0x01)
#define EEPROM_FM_STEP1 (EEPROM_FM_TUNER + 0x02)
#define EEPROM_FM_STEP2 (EEPROM_FM_TUNER + 0x03)
#define EEPROM_FM_FREQ_MIN (EEPROM_FM_TUNER + 0x04)
#define EEPROM_FM_FREQ_MAX (EEPROM_FM_TUNER + 0x06)
#define EEPROM_FM_FREQ (EEPROM_FM_TUNER + 0x08)
#define EEPROM_FM_MONO (EEPROM_FM_TUNER + 0x0A)
#define EEPROM_FM_RDS (EEPROM_FM_TUNER + 0x0B)
/* FM stations */
#define EEPROM_FAV_STATIONS (EEPROM_FM_TUNER + 0x10)
#define EEPROM_STATIONS (EEPROM_FM_TUNER + 0x24)
/* Display parameters */
#define EEPROM_SP_MODE 0x30
#define EEPROM_DISPLAY 0x31
#define EEPROM_BR_STBY 0x32
#define EEPROM_BR_WORK 0x33
#define EEPROM_FALL_SPEED 0x34
/* Other parameters */
#define EEPROM_ENC_RES 0x36
#define EEPROM_RC_TYPE 0x38
#define EEPROM_RC_ADDR 0x39
#define EEPROM_TEMP_TH 0x3A
#define EEPROM_ADC_CORR_L 0x3B
#define EEPROM_ADC_CORR_R 0x3C
#define EEPROM_EXT_FUNC 0x3D
#define EEPROM_SILENCE_TIMER 0x3E
/* RC commands array */
#define EEPROM_RC_CMD 0x40
/* Text labels (maximum 15 byte followed by \0) */
#define EEPROM_LABELS_ADDR 0x110
#define EEPROM_SIZE 0x400
/* EEPROM saved labels */
enum {
LABEL_MUTE = MODE_SND_END,
LABEL_LOUDNESS,
LABEL_SURROUND,
LABEL_EFFECT_3D,
LABEL_TONE_DEFEAT,
LABEL_ON,
LABEL_OFF,
LABEL_DB,
LABEL_SUNDAY,
LABEL_MONDAY,
LABEL_TUESDAY,
LABEL_WEDNESDAY,
LABEL_THURSDAY,
LABEL_FRIDAY,
LABEL_SADURDAY,
LABEL_BR_WORK,
LABEL_LEFT_CHANNEL,
LABEL_RIGHT_CHANNEL,
LABEL_TIMER,
LABEL_WEEKDAYS,
LABEL_END
};
#endif /* EEPROM_H */