123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- /***************************************************************************************************
- * This file is generated by PANCHIP RF CTK
- * @datetime 2025-08-01 15:11:39
- * @device PAN3120
- * @fwid 0x0003
- * @version 0x0000
- **************************************************************************************************/
- #include "PAN312x_Rf_CTK_Setting.h"
- static const __ctk_item_t(1) __ctk_item_1 = {
- /* addr */ 0x0100,
- /* size */ 1,
- /* data */ {
- // [6:6]: RCLTRIM_TIMER_EN = Off
- // [3:0]: WUT_DIV = 65536
- 0x00
- }
- };
- static const __ctk_item_t(3) __ctk_item_2 = {
- /* addr */ 0x0101,
- /* size */ 3,
- /* data */ {
- // [7]: IRQ_ENABLE.NODE_ID_DONE = false
- // [6]: IRQ_ENABLE.LENGTH_DONE = false
- // [5]: IRQ_ENABLE.NODE_ID_ERROR = false
- // [4]: IRQ_ENABLE.RX_TIMEOUT = false
- // [3]: IRQ_ENABLE.CRC_ERROR = true
- // [2]: IRQ_ENABLE.RX_COMPLETE = false
- // [1]: IRQ_ENABLE.RX_DONE = true
- // [0]: IRQ_ENABLE.TX_DONE = true
- 0x0b,
- // [6]: IRQ_ENABLE.ACK_ERROR = false
- // [5]: IRQ_ENABLE.ACK_TIMEOUT = false
- // [4]: IRQ_ENABLE.WAKEUP = false
- // [3]: IRQ_ENABLE.HEADER_CRC_DONE = false
- 0x00,
- // [7]: IRQ_ENABLE.RSSI_TIMEOUT = false
- // [6]: IRQ_ENABLE.PREAMBLE_TIMEOUT = false
- // [5]: IRQ_ENABLE.SYNCWORD_DONE = false
- // [4]: IRQ_ENABLE.PREAMBLE_DONE = false
- // [3]: IRQ_ENABLE.RSSI_VALID = false
- // [2]: IRQ_ENABLE.RX_FIFO_TH = false
- // [1]: IRQ_ENABLE.TX_FIFO_TH = false
- // [0]: IRQ_ENABLE.SYNCWORD_TIMEOUT = false
- 0x00
- }
- };
- static const __ctk_item_t(5) __ctk_item_3 = {
- /* addr */ 0x0200,
- /* size */ 5,
- /* data */ {
- // [7:7]: IDLE_IF_POSSIBLE = false
- // [6:6]: SLEEP_TIMER_EN = Off
- // [5:5]: AUTO_CLEAR_STATUS = true
- 0x20,
- // [7:7]: PACKET_FILTER_INTERRUPT_EN = false
- // [6:6]: PACKET_FILTER_PAT3_ENABLE = true
- // [5:5]: PACKET_FILTER_PAT2_ENABLE = true
- // [4:4]: PACKET_FILTER_PAT1_ENABLE = true
- // [3:3]: PACKET_FILTER_MODE = Reset
- 0x78,
- // [7:5]: TX_NODE_ID_SIZE = 4-bytes
- // [4:2]: RX_NODE_ID_SIZE = 4-bytes
- // [1:1]: NODE_ID_POSITION = Before Length
- 0x90,
- // [5:5]: TX_CRC_ENABLE = true
- // [2:2]: ACK_CHECK_EN = Off
- // [0:0]: TX_PACKET_TYPE = Variable Length
- 0x21,
- // [7:7]: RX_CRC_HOST = false
- // [6:6]: RX_CRC_HARDWARE = true
- // [5:5]: RX_CRC_ENABLE = true
- // [4:4]: RX_READ_PL_BY_CMD = false
- // [1:1]: RX_LENGTH_IN_PAYLOAD = false
- // [0:0]: RX_PACKET_TYPE = Variable Length
- 0x61
- }
- };
- static const __ctk_item_t(12) __ctk_item_4 = {
- /* addr */ 0x0316,
- /* size */ 12,
- /* data */ {
- // PACKET_FILTER_PAT1_VALUE = 0xa0b0c0d0, [0] = 0xd0
- 0xd0,
- // PACKET_FILTER_PAT1_VALUE = 0xa0b0c0d0, [1] = 0xc0
- 0xc0,
- // PACKET_FILTER_PAT1_VALUE = 0xa0b0c0d0, [2] = 0xb0
- 0xb0,
- // PACKET_FILTER_PAT1_VALUE = 0xa0b0c0d0, [3] = 0xa0
- 0xa0,
- // PACKET_FILTER_PAT2_VALUE = 0xa1b1c1d1, [0] = 0xd1
- 0xd1,
- // PACKET_FILTER_PAT2_VALUE = 0xa1b1c1d1, [1] = 0xc1
- 0xc1,
- // PACKET_FILTER_PAT2_VALUE = 0xa1b1c1d1, [2] = 0xb1
- 0xb1,
- // PACKET_FILTER_PAT2_VALUE = 0xa1b1c1d1, [3] = 0xa1
- 0xa1,
- // PACKET_FILTER_PAT3_VALUE = 0xaabbccdd, [0] = 0xdd
- 0xdd,
- // PACKET_FILTER_PAT3_VALUE = 0xaabbccdd, [1] = 0xcc
- 0xcc,
- // PACKET_FILTER_PAT3_VALUE = 0xaabbccdd, [2] = 0xbb
- 0xbb,
- // PACKET_FILTER_PAT3_VALUE = 0xaabbccdd, [3] = 0xaa
- 0xaa
- }
- };
- static const __ctk_item_t(3) __ctk_item_5 = {
- /* addr */ 0x032d,
- /* size */ 3,
- /* data */ {
- // [1:0]: RX_TIMEOUT_EXIT_STATE = Rx
- 0x02,
- // [1:0]: RX_INVALID_EXIT_STATE = Rx
- 0x02,
- // [1:0]: RX_VALID_EXIT_STATE = Rx
- 0x02
- }
- };
- static const __ctk_item_t(2) __ctk_item_6 = {
- /* addr */ 0x0400,
- /* size */ 2,
- /* data */ {
- // [2:2]: ENCODING = None
- 0x42,
- // [3:2]: PREAMBLE_MODE = Standard-0101
- // [0:0]: PREAMBLE_MANCHESTER = Off
- 0x04
- }
- };
- static const __ctk_item_t(2) __ctk_item_7 = {
- /* addr */ 0x0408,
- /* size */ 2,
- /* data */ {
- // CRC_POLY = 0x00008005, [0] = 0x05
- 0x05,
- // CRC_POLY = 0x00008005, [1] = 0x80
- 0x80
- }
- };
- static const __ctk_item_t(2) __ctk_item_8 = {
- /* addr */ 0x040c,
- /* size */ 2,
- /* data */ {
- // CRC_SEED = 0x0000ffff, [0] = 0xff
- 0xff,
- // CRC_SEED = 0x0000ffff, [1] = 0xff
- 0xff
- }
- };
- static const __ctk_item_t(1) __ctk_item_9 = {
- /* addr */ 0x0410,
- /* size */ 1,
- /* data */ {
- // [2:2]: CRC_BIT_INVERT = false
- // [1:0]: CRC_MODE = CRC-16
- 0x91
- }
- };
- static const __ctk_item_t(5) __ctk_item_10 = {
- /* addr */ 0x0415,
- /* size */ 5,
- /* data */ {
- // [7:7]: LENGTH_SIZE = 1-byte
- 0x50,
- // TX_NODE_ID_VALUE = 0xaabbccdd, [0] = 0xdd
- 0xdd,
- // TX_NODE_ID_VALUE = 0xaabbccdd, [1] = 0xcc
- 0xcc,
- // TX_NODE_ID_VALUE = 0xaabbccdd, [2] = 0xbb
- 0xbb,
- // TX_NODE_ID_VALUE = 0xaabbccdd, [3] = 0xaa
- 0xaa
- }
- };
- static const __ctk_item_t(1) __ctk_item_11 = {
- /* addr */ 0x0425,
- /* size */ 1,
- /* data */ {
- // [6:6]: CRC_BYTE_ORDER = Big Endian
- // [4:4]: PN9-IBM Disable
- 0x80
- }
- };
- static const __ctk_item_t(1) __ctk_item_12 = {
- /* addr */ 0x0428,
- /* size */ 1,
- /* data */ {
- // [5:5]: PAYLOAD_MANCHESTER = Off
- // [1:1]: WHITENING = Disable
- 0x1d
- }
- };
- static const __ctk_item_t(1) __ctk_item_13 = {
- /* addr */ 0x0438,
- /* size */ 1,
- /* data */ {
- // [0:0]: FLTR_DEV = 0x000, [1] = 0x0
- 0x80
- }
- };
- static const __ctk_item_t(1) __ctk_item_14 = {
- /* addr */ 0x043c,
- /* size */ 1,
- /* data */ {
- // TX_DEVIATION = 25000
- 0x80
- }
- };
- static const __ctk_item_t(2) __ctk_item_15 = {
- /* addr */ 0x0447,
- /* size */ 2,
- /* data */ {
- // [6:5]: RX_ADC_IFSEL = 500 kHz
- 0x21,
- // [7:6]: RX_ADC_BWSEL = 500 kHz
- 0xbf
- }
- };
- static const __ctk_item_t(4) __ctk_item_16 = {
- /* addr */ 0x044a,
- /* size */ 4,
- /* data */ {
- // [7:4]: CHF_SEL = 50 kbps
- 0xa0,
- // IF = 0x4000, [0] = 0x00
- 0x00,
- // IF = 0x4000, [1] = 0x40
- 0x40,
- // [3:0]: IF = 0x4000
- 0x40
- }
- };
- static const __ctk_item_t(1) __ctk_item_17 = {
- /* addr */ 0x0451,
- /* size */ 1,
- /* data */ {
- // [7:7]: IB_ONLY = 1
- 0x8b
- }
- };
- static const __ctk_item_t(1) __ctk_item_18 = {
- /* addr */ 0x0454,
- /* size */ 1,
- /* data */ {
- // TX_DEVIATION = 25000
- 0x0c
- }
- };
- static const __ctk_item_t(1) __ctk_item_19 = {
- /* addr */ 0x0500,
- /* size */ 1,
- /* data */ {
- // [7:4]: DATA_RATE = 50 kbps
- // [3:2]: MODULATION = 2FSK
- // [0:0]: DATA_RATE_MODE = Symbol Rate B
- 0x01
- }
- };
- static const __ctk_item_t(4) __ctk_item_20 = {
- /* addr */ 0x050b,
- /* size */ 4,
- /* data */ {
- // FREQUENCY_STEP = 0 MHz, [0] = 0x00
- 0x00,
- // FREQUENCY_STEP = 0 MHz, [1] = 0x00
- 0x00,
- // FREQUENCY_CHANNEL = 0, [0] = 0x00
- 0x00,
- // FREQUENCY_CHANNEL = 0, [1] = 0x00
- 0x00
- }
- };
- static const __ctk_item_t(5) __ctk_item_21 = {
- /* addr */ 0x0511,
- /* size */ 5,
- /* data */ {
- // FREQUENCY_BASE = 433.0 MHz, [2] = 0x20
- 0x20,
- // FREQUENCY_BASE = 433.0 MHz, [3] = 0x36
- 0x36,
- // RX_ADJUST = 500 kHz, [0] = 0x00
- 0x00,
- // RX_ADJUST = 500 kHz, [1] = 0x00
- 0x00,
- // RX_ADJUST = 500 kHz, [2] = 0x10
- 0x10
- }
- };
- static const __ctk_item_t(1) __ctk_item_22 = {
- /* addr */ 0x0630,
- /* size */ 1,
- /* data */ {
- // [3:3]: HI_LO_SET = 1
- 0x28
- }
- };
- static const __ctk_item_t(1) __ctk_item_23 = {
- /* addr */ 0x0740,
- /* size */ 1,
- /* data */ {
- // [5:4]: RX_TIA_BWSEL = 1.5 MHz
- 0x31
- }
- };
- static const __ctk_item_t(1) __ctk_item_24 = {
- /* addr */ 0x074c,
- /* size */ 1,
- /* data */ {
- // [5:3]: PLL_VCO_FCSEL = 3
- 0x58
- }
- };
- static const __ctk_item_t(1) __ctk_item_25 = {
- /* addr */ 0x074e,
- /* size */ 1,
- /* data */ {
- // [1:0]: PLL_VCO_VD_SW = 1
- 0xfd
- }
- };
- ctk_item_t const * const __CTK_ITEM_ARRAY[__CTK_ITEM_COUNT + 1] = {
- (const ctk_item_t*)&__ctk_item_1,
- (const ctk_item_t*)&__ctk_item_2,
- (const ctk_item_t*)&__ctk_item_3,
- (const ctk_item_t*)&__ctk_item_4,
- (const ctk_item_t*)&__ctk_item_5,
- (const ctk_item_t*)&__ctk_item_6,
- (const ctk_item_t*)&__ctk_item_7,
- (const ctk_item_t*)&__ctk_item_8,
- (const ctk_item_t*)&__ctk_item_9,
- (const ctk_item_t*)&__ctk_item_10,
- (const ctk_item_t*)&__ctk_item_11,
- (const ctk_item_t*)&__ctk_item_12,
- (const ctk_item_t*)&__ctk_item_13,
- (const ctk_item_t*)&__ctk_item_14,
- (const ctk_item_t*)&__ctk_item_15,
- (const ctk_item_t*)&__ctk_item_16,
- (const ctk_item_t*)&__ctk_item_17,
- (const ctk_item_t*)&__ctk_item_18,
- (const ctk_item_t*)&__ctk_item_19,
- (const ctk_item_t*)&__ctk_item_20,
- (const ctk_item_t*)&__ctk_item_21,
- (const ctk_item_t*)&__ctk_item_22,
- (const ctk_item_t*)&__ctk_item_23,
- (const ctk_item_t*)&__ctk_item_24,
- (const ctk_item_t*)&__ctk_item_25,
- 0
- };
|