Revision 26dead12 include/DW1000/v1/alld_dw1000_v1.h
include/DW1000/v1/alld_dw1000_v1.h | ||
---|---|---|
62 | 62 |
#define NUM_CH_SUPPORTED 8 //supported channels are '0', 1, 2, 3, 4, 5, '6', 7 |
63 | 63 |
#define PCODES 25 //supported preamble codes |
64 | 64 |
|
65 |
#define NUM_16M_OFFSET (37) |
|
66 |
#define NUM_16M_OFFSETWB (68) |
|
67 |
#define NUM_64M_OFFSET (26) |
|
68 |
#define NUM_64M_OFFSETWB (59) |
|
69 |
|
|
70 |
#define SPIBUFFLEN (32) |
|
71 |
|
|
72 |
|
|
65 | 73 |
extern const uint8_t chan_idx[NUM_CH_SUPPORTED]; |
74 |
extern const uint16_t lde_replicaCoeff[PCODES]; |
|
75 |
extern const uint8_t chan_idxnb[NUM_CH_SUPPORTED]; |
|
76 |
extern const uint8_t chan_idxwb[NUM_CH_SUPPORTED]; |
|
77 |
extern const uint8_t range25cm16PRFnb[4][NUM_16M_OFFSET]; |
|
78 |
extern const uint8_t range25cm16PRFwb[2][NUM_16M_OFFSETWB]; |
|
79 |
extern const uint8_t range25cm64PRFnb[4][NUM_64M_OFFSET]; |
|
80 |
extern const uint8_t range25cm64PRFwb[2][NUM_64M_OFFSETWB]; |
|
66 | 81 |
|
67 | 82 |
|
68 | 83 |
/** |
... | ... | |
74 | 89 |
const apalControlGpio_t* gpio_reset; /**< @brief The GPIO indicating reset sig*/ |
75 | 90 |
// const apalGpio_t* gpio_exti; /**< @brief The GPIO indicating external interrupt */ |
76 | 91 |
// const apalGpio_t* gpio_reset; /**< @brief The GPIO indicating reset sig*/ |
77 |
/* TODO: better apalControlGpio_t instead of apalGpio_t ? */ |
|
78 |
/* TODO: EXTI, GPIO (RESET) */ |
|
79 | 92 |
} DW1000Driver; |
80 | 93 |
|
81 | 94 |
|
... | ... | |
238 | 251 |
uint8_t nsSFD ; //!< Boolean should we use non-standard SFD for better performance |
239 | 252 |
uint8_t dataRate ; //!< Data Rate {DWT_BR_110K, DWT_BR_850K or DWT_BR_6M8} |
240 | 253 |
uint8_t phrMode ; //!< PHR mode {0x0 - standard DWT_PHRMODE_STD, 0x3 - extended frames DWT_PHRMODE_EXT} |
241 |
uint8_t smartPowerEn ; //!< Smart Power enable / disable (TODO: Added smartPowerEn in this struct )
|
|
254 |
uint8_t smartPowerEn ; //!< Smart Power enable / disable |
|
242 | 255 |
uint16_t sfdTO ; //!< SFD timeout value (in symbols) |
243 | 256 |
} dwt_config_t ; |
244 | 257 |
|
... | ... | |
477 | 490 |
* |
478 | 491 |
* returns DWT_SUCCESS for success, or DWT_ERROR for error |
479 | 492 |
*/ |
480 |
//int dwt_initialise(uint16_t config) ; // TODO |
|
481 | 493 |
int dwt_initialise(uint16_t config, DW1000Driver* drv) ; |
482 | 494 |
|
483 | 495 |
/*! ------------------------------------------------------------------------------------------------------------------ |
Also available in: Unified diff