 |
TI-radar AWR1843 C674x DSP 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>
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 )
187 typedef struct mmW_MSS_STATS_t
190 uint8_t cliSensorStartEvt;
191 uint8_t cliSensorStopEvt;
192 uint8_t cliFrameStartEvt;
193 uint8_t datapathConfigEvt;
195 uint8_t datapathStartEvt;
196 uint8_t datapathStopEvt;
197 uint32_t numFailedTimingReports;
199 uint32_t numCalibrationReports;
238 Event_Handle eventHandle;
239 UART_Handle loggingUartHandle;
240 UART_Handle commandUartHandle;
245 int32_t frameStartToken;
246 int32_t subframeCntFromChirpInt;
247 int32_t subframeCntFromFrameStart;
248 int32_t chirpIntcumSum;
260 #define MmwDemo_dssAssert(expression) { \
261 _MmwDemo_dssAssert(expression, \
262 __FILE__, __LINE__); \
263 DebugP_assert(expression); \
269 extern void MSS_CLIInit (
void);
uint32_t chirpIntSkipCounter
Counter which tracks the number of chirp interrupt skipped due to stopped state of sensor.
State after data path is initialized.
uint32_t chirpIntCounter
Counter which tracks the number of chirp interrupt detected.
uint8_t loggingBufferAvailable
! Data Path object
State after data path is started.
struct MCB_t MCB
DSP-Subsystem (DSS) Master control block (MCB) The structure is used to hold handling information,...
State after STOP request was received by DSP but complete stop is on-going.
uint32_t frameStartEvt
Counter which tracks the number of frame start event detected The frame start event is triggered in t...
State after data path is stopped.
uint32_t detObjLoggingSkip
Counter which tracks the number of times saving detected objects in logging buffer is skipped.
void Cfg_ProfileCfgInitParams(uint8_t profileNum, rlProfileCfg_t *ptrProfileCfg)
The function initializes the profile configuration with the default parameters.
uint32_t frameStartIntCounter
Counter which tracks the number of frame start interrupt detected.
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
void _MmwDemo_dssAssert(int32_t expression, const char *file, int32_t line)
struct MmwDemo_DSS_STATS_t MmwDemo_DSS_STATS
uint8_t configEvt
Counter which tracks the number of config events The config event is triggered in mmwave config callb...
void Cfg_ChannelCfgInitParams(rlChanCfg_t *ptrChannelCfg)
The function initializes the channel configuration with the default parameters.
uint32_t frameIntSkipCounter
Counter which tracks the number of chirp interrupt skipped due to stopped state of sensor.
SOC_SysIntListenerHandle frameStartIntHandle
! Handle to the SOC chirp interrupt listener Handle
MMWave_Handle ctrlHandle
! Handle to the SOC frame interrupt listener Handle
MmwDemo_DSS_STATE state
! Handle to the ADCBUF Driver
enum MmwDemo_DSS_STATE_e MmwDemo_DSS_STATE
Millimeter Wave Demo state.
MmwDemo_DSS_STATS stats
! mmw Demo state
uint32_t numCalibrationReports
Counter which tracks the number of Calibration Report received from BSS
uint32_t chirpEvt
Counter which tracks the number of chirp event detected The chirp event is triggered in the ISR for c...
MmwDemo_DSS_STATE_e
Millimeter Wave Demo state.
uint32_t detObjLoggingErr
Counter which tracks the number of times saving detected objects in logging buffer has an error.
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
MCB gMCB
Global Variable for tracking information required by the design.
uint8_t frameProcToken
! 'mailbox has a message' token
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,...
DSS_DataPathObj dataPathObj[NUM_SUBFRAMES]
! mmw Demo statistics
uint32_t numFailedTimingReports
Counter which tracks the number of Failed Timing Reports received from BSS
Millimeter Wave Demo Data Path Information.
uint8_t interFrameProcToken
! Subframe index
uint8_t stopEvt
Counter which tracks the number of stop events The start event is triggered in mmwave stop callback f...
uint32_t frameTrigEvt
Counter which tracks the number of frames triggered in BSS detected The frame trigger event is trigge...
uint8_t subframeIndx
! Logging buffer flag
uint8_t chirpProcToken
! frame start token
uint8_t startEvt
Counter which tracks the number of start events The start event is triggered in mmwave start callback...
Semaphore_Handle mboxSemHandle
! Handle to the peer Mailbox used to exchange messages between the MSS and DSS
uint8_t frameStartIntToken
! inter frameProc token
uint8_t mboxProcToken
! chirpProc token
void Cfg_AdvFrameCfgInitParams(rlAdvFrameCfg_t *ptrAdvFrameCfg)
The function initializes the frame configuration with the default parameters.
ADCBuf_Handle adcBufHandle
mmWave control handle use to initialize the link infrastructure, which allows communication between t...
This is the data path processing header.
void Cfg_FrameCfgInitParams(rlFrameCfg_t *ptrFrameCfg)
The function initializes the frame configuration with the default parameters.