-
Notifications
You must be signed in to change notification settings - Fork 0
/
lookup_tbls.py
56 lines (51 loc) · 1.46 KB
/
lookup_tbls.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import numpy as np
length_conter_tbl = np.zeros(32, dtype=np.uint8)
length_conter_tbl[0x00] = 10
length_conter_tbl[0x01] = 254
length_conter_tbl[0x02] = 20
length_conter_tbl[0x03] = 2
length_conter_tbl[0x04] = 40
length_conter_tbl[0x05] = 4
length_conter_tbl[0x06] = 80
length_conter_tbl[0x07] = 6
length_conter_tbl[0x08] = 160
length_conter_tbl[0x09] = 8
length_conter_tbl[0x0A] = 60
length_conter_tbl[0x0B] = 10
length_conter_tbl[0x0C] = 14
length_conter_tbl[0x0D] = 12
length_conter_tbl[0x0E] = 26
length_conter_tbl[0x0F] = 14
length_conter_tbl[0x10] = 12
length_conter_tbl[0x11] = 16
length_conter_tbl[0x12] = 24
length_conter_tbl[0x13] = 18
length_conter_tbl[0x14] = 48
length_conter_tbl[0x15] = 20
length_conter_tbl[0x16] = 96
length_conter_tbl[0x17] = 22
length_conter_tbl[0x18] = 192
length_conter_tbl[0x19] = 24
length_conter_tbl[0x1A] = 72
length_conter_tbl[0x1B] = 26
length_conter_tbl[0x1C] = 16
length_conter_tbl[0x1D] = 28
length_conter_tbl[0x1E] = 32
length_conter_tbl[0x1F] = 30
noise_period_tbl = np.zeros(16, dtype=np.uint16)
noise_period_tbl[0x0] = 4
noise_period_tbl[0x1] = 8
noise_period_tbl[0x2] = 16
noise_period_tbl[0x3] = 32
noise_period_tbl[0x4] = 64
noise_period_tbl[0x5] = 96
noise_period_tbl[0x6] = 128
noise_period_tbl[0x7] = 160
noise_period_tbl[0x8] = 202
noise_period_tbl[0x9] = 254
noise_period_tbl[0xA] = 380
noise_period_tbl[0xB] = 508
noise_period_tbl[0xC] = 762
noise_period_tbl[0xD] = 1016
noise_period_tbl[0xE] = 2034
noise_period_tbl[0xF] = 4068