Revision a3ac2400 test/periphery-lld/DW1000_v1/aos_test_DW1000.h
test/periphery-lld/DW1000_v1/aos_test_DW1000.h | ||
---|---|---|
44 | 44 |
/** |
45 | 45 |
* @brief Custom data structure for the test. |
46 | 46 |
*/ |
47 |
#if (BOARD_MIC9404x_CONNECTED == true) |
|
47 | 48 |
typedef struct { |
48 | 49 |
/** |
49 | 50 |
* @brief Pointer to the driver to use. |
... | ... | |
60 | 61 |
*/ |
61 | 62 |
eventflags_t evtflags; |
62 | 63 |
|
64 |
/** |
|
65 |
* @brief MIC9404x driver to use. |
|
66 |
*/ |
|
67 |
MIC9404xDriver *mic9404xd; |
|
68 |
|
|
63 | 69 |
} aos_test_dw1000data_t; |
64 | 70 |
|
71 |
#else |
|
72 |
typedef struct { |
|
73 |
/** |
|
74 |
* @brief Pointer to the driver to use. |
|
75 |
*/ |
|
76 |
DW1000Driver* driver; |
|
77 |
|
|
78 |
/** |
|
79 |
* @brief Event source to listen to. |
|
80 |
*/ |
|
81 |
event_source_t* evtsource; |
|
82 |
|
|
83 |
/** |
|
84 |
* @brief Event flags to watch. |
|
85 |
*/ |
|
86 |
eventflags_t evtflags; |
|
87 |
|
|
88 |
} aos_test_dw1000data_t; |
|
89 |
|
|
90 |
#endif /* BOARD_MIC9404x_CONNECTED == true */ |
|
91 |
|
|
65 | 92 |
/******************************************************************************/ |
66 | 93 |
/* MACROS */ |
67 | 94 |
/******************************************************************************/ |
... | ... | |
85 | 112 |
int32_t inittestapplication(uint8_t s1switch, DW1000Driver* drv); |
86 | 113 |
int decarangingmode(uint8_t s1switch); |
87 | 114 |
void addressconfigure(uint8_t s1switch, uint8_t mode); |
88 |
void reset_DW1000(void); |
|
89 | 115 |
|
90 | 116 |
#if defined(__cplusplus) |
91 | 117 |
} |
Also available in: Unified diff