Production Line Tool v5.0
The DA1470x Production Line Tool Software Package
Loading...
Searching...
No Matches
p_dll.h
Go to the documentation of this file.
1
16#ifndef _P_DLL_H_
17#define _P_DLL_H_
18
19/*************************************************************************/
20/* INCLUDE FILES */
21/*************************************************************************/
22
23
24#include "dbg_dll.h"
25#include "ic_specifics.h"
26
46#ifndef __bool_true_false_are_defined
47 #define __bool_true_false_are_defined 1
48 #ifndef __cplusplus /* In C++, 'bool', 'true' and 'false' and keywords */
49 #define bool char
50 #define true 1
51 #define false 0
52 #else
53 #ifdef __GNUC__
54 /* GNU C++ supports direct inclusion of stdbool.h to provide C99
55 compatibility by defining _Bool */
56 #define BOOL bool
57 #endif
58 #endif
59#endif /* __bool_true_false_are_defined */
60
61#define P_DLL_EXPORTS
62#ifdef P_DLL_EXPORTS
63 #define P_DLL_API __declspec(dllexport)
64#else
65 #define P_DLL_API __declspec(dllimport)
66#endif
67
68#define PDLL_UART_BAUD_RATE 115200
69#define MAX_DEVS_TO_SCAN 16
70#define BD_ADDR_SIZE 6
71#define LOG_PARAM_STR_SIZE 32
72#define TEST_NAME_STR_SIZE 13
73#define HCI_UART_LOOP_70x_DATA_SIZE 252
74#define RF_RSSI_TEST_TX_PACKETS 500
75#define TIMESTAMP_SIZE 480
91{
92 PDLL_SUCCESS = 0,
93 PDLL_PARAMS_ERROR,
94 PDLL_RX_TIMEOUT,
95 PDLL_TX_TIMEOUT,
96 PDLL_UNEXPECTED_EVENT,
97 PDLL_CANNOT_ALLOCATE_MEMORY,
98 PDLL_INTERNAL_ERROR,
99 PDLL_THREAD_CREATION_ERROR,
100
101 PDLL_DBG_DLL_ERROR,
102 PDLL_INVALID_DBG_PARAMS,
103
104 PDLL_COM_PORT_START,
105 PDLL_COM_PORT_OK,
106 PDLL_COM_PORT_FAILED,
107
108 PDLL_FW_VERSION_GET_START,
109 PDLL_FW_VERSION_GET_OK,
110
111 PDLL_RDTESTER_INIT_START,
112 PDLL_RDTESTER_INIT_OK,
113
114 PDLL_RDTESTER_UART_CONNECT_START,
115 PDLL_RDTESTER_UART_CONNECT_OK,
116
117 PDLL_RDTESTER_UART_LOOPBACK_START,
118 PDLL_RDTESTER_UART_LOOPBACK_OK,
119
120 PDLL_RDTESTER_VBAT_UART_CNTRL_START,
121 PDLL_RDTESTER_VBAT_UART_CNTRL_OK,
122
123 PDLL_RDTESTER_VPP_CNTRL_START,
124 PDLL_RDTESTER_VPP_CNTRL_OK,
125
126 PDLL_RDTESTER_RST_PULSE_START,
127 PDLL_RDTESTER_RST_PULSE_OK,
128
129 PDLL_RDTESTER_UART_PULSE_START,
130 PDLL_RDTESTER_UART_PULSE_OK,
131
132 PDLL_RDTESTER_XTAL_PULSE_START,
133 PDLL_RDTESTER_XTAL_PULSE_OK,
134
135 PDLL_RDTESTER_PULSE_WIDTH_START,
136 PDLL_RDTESTER_PULSE_WIDTH_OK,
137
138 PDLL_RDTESTER_VBAT_CNTRL_START,
139 PDLL_RDTESTER_VBAT_CNTRL_OK,
140
141 PDLL_RDTESTER_VBAT_UART_RST_CNTRL_START,
142 PDLL_RDTESTER_VBAT_UART_RST_CNTRL_OK,
143 PDLL_RDTESTER_INVALID_COMMAND,
144
145 PDLL_XTAL_TRIM_START,
146 PDLL_XTAL_TRIM_OK,
147 PDLL_XTAL_TRIM_OUT_OF_RANGE,
148 PDLL_XTAL_TRIM_FREQ_CAL_NOT_CONNECTED,
149 PDLL_XTAL_TRIM_WRITE_FAILED,
150
151 PDLL_XTAL_TRIM_READ_START,
152 PDLL_XTAL_TRIM_READ_OK,
153
154 PDLL_UART_RESYNC_START,
155 PDLL_UART_RESYNC_OK,
156 PDLL_UART_RESYNC_FAILED,
157
158 PDLL_CONT_PKT_TX_START,
159 PDLL_CONT_PKT_TX_STARTED_OK,
160
161 PDLL_HCI_TEST_STOP_START,
162 PDLL_HCI_TEST_STOPPED_OK,
163
164 PDLL_PKT_TX_START,
165 PDLL_PKT_TX_STARTED_OK,
166 PDLL_PKT_TX_ENDED_OK,
167
168 PDLL_PKT_RX_STATS_START,
169 PDLL_PKT_RX_STATS_STARTED_OK,
170
171 PDLL_PKT_RX_STATS_STOP_START,
172 PDLL_PKT_RX_STATS_STOPPED_OK,
173
174 PDLL_PKT_RX_START,
175 PDLL_PKT_RX_STARTED_OK,
176
177 PDLL_CUSTOM_ACTION_START,
178 PDLL_CUSTOM_ACTION_OK,
179
180 PDLL_BLE_SCAN_START,
181 PDLL_BLE_SCAN_OK,
182
183 PDLL_BLE_ADV_START,
184 PDLL_BLE_ADV_START_OK,
185
186 PDLL_BLE_ADV_STOP_START,
187 PDLL_BLE_ADV_STOPPED_OK,
188
189 PDLL_AUDIO_TONE_START,
190 PDLL_AUDIO_TONE_STARTED_OK,
191
192 PDLL_AUDIO_TONE_STOP,
193 PDLL_AUDIO_TONE_STOPPED_OK,
194
195 PDLL_AUDIO_TEST_START,
196 PDLL_AUDIO_TEST_ALREADY_ACTIVE,
197 PDLL_AUDIO_TEST_STARTED_OK,
198
199 PDLL_AUDIO_TEST_STOP,
200 PDLL_AUDIO_TEST_STOPPED_OK,
201
202 PDLL_AUDIO_TEST_PASSED,
203 PDLL_AUDIO_TEST_FAILED,
204 PDLL_AUDIO_TEST_INVALID_COMMAND,
205
206 PDLL_GPIO_TOGGLE_START,
207 PDLL_GPIO_TOGGLE_ERROR,
208 PDLL_GPIO_TOGGLE_FINISHED_OK,
209
210 PDLL_GPIO_SET_START,
211 PDLL_GPIO_SET_ERROR,
212 PDLL_GPIO_SET_FINISHED_OK,
213
214 PDLL_GPIO_GET_START,
215 PDLL_GPIO_GET_ERROR,
216 PDLL_GPIO_GET_FINISHED_OK,
217
218 PDLL_GPIO_WD_START,
219 PDLL_GPIO_WD_ERROR,
220 PDLL_GPIO_WD_OK,
221
222 PDLL_SENSOR_TEST_START,
223 PDLL_SENSOR_TEST_OK,
224
225 PDLL_SLEEP_START,
226 PDLL_SLEEP_OK,
227
228 PDLL_UART_LOOP_START,
229 PDLL_UART_LOOP_FAILED,
230 PDLL_UART_LOOP_OK,
231
232 PDLL_EXT32Khz_TEST_START,
233 PDLL_EXT32Khz_TEST_FAILED,
234 PDLL_EXT32Khz_TEST_OK,
235
236 PDLL_ADC_VBAT_START,
237 PDLL_ADC_VBAT_OK,
238
239 PDLL_SET_TX_PWR_START,
240 PDLL_SET_TX_PWR_OK,
241
242 PDLL_TIMESTAMP_RD_START,
243 PDLL_TIMESTAMP_RD_OK,
244
245 PDLL_RESET_MODE_START,
246 PDLL_RESET_MODE_OK,
248
249
251#define PDLL_HCI_STANDARD_ERROR_CODE_BASE 1000
265typedef enum __pdll_test_id
266{
269 pkt_tx = 2,
270 stop_pkt_tx = 3,
272 stop_pkt_rx_stats = 5,
275 xtal_trim_val_read = 8,
292 gpio_set = 25,
293 gpio_get = 26,
294 gpio_wd = 27,
296 sleep = 29,
301 adc_vbat = 34,
304 INVALID_TEST = 38
306
308typedef enum __payload_type
309{
310 TX_TYPE_PSEUDO_RAND_9 = 0,
311 TX_TYPE_ALT_BITS_1100,
312 TX_TYPE_ALT_BITS_10,
313 TX_TYPE_PSEUDO_RAND_15,
314 TX_TYPE_ALL_BITS_1,
315 TX_TYPE_ALL_BITS_0,
316 TX_TYPE_ALT_BITS_0011,
317 TX_TYPE_ALT_BITS_0101,
318 INVALID_TX_PAYLOAD_TYPE
320
322typedef enum __audio_test_op
323{
324 AUDIO_TEST_START = 1,
325 AUDIO_TEST_STOP,
326 INVALID_AUDIO_TEST
328
330typedef enum __audio_tone_op
331{
332 AUDIO_TONE_START = 1,
333 AUDIO_TONE_STOP,
334 INVALID_AUDIO_TONE_OP
336
338typedef enum __sensor_iface
339{
340 SENSOR_IFACE_SPI = 0,
341 SENSOR_IFACE_I2C,
342 INVALID_SENSOR_IFACE
344
346typedef enum __gpio_state
347{
348 GPIO_STATE_LOW = 0,
349 GPIO_STATE_HIGH,
350 INVALID_GPIO_STATE
352
354typedef enum __gpio_pwr_lvl
355{
356 GPIO_LVL_3V3 = 0,
357 GPIO_LVL_1V8,
358 INVALID_GPIO_LVL
360
362typedef enum __gpio_mode
363{
364 GPIO_MODE_INPUT = 0,
365 GPIO_MODE_INPUT_PULLUP = 1,
366 GPIO_MODE_INPUT_PULLDOWN = 2,
367 GPIO_MODE_OUTPUT = 3,
368 GPIO_MODE_OUTPUT_PUSH_PULL = 4,
369 GPIO_MODE_OUTPUT_OPEN_DRAIN = 5,
370 INVALID_GPIO_MODE
372
374typedef enum __sleep_modes
375{
376 NO_SLEEP = 0,
377 EXTENDED_SLEEP,
378 DEEP_SLEEP,
379 INVALID_SLEEP_MODE
381
383typedef enum __baud_rate
384{
385 UART_BAUDRATE_9K6 = 0,
386 UART_BAUDRATE_19K2,
387 UART_BAUDRATE_57K6,
388 UART_BAUDRATE_115K2,
389 UART_BAUDRATE_1M,
390 UART_BAUDRATE_2M,
392
394typedef enum __adv_channel
395{
396 ADV_CH37= 0x01,
397 ADV_CH38 = 0x02,
398 ADV_CH39 = 0x04,
399 ADV_ALLCH= 0x07
401
404{
405 RF_TX_PWR_LVL_MIN_VAL = 0U, // -50 dBm
406 RF_TX_PWR_LVL_MINUS_50d0 = 0U, // -50 dBm
407 RF_TX_PWR_LVL_MINUS_18d0 = 1U, // -18 dBm
408 RF_TX_PWR_LVL_MINUS_12d0 = 2U, // -12 dBm
409 RF_TX_PWR_LVL_MINUS_8d0 = 3U, // -8 dBm
410 RF_TX_PWR_LVL_MINUS_6d0 = 4U, // -6 dBm
411 RF_TX_PWR_LVL_MINUS_3d0 = 5U, // -3 dBm
412 RF_TX_PWR_LVL_MINUS_2d0 = 6U, // -2 dBm
413 RF_TX_PWR_LVL_MINUS_1d0 = 7U, // -1 dBm
414 RF_TX_PWR_LVL_0d0 = 8U, // 0 dBm
415 RF_TX_PWR_LVL_PLUS_1d5 = 9U, // +1.5 dBm
416 RF_TX_PWR_LVL_PLUS_2d0 = 10U, // +2 dBm
417 RF_TX_PWR_LVL_PLUS_3d0 = 11U, // +3 dBm
418 RF_TX_PWR_LVL_PLUS_4d0 = 12U, // +4 dBm
419 RF_TX_PWR_LVL_PLUS_4d5 = 13U, // +4.5 dBm
420 RF_TX_PWR_LVL_PLUS_5d0 = 14U, // +5 dBm
421 RF_TX_PWR_LVL_PLUS_6d0 = 15U, // +6 dBm
423
426{
427 GAP_TX_POWER_MIN = 0U, // -50 dBm
428 GAP_TX_POWER_MINUS_50_dBm = 0U, // -50 dBm
429 GAP_TX_POWER_MINUS_26_dBm = 1U, // -26 dBm
430 GAP_TX_POWER_MINUS_22_dBm = 2U, // -22 dBm
431 GAP_TX_POWER_MINUS_18_dBm = 3U, // -18 dBm
432 GAP_TX_POWER_MINUS_12_dBm = 4U, // -12 dBm
433 GAP_TX_POWER_MINUS_8_dBm = 5U, // -8 dBm
434 GAP_TX_POWER_MINUS_6_dBm = 6U, // -6 dBm
435 GAP_TX_POWER_MINUS_3_dBm = 7U, // -3 dBm
436 GAP_TX_POWER_MINUS_2_dBm = 8U, // -2 dBm
437 GAP_TX_POWER_MINUS_1_dBm = 9U, // -1 dBm
438 GAP_TX_POWER_0_dBm = 10U, // 0 dBm
439 GAP_TX_POWER_1_5_dBm = 11U, // +1.5 dBm
440 GAP_TX_POWER_2_dBm = 12U, // +2 dBm
441 GAP_TX_POWER_3_dBm = 13U, // +3 dBm
442 GAP_TX_POWER_4_dBm = 14U, // +4 dBm
443 GAP_TX_POWER_4_5_dBm = 15U, // +4.5 dBm
444 GAP_TX_POWER_5_dBm = 16U, // +5 dBm
445 GAP_TX_POWER_6_dBm = 17U, // +6 dBm
446 GAP_TX_POWER_MAX = 17U, // +6 dBm
448
462typedef struct __pdll_fw_versions
463{
470
472typedef struct __gu_scan_data
473{
474 uint8_t bd_addr_found[BD_ADDR_SIZE];
475 float rssi;
477
479typedef struct __rx_stats
480{
481 uint32_t pkts_crc_ok;
482 uint32_t pkts_sync_err;
483 uint32_t pkts_crc_err;
484 uint32_t xtal_trim_val;
485 uint16_t audio_pwr_lvl;
486 uint32_t custom_data;
487 float rssi;
488 _gu_scan_data gu_scan_data[MAX_DEVS_TO_SCAN];
492
494typedef void (*_user_callback_pdll) (uint32_t com_port_number, int status, _rx_stats *rx_stats_t);
495
496
498typedef struct __pdll_rf_test
499{
501 uint32_t freq;
504
506typedef struct __pdll_audio_test
507{
510 uint16_t pwr_lvl_lim;
512
514typedef struct __pdll_audio_tone
515{
519
521typedef struct __pdll_gpio_toggle
522{
525 uint16_t time_low;
526 uint16_t time_high;
527 uint16_t retries;
530
533{
538
540typedef struct __pdll_gpio_set
541{
545 bool level;
547 uint8_t pwm;
548 uint8_t pwm_duty;
550
552typedef struct __pdll_gpio_get
553{
557
559typedef struct __pdll_custom_test
560{
562 uint8_t data;
564
567{
569 uint8_t version;
570 uint8_t rst_polarity;
572
575{
577 uint16_t data;
578 uint8_t rst_polarity;
579 uint16_t rst_pulse_ms;
581
584{
586 uint8_t rst_polarity;
587 uint16_t rst_pulse_ms;
589
591typedef struct __pdll_rdtester
592{
594 uint16_t data;
596
598typedef struct __pdll_scan_test
599{
601 uint8_t periph_bd_addr[MAX_DEVS_TO_SCAN][BD_ADDR_SIZE];
603
605typedef struct __pdll_xtal_test
606{
610
612typedef struct __pdll_sensor_test
613{
615 bool en;
618 bool write;
625 uint8_t reg_addr;
626 uint8_t wr_data;
630 uint8_t valid_data;
633
635typedef struct __pdll_sleep_test
636{
638 bool en;
640 uint32_t seconds;
642
645{
647 bool en;
649 uint32_t times;
651
654{
656 bool en;
657 uint8_t delay_ms;
660 uint8_t bd_addr[BD_ADDR_SIZE];
662
665{
667 bool en;
669
672{
674 bool en;
676
678typedef struct __pdll_adc_vbat_en
679{
681 bool en;
683
685typedef struct __pdll_set_tx_pwr
686{
690
692typedef union __pdll_test_data
693{
718
720typedef struct __pdll_device
721{
724 uint32_t com_port;
725 uint32_t baud_rate;
726 _user_callback_pdll clbck;
728 bool is_GU;
730
733#ifdef __cplusplus // If used by C++ code,
734extern "C" { // we need to export the C interface
735#endif
753P_DLL_API PDLL_RET pdll_dbg_init(const _dbg_params *dbg_params_t);
754
760P_DLL_API PDLL_RET pdll_dbg_close(void);
761
767P_DLL_API PDLL_RET pdll_init(void);
768
777
786 // @defgroup pdll_funcs
788
789#ifdef __cplusplus
790}
791#endif // @defgroup pdll_api
793
794#endif /* _P_DLL_H_ */
Debug API DLL.
enum __dut_ic _dut_ic
The Dialog BLE device IC selection.
__audio_tone_op
Commands for audio tone.
Definition: p_dll.h:331
__pdll_test_id
The available production tests and operations. Used at __pdll_device::test.
Definition: p_dll.h:266
__gpio_mode
GPIO mode.
Definition: p_dll.h:363
enum __adv_channel _adv_channel
BLE advertisement channels for the HCI BLE scan test.
enum __pdll_tx_pwr_lvl _pdll_tx_pwr_lvl
RF test transmit output power levels.
enum __gpio_pwr_lvl _gpio_pwr_lvl
GPIO power level.
__baud_rate
The UART baud rates supported in the UART loop test.
Definition: p_dll.h:384
__gpio_state
GPIO state.
Definition: p_dll.h:347
enum __audio_tone_op _audio_tone_op
Commands for audio tone.
enum __sleep_modes _sleep_modes
The sleep modes supported.
enum __pdll_adv_tx_pwr_lvl _pdll_adv_tx_pwr_lvl
Advertisments GAP transmit output power levels.
enum __baud_rate _baud_rate
The UART baud rates supported in the UART loop test.
enum __payload_type _payload_type
RF TX payload types.
__sleep_modes
The sleep modes supported.
Definition: p_dll.h:375
enum __gpio_mode _gpio_mode
GPIO mode.
enum __sensor_iface _sensor_iface
Sensor tests interface selection.
enum __gpio_state _gpio_state
GPIO state.
__payload_type
RF TX payload types.
Definition: p_dll.h:309
enum __pdll_test_id _pdll_test_id
The available production tests and operations. Used at __pdll_device::test.
__pdll_adv_tx_pwr_lvl
Advertisments GAP transmit output power levels.
Definition: p_dll.h:426
__sensor_iface
Sensor tests interface selection.
Definition: p_dll.h:339
__audio_test_op
Commands for audio test.
Definition: p_dll.h:323
enum __audio_test_op _audio_test_op
Commands for audio test.
__gpio_pwr_lvl
GPIO power level.
Definition: p_dll.h:355
__pdll_tx_pwr_lvl
RF test transmit output power levels.
Definition: p_dll.h:404
__adv_channel
BLE advertisement channels for the HCI BLE scan test.
Definition: p_dll.h:395
@ gpio_get
Definition: p_dll.h:293
@ rdtester_xtal_pulse
Definition: p_dll.h:284
@ adc_vbat
Definition: p_dll.h:301
@ rdtester_xtal_pulse_uart
Definition: p_dll.h:283
@ rdtester_uart_connect
Definition: p_dll.h:278
@ rdtester_vpp_ctrl
Definition: p_dll.h:281
@ ble_adv_stop
Definition: p_dll.h:299
@ audio_test
Definition: p_dll.h:289
@ timestamp_rd
Definition: p_dll.h:303
@ ext32Khz_test
Definition: p_dll.h:300
@ rdtester_uart_loop
Definition: p_dll.h:279
@ ble_adv_start
Definition: p_dll.h:298
@ audio_tone
Definition: p_dll.h:290
@ set_tx_pwr
Definition: p_dll.h:302
@ scan_test
Definition: p_dll.h:276
@ uart_resync
Definition: p_dll.h:288
@ gpio_wd
Definition: p_dll.h:294
@ rdtester_vbat_uart_ctrl
Definition: p_dll.h:280
@ start_pkt_rx_stats
Definition: p_dll.h:271
@ custom_test
Definition: p_dll.h:273
@ cont_pkt_tx
Definition: p_dll.h:268
@ xtal_trim
Definition: p_dll.h:274
@ INVALID_TEST
Definition: p_dll.h:304
@ sensor_test
Definition: p_dll.h:295
@ pkt_tx
Definition: p_dll.h:269
@ rdtester_vbat_uart_rst_ctrl
Definition: p_dll.h:287
@ gpio_set
Definition: p_dll.h:292
@ rdtester_pulse_width
Definition: p_dll.h:285
@ gpio_toggle
Definition: p_dll.h:291
@ rdtester_init
Definition: p_dll.h:277
@ uart_loop
Definition: p_dll.h:297
@ sleep
Definition: p_dll.h:296
@ dut_com_init
Definition: p_dll.h:267
@ rdtester_rst_pulse
Definition: p_dll.h:282
@ rdtester_vbat_ctrl
Definition: p_dll.h:286
P_DLL_API PDLL_RET pdll_set_device_params(const _pdll_device *dev)
Sets the p_dll library specific device parameters.
P_DLL_API PDLL_RET pdll_dbg_close(void)
Closes the debug library.
P_DLL_API PDLL_RET pdll_init(void)
p_dll library initialization function.
P_DLL_API PDLL_RET pdll_perform_test(_pdll_test_id test_id)
Starts the test operations of the p_dll library.
P_DLL_API PDLL_RET pdll_dbg_init(const _dbg_params *dbg_params_t)
p_dll library debug initialization function.
#define TEST_NAME_STR_SIZE
Definition: p_dll.h:72
#define LOG_PARAM_STR_SIZE
Definition: p_dll.h:71
#define TIMESTAMP_SIZE
Definition: p_dll.h:75
enum __PDLL_RETURN_CODES PDLL_RET
The P_DLL return status codes.
__PDLL_RETURN_CODES
The P_DLL return status codes.
Definition: p_dll.h:91
struct __pdll_gpio_watchdog _pdll_gpio_watchdog
p_dll library parameters for GPIO watchdog operation.
struct __pdll_adc_vbat_en _pdll_adc_vbat_en
p_dll library parameters for enabling the VBAT measurement using the internal ADC.
struct __pdll_audio_test _pdll_audio_test
p_dll library parameters for the audio test.
struct __pdll_device _pdll_device
p_dll library parameters for each different device.
struct __pdll_scan_test _pdll_scan_test
p_dll library parameters for the scan test.
struct __pdll_set_tx_pwr _pdll_set_tx_pwr
p_dll library parameters for setting the TX power level in RF test mode.
union __pdll_test_data _pdll_test_data
p_dll library parameters for the device test data.
struct __pdll_gpio_set _pdll_gpio_set
p_dll library parameters for GPIO set operation.
struct __pdll_rdtester _pdll_rdtester
p_dll library parameters for the rd tester commands. Commands send from the Golden Unit to the CPLD.
struct __pdll_uart_loop_test _pdll_uart_loop_test
p_dll library parameters for UART loop test.
struct __pdll_rdtester_rst _pdll_rdtester_rst
p_dll library parameters for the rdtester_vbat_uart_rst_ctrl command.
struct __pdll_ble_adv_stop_test _pdll_ble_adv_stop_test
p_dll library parameters for stopping BLE advertisements through an HCI command send to the DUT.
struct __pdll_fw_versions _pdll_fw_versions
Holds the prod_test_XXX.bin and p_dll library versions.
struct __pdll_custom_test _pdll_custom_test
p_dll library parameters for the custom test/
struct __pdll_rf_test _pdll_rf_test
p_dll library parameters for the RF test.
struct __rx_stats _rx_stats
Holds the production test results for each device.
struct __gu_scan_data _gu_scan_data
Holds the GU scan data.
struct __pdll_gpio_toggle _pdll_gpio_toggle
p_dll library parameters for GPIO toggle operation.
struct __pdll_audio_tone _pdll_audio_tone
p_dll library parameters for audio tone generation. Mainly used at the Golden Unit.
struct __pdll_gpio_get _pdll_gpio_get
p_dll library parameters for GPIO get status test.
struct __pdll_xtal_test _pdll_xtal_test
p_dll library parameters for the XTAL trim test.
struct __pdll_sleep_test _pdll_sleep_test
p_dll library parameters for setting the devices into the various sleep mode.
struct __pdll_rdtester_vbat_uart_rst _pdll_rdtester_vbat_uart_rst
p_dll library parameters for the rdtester_vbat_uart_rst_ctrl command.
struct __pdll_ext32Khz_test _pdll_ext32Khz_test
p_dll library parameters for testing the external 32Khz low power crystal.
struct __pdll_sensor_test _pdll_sensor_test
p_dll library parameters for the sensor test.
struct __pdll_rdtester_init _pdll_rdtester_init
p_dll library parameters for the rd tester init command.
struct __pdll_ble_adv_start_test _pdll_ble_adv_start_test
p_dll library parameters for starting BLE advertisements through an HCI command send to the DUT.
IC specific items.
The main settings of the Debug DLL API.
Definition: dbg_dll.h:143
Holds the GU scan data.
Definition: p_dll.h:473
float rssi
Definition: p_dll.h:475
uint8_t bd_addr_found[BD_ADDR_SIZE]
Definition: p_dll.h:474
p_dll library parameters for enabling the VBAT measurement using the internal ADC.
Definition: p_dll.h:679
_pdll_test_id test_id
Definition: p_dll.h:680
p_dll library parameters for the audio test.
Definition: p_dll.h:507
uint16_t pwr_lvl_lim
Definition: p_dll.h:510
_audio_test_op test_op
Definition: p_dll.h:509
_pdll_test_id test_id
Definition: p_dll.h:508
p_dll library parameters for audio tone generation. Mainly used at the Golden Unit.
Definition: p_dll.h:515
_pdll_test_id test_id
Definition: p_dll.h:516
_audio_tone_op tone_op
Definition: p_dll.h:517
p_dll library parameters for starting BLE advertisements through an HCI command send to the DUT.
Definition: p_dll.h:654
_pdll_tx_pwr_lvl rf_tx_pwr_lvl
Definition: p_dll.h:658
_adv_channel adv_channel
Definition: p_dll.h:659
uint8_t bd_addr[BD_ADDR_SIZE]
Definition: p_dll.h:660
_pdll_test_id test_id
Definition: p_dll.h:655
p_dll library parameters for stopping BLE advertisements through an HCI command send to the DUT.
Definition: p_dll.h:665
_pdll_test_id test_id
Definition: p_dll.h:666
p_dll library parameters for the custom test/
Definition: p_dll.h:560
_pdll_test_id test_id
Definition: p_dll.h:561
p_dll library parameters for each different device.
Definition: p_dll.h:721
bool is_GU
Definition: p_dll.h:728
_pdll_test_data test
Definition: p_dll.h:727
uint32_t com_port
Definition: p_dll.h:724
_user_callback_pdll clbck
Definition: p_dll.h:726
bool is_active
Definition: p_dll.h:722
_dut_ic dut_ic
Definition: p_dll.h:723
uint32_t baud_rate
Definition: p_dll.h:725
p_dll library parameters for testing the external 32Khz low power crystal.
Definition: p_dll.h:672
_pdll_test_id test_id
Definition: p_dll.h:673
Holds the prod_test_XXX.bin and p_dll library versions.
Definition: p_dll.h:463
char prod_test_app_fw_ver[LOG_PARAM_STR_SIZE]
Definition: p_dll.h:466
char pdll_ver[LOG_PARAM_STR_SIZE]
Definition: p_dll.h:468
char prod_test_gu_app_fw_ver[LOG_PARAM_STR_SIZE]
Definition: p_dll.h:464
char prod_test_ble_fw_ver[LOG_PARAM_STR_SIZE]
Definition: p_dll.h:467
char prod_test_gu_ble_fw_ver[LOG_PARAM_STR_SIZE]
Definition: p_dll.h:465
p_dll library parameters for GPIO get status test.
Definition: p_dll.h:553
_ic_gpio gpio
Definition: p_dll.h:555
_pdll_test_id test_id
Definition: p_dll.h:554
p_dll library parameters for GPIO set operation.
Definition: p_dll.h:541
_pdll_test_id test_id
Definition: p_dll.h:542
_gpio_pwr_lvl pwr_lvl
Definition: p_dll.h:546
_ic_gpio gpio
Definition: p_dll.h:543
bool level
Definition: p_dll.h:545
uint8_t pwm_duty
Definition: p_dll.h:548
uint8_t pwm
Definition: p_dll.h:547
_gpio_mode mode
Definition: p_dll.h:544
p_dll library parameters for GPIO toggle operation.
Definition: p_dll.h:522
_pdll_test_id test_id
Definition: p_dll.h:523
_gpio_pwr_lvl pwr_lvl
Definition: p_dll.h:528
_ic_gpio gpio
Definition: p_dll.h:524
uint16_t time_low
Definition: p_dll.h:525
uint16_t time_high
Definition: p_dll.h:526
uint16_t retries
Definition: p_dll.h:527
p_dll library parameters for GPIO watchdog operation.
Definition: p_dll.h:533
_gpio_pwr_lvl pwr_lvl
Definition: p_dll.h:536
_pdll_test_id test_id
Definition: p_dll.h:534
_ic_gpio gpio
Definition: p_dll.h:535
p_dll library parameters for the rd tester init command.
Definition: p_dll.h:567
uint8_t rst_polarity
Definition: p_dll.h:570
_pdll_test_id test_id
Definition: p_dll.h:568
uint8_t version
Definition: p_dll.h:569
p_dll library parameters for the rdtester_vbat_uart_rst_ctrl command.
Definition: p_dll.h:584
uint8_t rst_polarity
Definition: p_dll.h:586
_pdll_test_id test_id
Definition: p_dll.h:585
uint16_t rst_pulse_ms
Definition: p_dll.h:587
p_dll library parameters for the rdtester_vbat_uart_rst_ctrl command.
Definition: p_dll.h:575
_pdll_test_id test_id
Definition: p_dll.h:576
p_dll library parameters for the rd tester commands. Commands send from the Golden Unit to the CPLD.
Definition: p_dll.h:592
_pdll_test_id test_id
Definition: p_dll.h:593
uint16_t data
Definition: p_dll.h:594
p_dll library parameters for the RF test.
Definition: p_dll.h:499
uint32_t freq
Definition: p_dll.h:501
_pdll_test_id test_id
Definition: p_dll.h:500
_payload_type payload_type
Definition: p_dll.h:502
p_dll library parameters for the scan test.
Definition: p_dll.h:599
_pdll_test_id test_id
Definition: p_dll.h:600
p_dll library parameters for the sensor test.
Definition: p_dll.h:613
_sensor_iface iface
Definition: p_dll.h:617
_gpio_pwr_lvl pwr_lvl
Definition: p_dll.h:631
_ic_gpio i2c_scl
Definition: p_dll.h:623
uint8_t valid_data
Definition: p_dll.h:630
_ic_gpio spi_di
Definition: p_dll.h:620
_ic_gpio spi_do
Definition: p_dll.h:621
char name[TEST_NAME_STR_SIZE]
Definition: p_dll.h:616
uint8_t reg_addr
Definition: p_dll.h:625
_ic_gpio int_gpio
Definition: p_dll.h:629
_ic_gpio spi_clk
Definition: p_dll.h:619
_pdll_test_id test_id
Definition: p_dll.h:614
_ic_gpio spi_cs
Definition: p_dll.h:622
uint8_t wr_data
Definition: p_dll.h:626
bool int_gpio_check
Definition: p_dll.h:628
_ic_gpio i2c_sda
Definition: p_dll.h:624
uint8_t i2c_slave_addr
Definition: p_dll.h:627
p_dll library parameters for setting the TX power level in RF test mode.
Definition: p_dll.h:686
_pdll_test_id test_id
Definition: p_dll.h:687
_pdll_tx_pwr_lvl rf_tx_pwr_lvl
Definition: p_dll.h:688
p_dll library parameters for setting the devices into the various sleep mode.
Definition: p_dll.h:636
uint32_t seconds
Definition: p_dll.h:640
_pdll_test_id test_id
Definition: p_dll.h:637
_sleep_modes sleep_mode
Definition: p_dll.h:639
p_dll library parameters for UART loop test.
Definition: p_dll.h:645
_baud_rate baud_rate
Definition: p_dll.h:648
uint32_t times
Definition: p_dll.h:649
_pdll_test_id test_id
Definition: p_dll.h:646
p_dll library parameters for the XTAL trim test.
Definition: p_dll.h:606
_pdll_test_id test_id
Definition: p_dll.h:607
_ic_gpio trim_gpio
Definition: p_dll.h:608
Holds the production test results for each device.
Definition: p_dll.h:480
uint16_t audio_pwr_lvl
Definition: p_dll.h:485
_gu_scan_data gu_scan_data[MAX_DEVS_TO_SCAN]
Definition: p_dll.h:488
uint32_t pkts_crc_ok
Definition: p_dll.h:481
_pdll_fw_versions pdll_fw_versions
Definition: p_dll.h:490
float rssi
Definition: p_dll.h:487
uint8_t timestamp[TIMESTAMP_SIZE]
Definition: p_dll.h:489
uint32_t custom_data
Definition: p_dll.h:486
uint32_t xtal_trim_val
Definition: p_dll.h:484
uint32_t pkts_crc_err
Definition: p_dll.h:483
uint32_t pkts_sync_err
Definition: p_dll.h:482
GPIO selection based on IC.
Definition: ic_specifics.h:391
p_dll library parameters for the device test data.
Definition: p_dll.h:693
_pdll_xtal_test xtal_trim
Definition: p_dll.h:704
_pdll_ble_adv_stop_test ble_adv_stop
Definition: p_dll.h:713
_pdll_custom_test custom
Definition: p_dll.h:698
_pdll_audio_test audio
Definition: p_dll.h:696
_pdll_rf_test rf
Definition: p_dll.h:695
_pdll_test_id id
Definition: p_dll.h:694
_pdll_rdtester_init rdtester_init
Definition: p_dll.h:699
_pdll_scan_test scan
Definition: p_dll.h:703
_pdll_adc_vbat_en adc_vbat_en
Definition: p_dll.h:715
_pdll_rdtester_rst rdtester_rst
Definition: p_dll.h:701
_pdll_rdtester rdtester
Definition: p_dll.h:702
_pdll_sensor_test sensor
Definition: p_dll.h:708
_pdll_gpio_set gpio_set
Definition: p_dll.h:707
_pdll_gpio_get gpio_get
Definition: p_dll.h:706
_pdll_ble_adv_start_test ble_adv_start
Definition: p_dll.h:712
_pdll_set_tx_pwr set_tx_pwr
Definition: p_dll.h:716
_pdll_rdtester_vbat_uart_rst rdtester_vbat_uart_rst
Definition: p_dll.h:700
_pdll_gpio_watchdog gpio_wd
Definition: p_dll.h:710
_pdll_ext32Khz_test ext32Khz_test
Definition: p_dll.h:714
_pdll_gpio_toggle gpio_toggle
Definition: p_dll.h:705
_pdll_uart_loop_test uart_loop
Definition: p_dll.h:711
_pdll_audio_tone audio_tone
Definition: p_dll.h:697
_pdll_sleep_test sleep
Definition: p_dll.h:709