-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidefs.py
executable file
·33 lines (31 loc) · 913 Bytes
/
sidefs.py
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
# "DG8SAQ specific values"
SI570_I2C_ADDR = 0x55
SI570_DCO_HIGH = 5670.0
SI570_DCO_LOW = 4850.0
SI570_NOMINAL_XTALL_FREQ = 114.285
SI570_XTALL_DEVIATION_PPM = 2000
SI570_DEFAULT_STARTUP_FREQ = 56.32
REQUEST_READ_VERSION = 0x00
REQUEST_SET_DDRB = 0x01
REQUEST_SET_PORTB = 0x04
REQUEST_READ_EEPROM = 0x11
REQUEST_FILTERS = 0x17
REQUEST_SET_BPF_ADDRESS = 0x18
REQUEST_READ_BPF_ADDRESS = 0x19
REQUEST_SET_LPF_ADDRESS = 0x1A
REQUEST_READ_LPF_ADDRESS = 0x1B
REQUEST_SET_FREQ = 0x30
REQUEST_SET_MULTIPLY_LO = 0x31
REQUEST_SET_FREQ_BY_VALUE = 0x32
REQUEST_SET_XTALL_FREQ = 0x33
REQUEST_SET_STARTUP_FREQ = 0x34
REQUEST_READ_MULTIPLY_LO = 0x39
REQUEST_READ_FREQUENCY = 0x3A
REQUEST_READ_SMOOTH_TUNE_PPM = 0x3B
REQUEST_READ_STARTUP = 0x3C
REQUEST_READ_XTALL = 0x3D
REQUEST_READ_REGISTERS = 0x3F
# REQUEST_SET_SI570_ADDR = 0x41
REQUEST_SET_PTT = 0x50
REQUEST_READ_KEYS = 0x51
HS_DIV_MAP = [4, 5, 6, 7, -1, 9, -1, 11]