xWRL6432 MMWAVE-L-SDK  05.04.00.01
dpif_adcdata.h
Go to the documentation of this file.
1 /* \par
2  * NOTE:
3  * (C) Copyright 2018 - 2021 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  */
33 
41 /**************************************************************************
42  *************************** Include Files ********************************
43  **************************************************************************/
44 #ifndef DPIF_ADCDATA_H
45 #define DPIF_ADCDATA_H
46 
47 /* MMWAVE SDK Include Files */
48 #include <common/syscommon.h>
49 #include <datapath/dpif/dpif_types.h>
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
62 typedef uint32_t DPIF_RXCHAN_INTERLEAVE;
63 #define DPIF_RXCHAN_NON_INTERLEAVE_MODE (uint32_t) 0U
64 #define DPIF_RXCHAN_INTERLEAVE_MODE (uint32_t) 1U
65 
73 typedef struct DPIF_ADCBufProperty_t
74 {
76  DPIF_DATAFORMAT dataFmt;
77 
80 
83 
88  uint8_t adcBits;
89 
91  uint8_t numRxAntennas;
92 
94  uint16_t numAdcSamples;
95 
100  uint16_t rxChanOffset[SYS_COMMON_NUM_RX_CHANNEL];
102 
110 typedef struct DPIF_ADCBufData_t
111 {
114 
116  uint32_t dataSize;
117 
119  void *data;
121 
122 
123 #ifdef __cplusplus
124 }
125 #endif
126 
127 #endif /* DPIF_ADCDATA_H */
DPIF_ADCBufData::dataSize
uint32_t dataSize
ADCBuf buffer size in bytes.
Definition: dpif_adcdata.h:116
DPIF_ADCBufData
ADC Data buffer definition.
Definition: dpif_adcdata.h:111
DPIF_ADCBufProperty
ADC Data buffer property.
Definition: dpif_adcdata.h:74
DPIF_ADCBufProperty::numChirpsPerChirpEvent
uint8_t numChirpsPerChirpEvent
ADCBUF will generate chirp interrupt event every this many chirps - chirpthreshold.
Definition: dpif_adcdata.h:82
DPIF_ADCBufData::dataProperty
DPIF_ADCBufProperty dataProperty
ADCBuf data property.
Definition: dpif_adcdata.h:113
DPIF_ADCBufProperty::numAdcSamples
uint16_t numAdcSamples
Number of ADC samples.
Definition: dpif_adcdata.h:94
DPIF_RXCHAN_INTERLEAVE
uint32_t DPIF_RXCHAN_INTERLEAVE
RX channel ADC data interleave mode.
Definition: dpif_adcdata.h:62
DPIF_ADCBufProperty::numRxAntennas
uint8_t numRxAntennas
Number of receive antennas.
Definition: dpif_adcdata.h:91
DPIF_ADCBufProperty::adcBits
uint8_t adcBits
ADC out bits 0(12 Bits), 1(14 Bits), 2(16 Bits) refer to rlAdcBitFormat_t for details.
Definition: dpif_adcdata.h:88
DPIF_ADCBufProperty::interleave
DPIF_RXCHAN_INTERLEAVE interleave
Data in interleave or non-interleave mode.
Definition: dpif_adcdata.h:79
DPIF_ADCBufData::data
void * data
ADCBuf data pointer.
Definition: dpif_adcdata.h:119
DPIF_ADCBufProperty::dataFmt
DPIF_DATAFORMAT dataFmt
Data format in adcbuf.
Definition: dpif_adcdata.h:76