![Logo](ti_logo.svg) |
xWRL1432 MMWAVE-L-SDK
05.03.00
|
|
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))
100 #define DPU_RANGEPROCHWA_EINVAL (DP_ERRNO_RANGE_PROC_BASE-1)
105 #define DPU_RANGEPROCHWA_ENOMEM (DP_ERRNO_RANGE_PROC_BASE-2)
110 #define DPU_RANGEPROCHWA_EINTERNAL (DP_ERRNO_RANGE_PROC_BASE-3)
115 #define DPU_RANGEPROCHWA_ENOTIMPL (DP_ERRNO_RANGE_PROC_BASE-4)
120 #define DPU_RANGEPROCHWA_EINPROGRESS (DP_ERRNO_RANGE_PROC_BASE-5)
125 #define DPU_RANGEPROCHWA_ECMD (DP_ERRNO_RANGE_PROC_BASE-6)
130 #define DPU_RANGEPROCHWA_ESEMA (DP_ERRNO_RANGE_PROC_BASE-7)
135 #define DPU_RANGEPROCHWA_EDCREMOVAL (DP_ERRNO_RANGE_PROC_BASE-8)
140 #define DPU_RANGEPROCHWA_EADCBUF_INTF (DP_ERRNO_RANGE_PROC_BASE-9)
145 #define DPU_RANGEPROCHWA_ERADARCUBE_INTF (DP_ERRNO_RANGE_PROC_BASE-10)
150 #define DPU_RANGEPROCHWA_EWINDOW (DP_ERRNO_RANGE_PROC_BASE-11)
155 #define DPU_RANGEPROCHWA_EBUTTERFLYSCALE (DP_ERRNO_RANGE_PROC_BASE-12)
160 #define DPU_RANGEPROCHWA_EEDMA_ERROR (DP_ERRNO_RANGE_PROC_BASE-13)
177 #define DPU_RangeProcHWA_InputMode_MAPPED (uint32_t) 0U
178 #define DPU_RangeProcHWA_InputMode_ISOLATED (uint32_t) 1U
179 #define DPU_RangeProcHWA_InputMode_HWA_INTERNAL_MEM (uint32_t) 2U
191 #define DPU_RangeProcHWA_Cmd_dcRangeCfg (uint32_t) 0
192 #define DPU_RangeProcHWA_Cmd_triggerProc (uint32_t) 1
203 typedef struct DPU_RangeProcHWA_FFTtuning_t{
229 typedef struct DPU_RangeProcHWA_HwaConfig_t
249 uint8_t dmaTrigSrcChan[2];
265 typedef struct DPU_RangeProcHWA_EDMAInputConfig_t
285 typedef struct DPU_RangeProcHWA_EDMAOutputConfigPath_t
324 typedef struct DPU_RangeProcHWA_EDMAOutputConfig_t
345 typedef struct DPU_RangeProcHWA_HW_Resources_t
400 typedef struct DPU_RangeProcHWA_StaticConfig_t
484 typedef struct DPU_RangeProcHWA_DynamicConfig_t
499 typedef struct DPU_RangeProcHWA_Config_t
520 typedef struct DPU_RangeProcHWA_InitParams_t
535 typedef struct DPU_RangeProcHWA_OutParams_t
589 uint8_t *numUsedHwaParamSets
HWA_Handle hwaHandle
HWA Handle.
Definition: rangeprochwa.h:523
uint8_t numParamSet
Number of HWA param sets must be DPU_RANGEPROCHWA_NUM_HWA_PARAM_SETS.
Definition: rangeprochwa.h:235
DPIF_RadarCube radarCube
Radar cube data interface. Radar cube buffer (radarCube.data) For R5F: Byte alignment Requirement = D...
Definition: rangeprochwa.h:385
uint32_t DPU_RangeProcHWA_Cmd
rangeProc control command
Definition: rangeprochwa.h:190
EDMA_Handle edmaHandle
EDMA Handle.
Definition: rangeprochwa.h:348
uint16_t hwaWinRamOffset
HWA windowing RAM offset in number of samples.
Definition: rangeprochwa.h:243
uint8_t numVirtualAntennas
Number of virtual antennas.
Definition: rangeprochwa.h:406
bool endOfChirp
End of Chirp indication for rangeProcHWA.
Definition: rangeprochwa.h:538
DPU_RangeProcHWA_InputMode dataInputMode
Data Input Mode,.
Definition: rangeprochwa.h:246
DPEDMA_ChanCfg dataInSignature
EDMA configuration for rangeProc data Input Signature.
Definition: rangeprochwa.h:273
RangeProc EDMA configuration.
Definition: rangeprochwa.h:286
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:208
bool isBpmEnabled
Flag that indicates if BPM is enabled. BPM can only be enabled/disabled during configuration time.
Definition: rangeprochwa.h:460
EDMA interrupt configuration object. The object is passed to the EDMA_registerIntr() function....
Definition: edma/v0/edma.h:449
Edma_IntrObject * intrObj
EDMA interrupt object.
Definition: rangeprochwa.h:364
RangeProcHWA static configuration.
Definition: rangeprochwa.h:401
ADC Data buffer definition.
Definition: dpif_adcdata.h:111
uint16_t numChirpsPerFrame
Number of chirps per frame.
Definition: rangeprochwa.h:420
uint8_t paramSetStartIdx
HWA paramset Start index.
Definition: rangeprochwa.h:232
DPU_RangeProcHWA_FFTtuning rangeFFTtuning
Range FFT Tuning Params.
Definition: rangeprochwa.h:456
uint16_t numRangeBins
Number of range bins.
Definition: rangeprochwa.h:409
bool enableMinorMotion
Minor motion detection enable flag.
Definition: rangeprochwa.h:466
bool enableMajorMotion
Major motion detection enable flag.
Definition: rangeprochwa.h:463
uint32_t windowSize
Range FFT window coefficients size in bytes non-symmetric window, size = sizeof(uint32_t) * numADCSam...
Definition: rangeprochwa.h:444
int32_t * window
Range FFT window coefficients, Appliation provided windows coefficients After DPU_RangeProcHWA_config...
Definition: rangeprochwa.h:438
Base error codes for the data path Modules.
uint8_t hardwareTrigSrc
HWA hardware trigger source. This is used only in DPU_RangeProcHWA_InputMode_HWA_INTERNAL_MEM mode.
Definition: rangeprochwa.h:252
uint16_t numDopplerChirpsPerFrame
Number of Doppler chirps per frame.
Definition: rangeprochwa.h:423
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:429
DPEDMA_ChanCfg dataOutMinor
EDMA configuration for rangeProc data Out for Minor Motion Radar cube.
Definition: rangeprochwa.h:294
RangeProcHWA hardware resources.
Definition: rangeprochwa.h:346
int32_t DPU_RangeProcHWA_process(DPU_RangeProcHWA_Handle handle, DPU_RangeProcHWA_OutParams *outParams)
RangeProc HWA configuration.
Definition: rangeprochwa.h:230
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:502
DPIF_ADCBufData ADCBufData
ADCBuf buffer interface.
Definition: rangeprochwa.h:447
DPU_RangeProcHWA_HwaConfig hwaCfg
HWA configuration.
Definition: rangeprochwa.h:351
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:374
uint32_t DPU_RangeProcHWA_InputMode
RangeProc data input mode.
Definition: rangeprochwa.h:176
uint32_t frmCntrModNumFramesPerMinorMot
Frame counter to support power saving mode.
Definition: rangeprochwa.h:469
uint16_t rangeFftSize
Number of bins used in Range FFT Calculation.
Definition: rangeprochwa.h:414
rangeProcHWA output parameters populated during rangeProc Processing time
Definition: rangeprochwa.h:536
RangeProc EDMA configuration.
Definition: rangeprochwa.h:266
DPU_RangeProcHWA_StaticConfig staticCfg
rangeProc static configuration
Definition: rangeprochwa.h:505
int32_t DPU_RangeProcHWA_GetNumUsedHwaParamSets(DPU_RangeProcHWA_Handle handle, uint8_t *numUsedHwaParamSets)
rangeProcHWA output parameters populated during rangeProc Processing time
Definition: rangeprochwa.h:521
DPEDMA_2LinkChanCfg dataIn
EDMA configuration for rangeProc data Input This is needed only in DPU_RangeProcHWA_InputMode_ISOLATE...
Definition: rangeprochwa.h:270
uint32_t dcRangeSigMeanSize
DC range calibration scratch buffer size.
Definition: rangeprochwa.h:377
Range FFT configuration.
Definition: rangeprochwa.h:500
Radar Cube Buffer Interface.
Definition: dpif_radarcube.h:104
uint8_t lowPowerMode
Low power mode 0-disabled, 1-enabled, 2-test mode (power stays on, system coftware components reset)
Definition: rangeprochwa.h:472
DPEDMA_ChanCfg dataOutMajor
EDMA configuration for rangeProc data Out for Major Motion Radar cube It must be a HWACC triggered ED...
Definition: rangeprochwa.h:290
RangeProcHWA dynamic configuration.
Definition: rangeprochwa.h:485
uint32_t dummyDst
Dummy location
Definition: rangeprochwa.h:331
Defines the data path radar cube data interface.
DPU_RangeProcHWA_EDMAOutputConfig edmaOutCfg
EDMA configuration for rangeProc data Output.
Definition: rangeprochwa.h:357
uint16_t numFramesPerMinorMotProc
Number of frames per Minor Motion Processing.
Definition: rangeprochwa.h:432
uint8_t resetDcRangeSigMeanBuffer
Flag to reset dcRangeSigMean buffer 1 - to reset the dcRangeSigMean buffer and counter 0 - do not res...
Definition: rangeprochwa.h:453
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:469
uint16_t isChirpDataReal
1 if ADC Samples are real
Definition: rangeprochwa.h:417
int32_t DPU_RangeProcHWA_config(DPU_RangeProcHWA_Handle handle, DPU_RangeProcHWA_Config *rangeHwaCfg)
void * DPU_RangeProcHWA_Handle
rangeProc DPU Handle
Definition: rangeprochwa.h:550
DPU_RangeProc_stats stats
rangeProcHWA stats
Definition: rangeprochwa.h:541
uint8_t hwaWinSym
Flag to indicate if HWA windowing is symmetric see HWA_WINDOW_SYMM definitions in HWA driver's doxyge...
Definition: rangeprochwa.h:240
uint32_t dummySrc
Dummy location.
Definition: rangeprochwa.h:329
int32_t DPU_RangeProcHWA_deinit(DPU_RangeProcHWA_Handle handle)
DPIF_RadarCube radarCubeMinMot
Radar cube data interface for Minor Motion Detection.
Definition: rangeprochwa.h:388
DPU_RangeProcHWA_EDMAInputConfig edmaInCfg
EDMA configuration for rangeProc data Input.
Definition: rangeprochwa.h:354
DPEDMA_2LinkChanCfg evtDecim
EDMA for chirp event decimation for minor motion detection
Definition: rangeprochwa.h:297
uint16_t numDopplerChirpsPerProc
Number of Doppler chirps per processing, determines the radar cube size.
Definition: rangeprochwa.h:426
EDMA Configuration Utility API definitions.
void * HWA_Handle
A handle that is returned from a HWA_open() call.
Definition: hwa/v0/hwa.h:564
DPU_RangeProcHWA_DynamicConfig dynCfg
rangeProc dynamic configuration
Definition: rangeprochwa.h:508
uint8_t numTxAntennas
Number of transmit antennas.
Definition: rangeprochwa.h:403
rangeProc FFT tuning parameters for HWA based Range FFT
Definition: rangeprochwa.h:203
RangeProc output EDMA configuration.
Definition: rangeprochwa.h:325
DPU_RangeProc_CalibDcRangeSigCfg * calibDcRangeSigCfg
Pointer to Calibrate DC Range signature configuration.
Definition: rangeprochwa.h:487
uint16_t numLastButterflyStagesToScale
Specify number of Last butterfly stages to scale to avoid clipping within HWA FFT stages....
Definition: rangeprochwa.h:215
EDMA channel configuration.
Definition: dpedma.h:132