1 // Author: Xianjun Jiao 2 // SPDX-FileCopyrightText: 2019 UGent 3 // SPDX-License-Identifier: AGPL-3.0-or-later 4 5 // ---------------------------------------side channel------------------------------- 6 const char *side_ch_compatible_str = "sdr,side_ch"; 7 8 //align with side_ch_control.v and all related user space, remote files 9 #define CSI_LEN 56 // length of single CSI 10 #define EQUALIZER_LEN (56-4) // for non HT, four {32767,32767} will be padded to achieve 52 (non HT should have 48) 11 #define HEADER_LEN 2 //timestamp and frequency offset 12 13 #define MAX_NUM_DMA_SYMBOL 8192 //align with side_ch.v side_ch.h 14 15 #define SIDE_CH_REG_MULTI_RST_ADDR (0*4) 16 #define SIDE_CH_REG_CONFIG_ADDR (1*4) 17 #define SIDE_CH_REG_NUM_DMA_SYMBOL_ADDR (2*4) //low 16bit to PS; high 16bit to PL 18 #define SIDE_CH_REG_IQ_CAPTURE_ADDR (3*4) 19 #define SIDE_CH_REG_NUM_EQ_ADDR (4*4) 20 #define SIDE_CH_REG_FC_TARGET_ADDR (5*4) 21 #define SIDE_CH_REG_ADDR1_TARGET_ADDR (6*4) 22 #define SIDE_CH_REG_ADDR2_TARGET_ADDR (7*4) 23 #define SIDE_CH_REG_IQ_TRIGGER_ADDR (8*4) 24 #define SIDE_CH_REG_RSSI_TH_ADDR (9*4) 25 #define SIDE_CH_REG_GAIN_TH_ADDR (10*4) 26 #define SIDE_CH_REG_PRE_TRIGGER_LEN_ADDR (11*4) 27 #define SIDE_CH_REG_IQ_LEN_ADDR (12*4) 28 29 #define SIDE_CH_REG_M_AXIS_DATA_COUNT_ADDR (20*4) 30