 |
TI-radar AWR1843 ARM-Cortex R4F core
1
|
Go to the documentation of this file.
19 #include <ti/common/mmwave_error.h>
20 #include <ti/drivers/soc/soc.h>
21 #include <ti/drivers/crc/crc.h>
22 #include <ti/drivers/uart/UART.h>
23 #include <ti/drivers/pinmux/pinmux.h>
24 #include <ti/drivers/esm/esm.h>
25 #include <ti/drivers/soc/soc.h>
26 #include <ti/drivers/mailbox/mailbox.h>
27 #include <ti/control/mmwave/mmwave.h>
28 #include <ti/drivers/cbuff/cbuff.h>
29 #include <ti/drivers/adcbuf/ADCBuf.h>
30 #include <ti/drivers/edma/edma.h>
31 #include <ti/drivers/osal/DebugP.h>
35 #include <ti/sysbios/knl/Semaphore.h>
36 #include <ti/sysbios/knl/Event.h>
38 #include <ti/control/mmwave/mmwave.h>
43 #include "dss_data_path.h"
81 #define DSS_START_COMPLETED_EVT Event_Id_07
85 #define MMWDEMO_CLI_EVENTS (MMWDEMO_CLI_SENSORSTART_EVT | \
86 MMWDEMO_CLI_SENSORSTOP_EVT | \
87 MMWDEMO_CLI_FRAMESTART_EVT)
91 #define MMWDEMO_BSS_FAULT_EVENTS (MMWDEMO_BSS_CPUFAULT_EVT | \
92 MMWDEMO_BSS_ESMFAULT_EVT )
106 typedef enum MmwDemo_DSS_STATE_e
109 MmwDemo_DSS_STATE_INIT = 0,
112 MmwDemo_DSS_STATE_STARTED,
115 MmwDemo_DSS_STATE_STOPPED,
119 MmwDemo_DSS_STATE_STOP_PENDING
123 typedef struct MmwDemo_DSS_STATS_t
141 uint32_t chirpIntSkipCounter;
144 uint32_t frameIntSkipCounter;
147 uint32_t chirpIntCounter;
150 uint32_t frameStartIntCounter;
158 uint32_t frameStartEvt;
162 uint32_t frameTrigEvt;
165 uint32_t numFailedTimingReports;
168 uint32_t numCalibrationReports;
172 uint32_t detObjLoggingSkip;
176 uint32_t detObjLoggingErr;
225 ADCBuf_Handle adcBufHandle;
226 MmwDemo_DSS_STATE state;
227 MmwDemo_DSS_STATS
stats;
229 uint8_t loggingBufferAvailable;
230 uint8_t subframeIndx;
231 uint8_t interFrameProcToken;
232 uint8_t frameStartIntToken;
233 uint8_t chirpProcToken;
234 uint8_t mboxProcToken;
235 uint8_t frameProcToken;
259 extern void _MmwDemo_dssAssert(int32_t expression,
const char *file, int32_t line);
260 #define MmwDemo_dssAssert(expression) { \
261 _MmwDemo_dssAssert(expression, \
262 __FILE__, __LINE__); \
263 DebugP_assert(expression); \
void MSS_CLIInit(void)
This is the CLI Execution Task.
int32_t chirpInt
! The total number of chirp available interrupts.
struct MCB_t MCB
DSP-Subsystem (DSS) Master control block (MCB) The structure is used to hold handling information,...
bool isMMWaveOpen
! flag which indicates if the radar is transmitting or not
UART_Handle commandUartHandle
! UART Logging Handle
void Cfg_ProfileCfgInitParams(uint8_t profileNum, rlProfileCfg_t *ptrProfileCfg)
The function initializes the profile configuration with the default parameters.
int32_t numChirpsPerSubframe[NUM_SUBFRAMES]
! A counter for chirp interrupts. It is reset every subframe.
uint8_t datapathConfigEvt
int32_t chirpIntcumSum
! The number of subframes transmitted derived from the frame start interrupts.
void Cfg_ChirpCfgInitParams(uint8_t chirpNum, rlChirpCfg_t *ptrChirpCfg)
The function initializes the chirp configuration with the default parameters.
Mbox_Handle mboxHandle
! Handle to the SOC Module
uint8_t datapathStopEvt
! Counter which tracks the number of datapath start event detected
uint8_t cliFrameStartEvt
! CLI event for sensorStop
int32_t subframeId
! The number of chirps per subframe.
void Cfg_ChannelCfgInitParams(rlChanCfg_t *ptrChannelCfg)
The function initializes the channel configuration with the default parameters.
SOC_SysIntListenerHandle frameStartIntHandle
! Handle to the SOC chirp interrupt listener Handle
MMWave_Handle ctrlHandle
! Handle to the SOC frame interrupt listener Handle
bool runningStatus
! flag which indicates if the mmWave link has been configured
uint8_t cliSensorStopEvt
! CLI event for sensorStar
int32_t subframeCntFromChirpInt
! token for frame start events.
mmW_MSS_STATS stats
! UART Command Handle used to interface with the CLI
UART_Handle loggingUartHandle
! MSS system event handle
void Cfg_ADCOutCfgInitParams(rlAdcOutCfg_t *ptrADCOutCfg)
The function initializes the ADCOut configuration with the default parameters.
SOC_SysIntListenerHandle chirpIntHandle
! Semaphore handle for the mailbox communication
int32_t subframeCntFromFrameStart
! The number of sub-frames transmitted derived from chirp available interrupts.
uint8_t datapathStartEvt
! Counter which tracks the number of datapath config
bool cfgStatus
!mmWave stats
MCB gMCB
gMCB structure contains the tracking information required by the design is aligned using DATA_ALIGN p...
uint32_t numFailedTimingReports
uint32_t numCalibrationReports
! Counter which tracks the number of failed calibration reports
void Cfg_LowPowerModeInitParams(rlLowPowerModeCfg_t *ptrLowPowerMode)
The function initializes the low power configuration with the default parameters.
DSP-Subsystem (DSS) Master control block (MCB) The structure is used to hold handling information,...
Event_Handle eventHandle
mmWave control handle use to initialize the link infrastructure, which allows communication between t...
uint8_t cliSensorStartEvt
int32_t frameStartToken
! flag which indicates if the basic radar configuration is completed.
Semaphore_Handle mboxSemHandle
! Handle to the peer Mailbox used to exchange messages between the MSS and DSS
struct mmW_MSS_STATS_t mmW_MSS_STATS
The structure is used to hold the statistics information for the Millimeter Wave Application.
void Cfg_AdvFrameCfgInitParams(rlAdvFrameCfg_t *ptrAdvFrameCfg)
The function initializes the frame configuration with the default parameters.
The structure is used to hold the statistics information for the Millimeter Wave Application.
void Cfg_FrameCfgInitParams(rlFrameCfg_t *ptrFrameCfg)
The function initializes the frame configuration with the default parameters.