TI-radar AWR1843 C674x DSP core  1
app_cfg.h File Reference
#include "device_cfg.h"
#include <ti/common/sys_common.h>
#include <common/profiles/config_chirp_design_USRR30.h>
Include dependency graph for app_cfg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NUM_RX_CHANNELS   (4U)
 Reduced Thresholds. The following line (if uncommented) reduces thresholds for the USRR detection algorithm to enable the detection of weak targets.
More...
 
#define NUM_CHIRP_PROG   (3U) /* 3TX antennas so Three for USRR20 */
 
#define NUM_PROFILES   (1U) /* one profile for USRR mode of operation*/
 
#define NUM_SUBFRAMES   (1U) /* one subframe for USRR mode operation: No advanced frame configuration */
 
#define SUBFRAME_CONF_USRR
 ENABLE USRR configuraion. More...
 
#define ADCBUFF_CHIRP_THRESHOLD   (1U)
 Number of chirps to be collected in the ADC buffer, before the chirp available interrupt. More...
 
#define FRAME_PERIODICITY_VAL   (SUBFRAME_USRR_PERIODICITY_VAL)
 Which subframe is used to do max-vel-enhancement. More...
 
#define FRAME_PERIODICITY_SEC   (FRAME_PERIODICITY_VAL*5e-9)
 The total frame periodicity in seconds. More...
 
#define MAX_NUM_RANGE_DEPENDANT_SNR_THRESHOLDS   (3U)
 The number of SNR Thresholds - used to vary the SNR requirement as a function of range. More...
 
#define MAX_VEL_ENH_PROCESSING   (0U)
 There are two processing paths in the MRR Demo. More...
 
#define POINT_CLOUD_PROCESSING   (1U)
 
#define MAX_NUM_CLUSTER_USRR   (24U)
 The maximum number of clusters out of the dbscan algorithm (for the USRR subframe). More...
 
#define MAX_NUM_CLUSTER_MRR   (32U)
 The maximum number of clusters out of the dbscan algorithm (for the MRR subframe). More...
 
#define MAX_TRK_OBJs   (32U)
 The maximum number of tracked objects from the Kalman filter. More...
 
#define REPORT_N_BIT_FRAC   (7U)
 Fractional bit width for most of the report data (range, velocity, x, y, etc). More...
 
#define CFARTHRESHOLD_N_BIT_FRAC   (8U)
 Fractional bit width for Thresholds for CFAR data (rangeSNRdB, dopplerSNRdB, AzimSNR, etc). More...
 
#define MIN_RANGE_OFFSET_METERS   (0.075f)
 The radar's range estimate has a constant error due to the finite distance from the antenna to the LO. More...
 
#define MIN_TICK_FOR_TX   (10U)
 Wait for MIN_TICK_FOR_TX before letting the tracker results out. More...
 
#define SIN_55_DEGREES   (0.8192f)
 We discard objects at extreme angles (greater than 55 degrees) from the tracking procedure. More...
 
#define TRK_SIN_AZIM_THRESH   (1.0f/256.0f)
 We discard objects with poor azimuth SNR from the tracking procedure. More...
 
#define CHECK_FOR_DET_MATRIX_TX   1
 In processing the max-velocity enhancement subframe we need to check for det matrix transfer only after the second set of chirps are processed. More...
 
#define DO_NOT_CHECK_FOR_DET_MATRIX_TX   0
 
#define MRR_MAX_OBJ_OUT   200
 The maximum number of objects to be send out per frame. This number is upper bounded by the transfer rate to the external device. More...
 
#define MAX_DET_OBJECTS_RAW_MAX_VEL_ENH_PROCESSING   200
 The maximum number of objects detected in the 'Max velocity enhanced' processing path. Because of all the pruning, and higher thresholds, and lower resolution, fewer objects are detected in MAX_VEL_ENH_PROCESSING. More...
 
