WXK
2024-06-24 a7480e8f96eb7efe2689fdac2c1d7d0e44e5b5ef
Src/application/dw_app.c
@@ -85,21 +85,33 @@
//    SINGLEPOLL,
//}tag_state=STARTPOLL;
//#define   _UWB_4G
static dwt_config_t config = {
#ifdef   _UWB_4G
   2,               /* Channel number. */
#else
   5,
#endif
//static dwt_config_t config = {
//#ifdef   _UWB_4G
//   2,               /* Channel number. */
//#else
//   5,
//#endif
//   DWT_PRF_64M,     /* Pulse repetition frequency. */
//   DWT_PLEN_128,    /* Preamble length. */
//   DWT_PAC8,        /* Preamble acquisition chunk size. Used in RX only. */
//   9,               /* TX preamble code. Used in TX only. */
//   9,               /* RX preamble code. Used in RX only. */
//   1,               /* Use non-standard SFD (Boolean) */
//   DWT_BR_6M8,      /* Data rate. */
//   DWT_PHRMODE_STD, /* PHY header mode. */
//   (129 + 8 - 8)    /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
//};
dwt_config_t config = {
   5,               /* Channel number. */
   DWT_PRF_64M,     /* Pulse repetition frequency. */
   DWT_PLEN_128,    /* Preamble length. */
   DWT_PAC8,        /* Preamble acquisition chunk size. Used in RX only. */
   DWT_PLEN_1024,    /* Preamble length. */
   DWT_PAC32,        /* Preamble acquisition chunk size. Used in RX only. */
   9,               /* TX preamble code. Used in TX only. */
   9,               /* RX preamble code. Used in RX only. */
   1,               /* Use non-standard SFD (Boolean) */
   DWT_BR_6M8,      /* Data rate. */
   DWT_BR_110K,      /* Data rate. */
   DWT_PHRMODE_STD, /* PHY header mode. */
   (129 + 8 - 8)    /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
   (1025 + 64 - 32)    /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
};
//static uint8_t tx_poll_msg[20] = {0};
//static uint8_t tx_sync_msg[14] = {0};