![Logo](ti_logo.svg) |
xWRL6432 MMWAVE-L-SDK
05.04.00.01
|
|
Go to the documentation of this file.
53 #ifndef RANGEPROCHWA_H
54 #define RANGEPROCHWA_H
72 #include <datapath/dpu/rangeproc/v0/rangeproc_common.h>
79 #define DPU_RANGEPROCHWA_NUM_HWA_PARAM_SETS 4U
82 #define DPU_RANGEPROCHWA_DCRANGESIGMEAN_BYTE_ALIGNMENT_DSP 8U
85 #define DPU_RANGEPROCHWA_DCRANGESIGMEAN_BYTE_ALIGNMENT_R5F 4U
88 #define DPU_RANGEPROCHWA_RADARCUBE_BYTE_ALIGNMENT_R5F CSL_CACHE_L1D_LINESIZE
91 #define DPU_RANGEPROCHWA_RADARCUBE_BYTE_ALIGNMENT_DSP (sizeof(int16_t))
101 #define DPU_RANGEPROCHWA_EINVAL (DP_ERRNO_RANGE_PROC_BASE-1)
106 #define DPU_RANGEPROCHWA_ENOMEM (DP_ERRNO_RANGE_PROC_BASE-2)
111 #define DPU_RANGEPROCHWA_EINTERNAL (DP_ERRNO_RANGE_PROC_BASE-3)
116 #define DPU_RANGEPROCHWA_ENOTIMPL (DP_ERRNO_RANGE_PROC_BASE-4)
121 #define DPU_RANGEPROCHWA_EINPROGRESS (DP_ERRNO_RANGE_PROC_BASE-5)
126 #define DPU_RANGEPROCHWA_ECMD (DP_ERRNO_RANGE_PROC_BASE-6)
131 #define DPU_RANGEPROCHWA_ESEMA (DP_ERRNO_RANGE_PROC_BASE-7)
136 #define DPU_RANGEPROCHWA_EDCREMOVAL (DP_ERRNO_RANGE_PROC_BASE-8)
141 #define DPU_RANGEPROCHWA_EADCBUF_INTF (DP_ERRNO_RANGE_PROC_BASE-9)
146 #define DPU_RANGEPROCHWA_ERADARCUBE_INTF (DP_ERRNO_RANGE_PROC_BASE-10)
151 #define DPU_RANGEPROCHWA_EWINDOW (DP_ERRNO_RANGE_PROC_BASE-11)
156 #define DPU_RANGEPROCHWA_EBUTTERFLYSCALE (DP_ERRNO_RANGE_PROC_BASE-12)
161 #define DPU_RANGEPROCHWA_EEDMA_ERROR (DP_ERRNO_RANGE_PROC_BASE-13)
178 #define DPU_RangeProcHWA_InputMode_MAPPED (uint32_t) 0U
179 #define DPU_RangeProcHWA_InputMode_ISOLATED (uint32_t) 1U
180 #define DPU_RangeProcHWA_InputMode_HWA_INTERNAL_MEM (uint32_t) 2U
192 #define DPU_RangeProcHWA_Cmd_dcRangeCfg (uint32_t) 0
193 #define DPU_RangeProcHWA_Cmd_triggerProc (uint32_t) 1
204 typedef struct DPU_RangeProcHWA_FFTtuning_t{
230 typedef struct DPU_RangeProcHWA_HwaConfig_t
250 uint8_t dmaTrigSrcChan[2];
266 typedef struct DPU_RangeProcHWA_EDMAInputConfig_t
286 typedef struct DPU_RangeProcHWA_EDMAOutputConfigPath_t
325 typedef struct DPU_RangeProcHWA_EDMAOutputConfig_t
346 typedef struct DPU_RangeProcHWA_HW_Resources_t
402 typedef struct DPU_RangeProcHWA_compressCfg_t
421 typedef struct DPU_RangeProcHWA_StaticConfig_t
512 typedef struct DPU_RangeProcHWA_DynamicConfig_t
527 typedef struct DPU_RangeProcHWA_Config_t
548 typedef struct DPU_RangeProcHWA_InitParams_t
563 typedef struct DPU_RangeProcHWA_OutParams_t
617 uint8_t *numUsedHwaParamSets
HWA_Handle hwaHandle
HWA Handle.
Definition: rangeprochwa.h:551
uint8_t numParamSet
Number of HWA param sets must be DPU_RANGEPROCHWA_NUM_HWA_PARAM_SETS.
Definition: rangeprochwa.h:236
DPIF_RadarCube radarCube
Radar cube data interface. Radar cube buffer (radarCube.data) For R5F: Byte alignment Requirement = D...
Definition: rangeprochwa.h:386
uint32_t DPU_RangeProcHWA_Cmd
rangeProc control command
Definition: rangeprochwa.h:191
EDMA_Handle edmaHandle
EDMA Handle.
Definition: rangeprochwa.h:349
uint16_t hwaWinRamOffset
HWA windowing RAM offset in number of samples.
Definition: rangeprochwa.h:244
uint8_t numVirtualAntennas
Number of virtual antennas.
Definition: rangeprochwa.h:427
bool endOfChirp
End of Chirp indication for rangeProcHWA.
Definition: rangeprochwa.h:566
DPU_RangeProcHWA_InputMode dataInputMode
Data Input Mode,.
Definition: rangeprochwa.h:247
DPEDMA_ChanCfg dataInSignature
EDMA configuration for rangeProc data Input Signature.
Definition: rangeprochwa.h:274
RangeProc EDMA configuration.
Definition: rangeprochwa.h:287
uint16_t fftOutputDivShift
Specify amount of right (divide) shift to apply to convert HWA internal 24-bit Range FFT output to 16...
Definition: rangeprochwa.h:209
bool isBpmEnabled
Flag that indicates if BPM is enabled. BPM can only be enabled/disabled during configuration time.
Definition: rangeprochwa.h:481
EDMA interrupt configuration object. The object is passed to the EDMA_registerIntr() function....
Definition: edma/v0/edma.h:451
Edma_IntrObject * intrObj
EDMA interrupt object.
Definition: rangeprochwa.h:365
RangeProcHWA static configuration.
Definition: rangeprochwa.h:422
ADC Data buffer definition.
Definition: dpif_adcdata.h:111
uint16_t numChirpsPerFrame
Number of chirps per frame.
Definition: rangeprochwa.h:441
uint8_t paramSetStartIdx
HWA paramset Start index.
Definition: rangeprochwa.h:233
DPU_RangeProcHWA_FFTtuning rangeFFTtuning
Range FFT Tuning Params.
Definition: rangeprochwa.h:477
uint16_t numRangeBins
Number of range bins.
Definition: rangeprochwa.h:430
bool enableMinorMotion
Minor motion detection enable flag.
Definition: rangeprochwa.h:487
bool enableMajorMotion
Major motion detection enable flag.
Definition: rangeprochwa.h:484
uint32_t windowSize
Range FFT window coefficients size in bytes non-symmetric window, size = sizeof(uint32_t) * numADCSam...
Definition: rangeprochwa.h:465
int32_t * window
Range FFT window coefficients, Appliation provided windows coefficients After DPU_RangeProcHWA_config...
Definition: rangeprochwa.h:459
Base error codes for the data path Modules.
uint8_t compressionFactor
Definition: rangeprochwa.h:405
uint8_t hardwareTrigSrc
HWA hardware trigger source. This is used only in DPU_RangeProcHWA_InputMode_HWA_INTERNAL_MEM mode.
Definition: rangeprochwa.h:253
bool isCompressionEnabled
compression enable/disable flag for radar cube data
Definition: rangeprochwa.h:496
uint16_t numDopplerChirpsPerFrame
Number of Doppler chirps per frame.
Definition: rangeprochwa.h:444
EDMA channel configuration with 2 shadow channels.
Definition: dpedma.h:190
uint16_t numMinorMotionChirpsPerFrame
Number of chirps per frame for Minor Motion Detection.
Definition: rangeprochwa.h:450
DPEDMA_ChanCfg dataOutMinor
EDMA configuration for rangeProc data Out for Minor Motion Radar cube.
Definition: rangeprochwa.h:295
RangeProcHWA hardware resources.
Definition: rangeprochwa.h:347
int32_t DPU_RangeProcHWA_process(DPU_RangeProcHWA_Handle handle, DPU_RangeProcHWA_OutParams *outParams)
RangeProc HWA configuration.
Definition: rangeprochwa.h:231
EDMA Configuration Utility API definitions for HWA.
DPU_RangeProcHWA_Handle DPU_RangeProcHWA_init(DPU_RangeProcHWA_InitParams *initParams, int32_t *errCode)
DPU_RangeProcHWA_HW_Resources hwRes
rangeProc hardware resources
Definition: rangeprochwa.h:530
DPIF_ADCBufData ADCBufData
ADCBuf buffer interface.
Definition: rangeprochwa.h:468
DPU_RangeProcHWA_HwaConfig hwaCfg
HWA configuration.
Definition: rangeprochwa.h:352
Defines RF ADCBuf interface.
cmplx32ImRe_t * dcRangeSigMean
Pointer to Calibrate DC Range signature buffer The size of the buffer = DPU_RANGEPROC_SIGNATURE_COMP_...
Definition: rangeprochwa.h:375
DPU_RangeProcHWA_compressCfg compressCfg
compression parameters for radar cube data
Definition: rangeprochwa.h:499
uint32_t DPU_RangeProcHWA_InputMode
RangeProc data input mode.
Definition: rangeprochwa.h:177
uint32_t frmCntrModNumFramesPerMinorMot
Frame counter to support power saving mode.
Definition: rangeprochwa.h:490
uint16_t rangeFftSize
Number of bins used in Range FFT Calculation.
Definition: rangeprochwa.h:435
rangeProcHWA output parameters populated during rangeProc Processing time
Definition: rangeprochwa.h:564
RangeProc EDMA configuration.
Definition: rangeprochwa.h:267
DPU_RangeProcHWA_StaticConfig staticCfg
rangeProc static configuration
Definition: rangeprochwa.h:533
int32_t DPU_RangeProcHWA_GetNumUsedHwaParamSets(DPU_RangeProcHWA_Handle handle, uint8_t *numUsedHwaParamSets)
rangeProcHWA output parameters populated during rangeProc Processing time
Definition: rangeprochwa.h:549
DPEDMA_2LinkChanCfg dataIn
EDMA configuration for rangeProc data Input This is needed only in DPU_RangeProcHWA_InputMode_ISOLATE...
Definition: rangeprochwa.h:271
uint32_t dcRangeSigMeanSize
DC range calibration scratch buffer size.
Definition: rangeprochwa.h:378
Range FFT configuration.
Definition: rangeprochwa.h:528
Radar Cube Buffer Interface.
Definition: dpif_radarcube.h:105
uint8_t lowPowerMode
Low power mode 0-disabled, 1-enabled, 2-test mode (power stays on, system coftware components reset)
Definition: rangeprochwa.h:493
DPEDMA_ChanCfg dataOutMajor
EDMA configuration for rangeProc data Out for Major Motion Radar cube It must be a HWACC triggered ED...
Definition: rangeprochwa.h:291
RangeProcHWA dynamic configuration.
Definition: rangeprochwa.h:513
uint32_t dummyDst
Dummy location
Definition: rangeprochwa.h:332
Defines the data path radar cube data interface.
DPU_RangeProcHWA_EDMAOutputConfig edmaOutCfg
EDMA configuration for rangeProc data Output.
Definition: rangeprochwa.h:358
uint16_t numFramesPerMinorMotProc
Number of frames per Minor Motion Processing.
Definition: rangeprochwa.h:453
uint8_t resetDcRangeSigMeanBuffer
Flag to reset dcRangeSigMean buffer 1 - to reset the dcRangeSigMean buffer and counter 0 - do not res...
Definition: rangeprochwa.h:474
int32_t DPU_RangeProcHWA_control(DPU_RangeProcHWA_Handle handle, DPU_RangeProcHWA_Cmd cmd, void *arg, uint32_t argSize)
void * EDMA_Handle
A handle that is returned from a EDMA_open() call.
Definition: edma/v0/edma.h:471
uint16_t isChirpDataReal
1 if ADC Samples are real
Definition: rangeprochwa.h:438
int32_t DPU_RangeProcHWA_config(DPU_RangeProcHWA_Handle handle, DPU_RangeProcHWA_Config *rangeHwaCfg)
void * DPU_RangeProcHWA_Handle
rangeProc DPU Handle
Definition: rangeprochwa.h:578
DPU_RangeProc_stats stats
rangeProcHWA stats
Definition: rangeprochwa.h:569
uint8_t hwaWinSym
Flag to indicate if HWA windowing is symmetric see HWA_WINDOW_SYMM definitions in HWA driver's doxyge...
Definition: rangeprochwa.h:241
uint32_t dummySrc
Dummy location.
Definition: rangeprochwa.h:330
Compression parameters.
Definition: rangeprochwa.h:403
int32_t DPU_RangeProcHWA_deinit(DPU_RangeProcHWA_Handle handle)
DPIF_RadarCube radarCubeMinMot
Radar cube data interface for Minor Motion Detection.
Definition: rangeprochwa.h:389
DPU_RangeProcHWA_EDMAInputConfig edmaInCfg
EDMA configuration for rangeProc data Input.
Definition: rangeprochwa.h:355
DPEDMA_2LinkChanCfg evtDecim
EDMA for chirp event decimation for minor motion detection
Definition: rangeprochwa.h:298
uint16_t numDopplerChirpsPerProc
Number of Doppler chirps per processing, determines the radar cube size.
Definition: rangeprochwa.h:447
EDMA Configuration Utility API definitions.
uint32_t numComplexElements
Definition: rangeprochwa.h:408
void * HWA_Handle
A handle that is returned from a HWA_open() call.
Definition: hwa/v0/hwa.h:620
DPU_RangeProcHWA_DynamicConfig dynCfg
rangeProc dynamic configuration
Definition: rangeprochwa.h:536
uint8_t numTxAntennas
Number of transmit antennas.
Definition: rangeprochwa.h:424
rangeProc FFT tuning parameters for HWA based Range FFT
Definition: rangeprochwa.h:204
RangeProc output EDMA configuration.
Definition: rangeprochwa.h:326
DPU_RangeProc_CalibDcRangeSigCfg * calibDcRangeSigCfg
Pointer to Calibrate DC Range signature configuration.
Definition: rangeprochwa.h:515
uint16_t numLastButterflyStagesToScale
Specify number of Last butterfly stages to scale to avoid clipping within HWA FFT stages....
Definition: rangeprochwa.h:216
EDMA channel configuration.
Definition: dpedma.h:132