]> sigrok.org Git - libsigrokdecode.git/blame - decoders/cc1101/lists.py
avr_isp: Add more parts
[libsigrokdecode.git] / decoders / cc1101 / lists.py
CommitLineData
2a743706
M
1##
2## This file is part of the libsigrokdecode project.
3##
4## Copyright (C) 2019 Marco Geisler <m-sigrok@mageis.de>
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 2 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program; if not, see <http://www.gnu.org/licenses/>.
18##
19
20regs = {
21# addr: 'name'
22 0x00: 'IOCFG2',
23 0x01: 'IOCFG1',
24 0x02: 'IOCFG0',
25 0x03: 'FIFOTHR',
26 0x04: 'SYNC1',
27 0x05: 'SYNC0',
28 0x06: 'PKTLEN',
29 0x07: 'PKTCTRL1',
30 0x08: 'PKTCTRL0',
31 0x09: 'ADDR',
32 0x0A: 'CHANNR',
33 0x0B: 'FSCTRL1',
34 0x0C: 'FSCTRL0',
35 0x0D: 'FREQ2',
36 0x0E: 'FREQ1',
37 0x0F: 'FREQ0',
38 0x10: 'MDMCFG4',
39 0x11: 'MDMCFG3',
40 0x12: 'MDMCFG2',
41 0x13: 'MDMCFG1',
42 0x14: 'MDMCFG0',
43 0x15: 'DEVIATN',
44 0x16: 'MCSM2',
45 0x17: 'MCSM1',
46 0x18: 'MCSM0',
47 0x19: 'FOCCFG',
48 0x1A: 'BSCFG',
49 0x1B: 'AGCTRL2',
50 0x1C: 'AGCTRL1',
51 0x1D: 'AGCTRL0',
52 0x1E: 'WOREVT1',
53 0x1F: 'WOREVT0',
54 0x20: 'WORCTRL',
55 0x21: 'FREND1',
56 0x22: 'FREND0',
57 0x23: 'FSCAL3',
58 0x24: 'FSCAL2',
59 0x25: 'FSCAL1',
60 0x26: 'FSCAL0',
61 0x27: 'RCCTRL1',
62 0x28: 'RCCTRL0',
63 0x29: 'FSTEST',
64 0x2A: 'PTEST',
65 0x2B: 'AGCTEST',
66 0x2C: 'TEST2',
67 0x2D: 'TEST1',
68 0x2E: 'TEST0',
69 0x30: 'PARTNUM',
70 0x31: 'VERSION',
71 0x32: 'FREQEST',
72 0x33: 'LQI',
73 0x34: 'RSSI',
74 0x35: 'MARCSTATE',
75 0x36: 'WORTIME1',
76 0x37: 'WORTIME0',
77 0x38: 'PKTSTATUS',
78 0x39: 'VCO_VC_DAC',
79 0x3A: 'TXBYTES',
80 0x3B: 'RXBYTES',
81 0x3C: 'RCCTRL1_STATUS',
82 0x3D: 'RCCTRL0_STATUS',
83 0x3E: 'PATABLE',
84 0x3F: 'FIFO'
85}
86
87strobes = {
88# addr: 'name'
89 0x30: 'SRES',
90 0x31: 'SFSTXON',
91 0x32: 'SXOFF',
92 0x33: 'SCAL',
93 0x34: 'SRX',
94 0x35: 'STX',
95 0x36: 'SIDLE',
96 0x37: '',
97 0x38: 'SWOR',
98 0x39: 'SPWD',
99 0x3A: 'SFRX',
100 0x3B: 'SFTX',
101 0x3C: 'SWORRST',
102 0x3D: 'SNOP'
103}
104
105status_reg_states = {
106# value: 'state name'
107 0b000: 'IDLE',
108 0b001: 'RX',
109 0b010: 'TX',
110 0b011: 'FSTXON',
111 0b100: 'CALIBRATE',
112 0b101: 'SETTLING',
113 0b110: 'RXFIFO_OVERFLOW',
114 0b111: 'TXFIFO_OVERFLOW'
115}