WXK
2023-07-20 a9357d6172cb307dc8a6b4740f643bd3c0cded55
Src/decadriver/deca_device_api.h
@@ -67,17 +67,7 @@
#define MAX_RETRIES_FOR_PLL     (6)
#define MAX_RETRIES_FOR_PGF     (3)
//DW1000 SLEEP and WAKEUP configuration parameters
#define DWT_PRESRV_SLEEP 0x0100                      // PRES_SLEEP - on wakeup preserve sleep bit
#define DWT_LOADOPSET    0x0080                   // ONW_L64P - on wakeup load operating parameter set for 64 PSR
#define DWT_CONFIG       0x0040                   // ONW_LDC - on wakeup restore (load) the saved configurations (from AON array into HIF)
#define DWT_TANDV        0x0001                      // ONW_RADC - on wakeup run ADC to sample temperature and voltage sensor values
#define DWT_XTAL_EN       0x10                  // keep XTAL running during sleep
#define DWT_WAKE_SLPCNT  0x8                  // wake up after sleep count
#define DWT_WAKE_CS      0x4                  // wake up on chip select
#define DWT_WAKE_WK      0x2                  // wake up on WAKEUP PIN
#define DWT_SLP_EN       0x1                  // enable sleep/deep sleep functionality
typedef enum
{
     AOA,
@@ -205,6 +195,20 @@
    DWT_SPI_CRC_MODE_WRRD       /* This is used to optionally enable additional CRC check on the SPI read operations, while the CRC check on the SPI write operations is also enabled */
}dwt_spi_crc_mode_e;
//typedef struct
//{
//    uint16_t      maxNoise ;         // LDE max value of noise
//    uint16_t      firstPathAmp1 ;       // Amplitude at floor(index FP) + 1
//    uint16_t      stdNoise ;         // Standard deviation of noise
//    uint16_t      firstPathAmp2 ;      // Amplitude at floor(index FP) + 2
//    uint16_t      firstPathAmp3 ;      // Amplitude at floor(index FP) + 3
//    uint16_t      maxGrowthCIR ;      // Channel Impulse Response max growth CIR
//    uint16_t      rxPreamCount ;      // Count of preamble symbols accumulated
//    //uint32_t        debug1;
//    //uint32_t        debug2;
//    uint16_t      firstPath ;         // First path index (10.6 bits fixed point integer)
//} dwt_rxdiag_t ;
// Defined constants for "mode" bit field parameter passed to dwt_setleds() function.
#define DWT_LEDS_DISABLE     0x00