xWRL6432 MMWAVE-L-SDK  05.04.00.01
dopplerproc_internal.h
Go to the documentation of this file.
1 /*
2  * NOTE:
3  * (C) Copyright 2023 Texas Instruments, Inc.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the
15  * distribution.
16  *
17  * Neither the name of Texas Instruments Incorporated nor the names of
18  * its contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
40 /**************************************************************************
41  *************************** Include Files ********************************
42  **************************************************************************/
43 #ifndef DOPPLERPROC_INTERNAL_H_
44 #define DOPPLERPROC_INTERNAL_H_
45 
46 /* Standard Include Files. */
47 #include <stdint.h>
48 #include <stdlib.h>
49 #include <stddef.h>
50 #include <string.h>
51 #include <stdio.h>
52 #include <math.h>
53 
54 /* mmWave SDK Driver/Common Include Files */
55 #include <drivers/hwa.h>
56 
57 /* DPIF Components Include Files */
60 
61 /* mmWave SDK Data Path Include Files */
62 #include <datapath/dpif/dp_error.h>
63 #include "dopplerprochwa.h"
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
78 typedef struct DPU_DopplerProcHWA_Obj_t
79 {
82 
85 
88 
91 
94 
96  bool inProgress;
97 
100 
103 
105  uint16_t hwaNumLoops;
106 
109 
112 
114  uint32_t hwaMemBankAddr[DPU_DOPPLERPROCHWA_NUM_HWA_MEMBANKS];
115 
117 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif
dopplerProcHWAObj::edmaDoneSemaHandle
SemaphoreP_Object edmaDoneSemaHandle
EDMA Done semaphore Handle.
Definition: dopplerproc_internal.h:93
dopplerProcHWAObj::edmaIn
DPU_DopplerProc_Edma edmaIn
EDMA configuration for Input data (Radar cube -> HWA memory).
Definition: dopplerproc_internal.h:87
dopplerProcHWAObj::edmaHandle
EDMA_Handle edmaHandle
EDMA driver handle.
Definition: dopplerproc_internal.h:84
dopplerProcHWAObj
dopplerProc DPU internal data Object
Definition: dopplerproc_internal.h:79
dpif_detmatrix.h
Defines the detection matrix buffer interface.
dopplerProcHWAObj::hwaDmaTriggerSourcePong
uint8_t hwaDmaTriggerSourcePong
DMA trigger source channel for Pong param set.
Definition: dopplerproc_internal.h:102
dp_error.h
Base error codes for the data path Modules.
dopplerprochwa.h
Implements Datapath doppler processing functionality using the HWA. Based on the RF parameters and ra...
DPU_DopplerProc_Edma
dopplerProc DPU EDMA configuration parameters
Definition: dopplerproc_common.h:70
dopplerProcHWAObj::hwaDmaTriggerSourcePing
uint8_t hwaDmaTriggerSourcePing
DMA trigger source channel for Ping param set.
Definition: dopplerproc_internal.h:99
dopplerProcHWAObj::hwaNumLoops
uint16_t hwaNumLoops
HWA number of loops.
Definition: dopplerproc_internal.h:105
dopplerProcHWAObj::hwaDoneSemaHandle
SemaphoreP_Object hwaDoneSemaHandle
HWA Processing Done semaphore Handle.
Definition: dopplerproc_internal.h:90
hwa.h
DPU_DOPPLERPROCHWA_NUM_HWA_MEMBANKS
#define DPU_DOPPLERPROCHWA_NUM_HWA_MEMBANKS
Number of HWA memory banks needed.
Definition: dopplerprochwa.h:166
dpif_radarcube.h
Defines the data path radar cube data interface.
EDMA_Handle
void * EDMA_Handle
A handle that is returned from a EDMA_open() call.
Definition: edma/v0/edma.h:471
dopplerProcHWAObj::hwaHandle
HWA_Handle hwaHandle
HWA Handle.
Definition: dopplerproc_internal.h:81
SemaphoreP_Object
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
dopplerProcHWAObj::hwaParamStopIdx
uint8_t hwaParamStopIdx
HWA stop paramset index.
Definition: dopplerproc_internal.h:111
dopplerProcHWAObj::hwaParamStartIdx
uint8_t hwaParamStartIdx
HWA start paramset index.
Definition: dopplerproc_internal.h:108
dopplerProcHWAObj::inProgress
bool inProgress
Flag to indicate if DPU is in processing state.
Definition: dopplerproc_internal.h:96
HWA_Handle
void * HWA_Handle
A handle that is returned from a HWA_open() call.
Definition: hwa/v0/hwa.h:620