#define MAX_DET_OBJECTS_RAW_POINT_CLOUD_PROCESSING   900
 The maximum number of objects detected in the 'point cloud ' processing path. More...
 
#define MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH_DB   (3U)
 The two peaks (from the 'fast chirp' and the 'slow chirp' should be within 2 dB. More...
 
#define MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH   ( (( 1U << CFARTHRESHOLD_N_BIT_FRAC) * NUM_RX_CHANNELS * MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH_DB) / 6U)
 Convert the threshold to a CFAR magnitude difference. More...
 
#define MAX_VEL_IMPROVEMENT_NUM_SPREAD   (2U)
 Search across 2 bins in the slow chirp. More...
 
#define MAX_VEL_ENH_NUM_NYQUIST   (2U)
 Max velocity improvement of 3x. More...
 
#define MAX_NUM_DET_PER_RANGE_GATE   (3U)
 Restrict the number of detected objects per range-gate to 3. More...
 
#define FRAME_CHIRP_START_IDX   (0U)
 Unused #defines?? THEY ARE USED. More...
 
#define FRAME_CHIRP_END_IDX   (1U)
 
#define FRAME_COUNT_VAL   (0U)
 
#define FRAME_LOOP_COUNT   (64U)
 
#define FRAME_TRIGGER_DELAY_VAL   (0U)
 
#define FRAME_NUM_REAL_ADC_SAMPLES   (512U)
 
#define FRAME_NUM_CMPLX_ADC_SAMPLES   (256U)
 
#define EDMA_INSTANCE_A   (0U)
 There are two TPCCs available on the 16xx. More...
 
#define EDMA_INSTANCE_B   (1U)
 
#define MRR_SF0_EDMA_CH_1D_IN_PING   EDMA_TPCC0_REQ_FREE_0
 EDMA allocation and configuration table for FFT processing of subframe 0 AKA: (The whole frame) More...
 
#define MRR_SF0_EDMA_CH_1D_IN_PONG   EDMA_TPCC0_REQ_FREE_1
 
#define MRR_SF0_EDMA_CH_1D_OUT_PING   EDMA_TPCC0_REQ_FREE_2
 
#define MRR_SF0_EDMA_CH_1D_OUT_PONG   EDMA_TPCC0_REQ_FREE_3
 
#define MRR_SF0_EDMA_CH_2D_IN_PING   EDMA_TPCC0_REQ_FREE_4
 
#define MRR_SF0_EDMA_CH_2D_IN_PONG   EDMA_TPCC0_REQ_FREE_5
 
#define MRR_SF0_EDMA_CH_DET_MATRIX   EDMA_TPCC0_REQ_FREE_6
 
#define MRR_SF0_EDMA_CH_DET_MATRIX2   EDMA_TPCC0_REQ_FREE_7
 
#define MRR_SF0_EDMA_CH_3D_IN_PING   EDMA_TPCC0_REQ_FREE_8
 
#define MRR_SF0_EDMA_CH_3D_IN_PONG   EDMA_TPCC0_REQ_FREE_9
 
#define EDMA_INSTANCE_DSS   EDMA_INSTANCE_A
 
#define EDMA_INSTANCE_MSS   EDMA_INSTANCE_B
 
#define MRR_EDMA_TRIGGER_ENABLE   1
 
#define MRR_EDMA_TRIGGER_DISABLE   0
 
#define MAX_VEL_POINT_CLOUD_PROCESSING_IS_ENABLED   0
 Flag to enable the max velocity enhancement in point cloud processing. More...
 

Macro Definition Documentation

◆ ADCBUFF_CHIRP_THRESHOLD

#define ADCBUFF_CHIRP_THRESHOLD   (1U)

Number of chirps to be collected in the ADC buffer, before the chirp available interrupt.

Definition at line 88 of file app_cfg.h.

◆ CFARTHRESHOLD_N_BIT_FRAC

#define CFARTHRESHOLD_N_BIT_FRAC   (8U)

Fractional bit width for Thresholds for CFAR data (rangeSNRdB, dopplerSNRdB, AzimSNR, etc).

Definition at line 127 of file app_cfg.h.

◆ CHECK_FOR_DET_MATRIX_TX

#define CHECK_FOR_DET_MATRIX_TX   1

In processing the max-velocity enhancement subframe we need to check for det matrix transfer only after the second set of chirps are processed.

Definition at line 145 of file app_cfg.h.

◆ DO_NOT_CHECK_FOR_DET_MATRIX_TX

#define DO_NOT_CHECK_FOR_DET_MATRIX_TX   0

Definition at line 146 of file app_cfg.h.

◆ EDMA_INSTANCE_A

#define EDMA_INSTANCE_A   (0U)

There are two TPCCs available on the 16xx.

Definition at line 181 of file app_cfg.h.

◆ EDMA_INSTANCE_B

#define EDMA_INSTANCE_B   (1U)

Definition at line 182 of file app_cfg.h.

◆ EDMA_INSTANCE_DSS

#define EDMA_INSTANCE_DSS   EDMA_INSTANCE_A

Definition at line 200 of file app_cfg.h.

◆ EDMA_INSTANCE_MSS

#define EDMA_INSTANCE_MSS   EDMA_INSTANCE_B

Definition at line 201 of file app_cfg.h.

◆ FRAME_CHIRP_END_IDX

#define FRAME_CHIRP_END_IDX   (1U)

Definition at line 173 of file app_cfg.h.

◆ FRAME_CHIRP_START_IDX

#define FRAME_CHIRP_START_IDX   (0U)

Unused #defines?? THEY ARE USED.

Definition at line 172 of file app_cfg.h.

◆ FRAME_COUNT_VAL

#define FRAME_COUNT_VAL   (0U)

Definition at line 174 of file app_cfg.h.

◆ FRAME_LOOP_COUNT

#define FRAME_LOOP_COUNT   (64U)

Definition at line 175 of file app_cfg.h.

◆ FRAME_NUM_CMPLX_ADC_SAMPLES

#define FRAME_NUM_CMPLX_ADC_SAMPLES   (256U)

Definition at line 178 of file app_cfg.h.

◆ FRAME_NUM_REAL_ADC_SAMPLES

#define FRAME_NUM_REAL_ADC_SAMPLES   (512U)

Definition at line 177 of file app_cfg.h.

◆ FRAME_PERIODICITY_SEC

#define FRAME_PERIODICITY_SEC   (FRAME_PERIODICITY_VAL*5e-9)

The total frame periodicity in seconds.

Definition at line 105 of file app_cfg.h.

◆ FRAME_PERIODICITY_VAL

#define FRAME_PERIODICITY_VAL   (SUBFRAME_USRR_PERIODICITY_VAL)

Which subframe is used to do max-vel-enhancement.

Add in the USRR20 profile for > Max Range 20m; Better Range Resolution

Add in the USRR30 profile for > Max Range 30m; Lower Range Resolution

Definition at line 100 of file app_cfg.h.

◆ FRAME_TRIGGER_DELAY_VAL

#define FRAME_TRIGGER_DELAY_VAL   (0U)

Definition at line 176 of file app_cfg.h.

◆ MAX_DET_OBJECTS_RAW_MAX_VEL_ENH_PROCESSING

#define MAX_DET_OBJECTS_RAW_MAX_VEL_ENH_PROCESSING   200

The maximum number of objects detected in the 'Max velocity enhanced' processing path. Because of all the pruning, and higher thresholds, and lower resolution, fewer objects are detected in MAX_VEL_ENH_PROCESSING.

Definition at line 156 of file app_cfg.h.

◆ MAX_DET_OBJECTS_RAW_POINT_CLOUD_PROCESSING

#define MAX_DET_OBJECTS_RAW_POINT_CLOUD_PROCESSING   900

The maximum number of objects detected in the 'point cloud ' processing path.

Definition at line 158 of file app_cfg.h.

◆ MAX_NUM_CLUSTER_MRR

#define MAX_NUM_CLUSTER_MRR   (32U)

The maximum number of clusters out of the dbscan algorithm (for the MRR subframe).

Definition at line 118 of file app_cfg.h.

◆ MAX_NUM_CLUSTER_USRR

#define MAX_NUM_CLUSTER_USRR   (24U)

The maximum number of clusters out of the dbscan algorithm (for the USRR subframe).

Definition at line 115 of file app_cfg.h.

◆ MAX_NUM_DET_PER_RANGE_GATE

#define MAX_NUM_DET_PER_RANGE_GATE   (3U)

Restrict the number of detected objects per range-gate to 3.

Definition at line 168 of file app_cfg.h.

◆ MAX_NUM_RANGE_DEPENDANT_SNR_THRESHOLDS

#define MAX_NUM_RANGE_DEPENDANT_SNR_THRESHOLDS   (3U)

The number of SNR Thresholds - used to vary the SNR requirement as a function of range.

Definition at line 108 of file app_cfg.h.

◆ MAX_TRK_OBJs

#define MAX_TRK_OBJs   (32U)

The maximum number of tracked objects from the Kalman filter.

Definition at line 121 of file app_cfg.h.

◆ MAX_VEL_ENH_NUM_NYQUIST

#define MAX_VEL_ENH_NUM_NYQUIST   (2U)

Max velocity improvement of 3x.

Definition at line 166 of file app_cfg.h.

◆ MAX_VEL_ENH_PROCESSING

#define MAX_VEL_ENH_PROCESSING   (0U)

There are two processing paths in the MRR Demo.

Definition at line 111 of file app_cfg.h.

◆ MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH

#define MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH   ( (( 1U << CFARTHRESHOLD_N_BIT_FRAC) * NUM_RX_CHANNELS * MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH_DB) / 6U)

Convert the threshold to a CFAR magnitude difference.

Definition at line 162 of file app_cfg.h.

◆ MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH_DB

#define MAX_VEL_IMPROVEMENT_ASSOCIATION_THRESH_DB   (3U)

The two peaks (from the 'fast chirp' and the 'slow chirp' should be within 2 dB.

Definition at line 160 of file app_cfg.h.

◆ MAX_VEL_IMPROVEMENT_NUM_SPREAD

#define MAX_VEL_IMPROVEMENT_NUM_SPREAD   (2U)

Search across 2 bins in the slow chirp.

Definition at line 164 of file app_cfg.h.

◆ MAX_VEL_POINT_CLOUD_PROCESSING_IS_ENABLED

#define MAX_VEL_POINT_CLOUD_PROCESSING_IS_ENABLED   0

Flag to enable the max velocity enhancement in point cloud processing.

Definition at line 211 of file app_cfg.h.

◆ MIN_RANGE_OFFSET_METERS

#define MIN_RANGE_OFFSET_METERS   (0.075f)

The radar's range estimate has a constant error due to the finite distance from the antenna to the LO.

Definition at line 130 of file app_cfg.h.

◆ MIN_TICK_FOR_TX

#define MIN_TICK_FOR_TX   (10U)

Wait for MIN_TICK_FOR_TX before letting the tracker results out.

Definition at line 133 of file app_cfg.h.

◆ MRR_EDMA_TRIGGER_DISABLE

#define MRR_EDMA_TRIGGER_DISABLE   0

Definition at line 205 of file app_cfg.h.

◆ MRR_EDMA_TRIGGER_ENABLE

#define MRR_EDMA_TRIGGER_ENABLE   1

Definition at line 204 of file app_cfg.h.

◆ MRR_MAX_OBJ_OUT

#define MRR_MAX_OBJ_OUT   200

The maximum number of objects to be send out per frame. This number is upper bounded by the transfer rate to the external device.

Definition at line 150 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_1D_IN_PING

#define MRR_SF0_EDMA_CH_1D_IN_PING   EDMA_TPCC0_REQ_FREE_0

EDMA allocation and configuration table for FFT processing of subframe 0 AKA: (The whole frame)

Definition at line 187 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_1D_IN_PONG

#define MRR_SF0_EDMA_CH_1D_IN_PONG   EDMA_TPCC0_REQ_FREE_1

Definition at line 188 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_1D_OUT_PING

#define MRR_SF0_EDMA_CH_1D_OUT_PING   EDMA_TPCC0_REQ_FREE_2

Definition at line 189 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_1D_OUT_PONG

#define MRR_SF0_EDMA_CH_1D_OUT_PONG   EDMA_TPCC0_REQ_FREE_3

Definition at line 190 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_2D_IN_PING

#define MRR_SF0_EDMA_CH_2D_IN_PING   EDMA_TPCC0_REQ_FREE_4

Definition at line 191 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_2D_IN_PONG

#define MRR_SF0_EDMA_CH_2D_IN_PONG   EDMA_TPCC0_REQ_FREE_5

Definition at line 192 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_3D_IN_PING

#define MRR_SF0_EDMA_CH_3D_IN_PING   EDMA_TPCC0_REQ_FREE_8

Definition at line 195 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_3D_IN_PONG

#define MRR_SF0_EDMA_CH_3D_IN_PONG   EDMA_TPCC0_REQ_FREE_9

Definition at line 196 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_DET_MATRIX

#define MRR_SF0_EDMA_CH_DET_MATRIX   EDMA_TPCC0_REQ_FREE_6

Definition at line 193 of file app_cfg.h.

◆ MRR_SF0_EDMA_CH_DET_MATRIX2

#define MRR_SF0_EDMA_CH_DET_MATRIX2   EDMA_TPCC0_REQ_FREE_7

Definition at line 194 of file app_cfg.h.

◆ NUM_CHIRP_PROG

#define NUM_CHIRP_PROG   (3U) /* 3TX antennas so Three for USRR20 */

Definition at line 78 of file app_cfg.h.

◆ NUM_PROFILES

#define NUM_PROFILES   (1U) /* one profile for USRR mode of operation*/

Definition at line 79 of file app_cfg.h.

◆ NUM_RX_CHANNELS

#define NUM_RX_CHANNELS   (4U)

Reduced Thresholds. The following line (if uncommented) reduces thresholds for the USRR detection algorithm to enable the detection of weak targets.

120m max range. The MRR was initially designed for 80m, but with a slight configuration change will work at 120m (boresight). Uncomment the following line for enabling that config.

Definition at line 77 of file app_cfg.h.

◆ NUM_SUBFRAMES

#define NUM_SUBFRAMES   (1U) /* one subframe for USRR mode operation: No advanced frame configuration */

Definition at line 80 of file app_cfg.h.

◆ POINT_CLOUD_PROCESSING

#define POINT_CLOUD_PROCESSING   (1U)

Definition at line 112 of file app_cfg.h.

◆ REPORT_N_BIT_FRAC

#define REPORT_N_BIT_FRAC   (7U)

Fractional bit width for most of the report data (range, velocity, x, y, etc).

Definition at line 124 of file app_cfg.h.

◆ SIN_55_DEGREES

#define SIN_55_DEGREES   (0.8192f)

We discard objects at extreme angles (greater than 55 degrees) from the tracking procedure.

Definition at line 137 of file app_cfg.h.

◆ SUBFRAME_CONF_USRR

#define SUBFRAME_CONF_USRR

ENABLE USRR configuraion.

Definition at line 83 of file app_cfg.h.

◆ TRK_SIN_AZIM_THRESH

#define TRK_SIN_AZIM_THRESH   (1.0f/256.0f)

We discard objects with poor azimuth SNR from the tracking procedure.

Definition at line 141 of file app_cfg.h.