Production Line Tool v5.0
The DA1470x Production Line Tool Software Package
Loading...
Searching...
No Matches
ble_instr_api.h
Go to the documentation of this file.
1
16#ifndef _BLE_INSTR_API_H_
17#define _BLE_INSTR_API_H_
18
19 /*************************************************************************/
20 /* INCLUDE FILES */
21 /*************************************************************************/
22#include "stdint.h"
23/*************************************************************************/
24/*************************************************************************/
25
49#ifndef __bool_true_false_are_defined
50 #define __bool_true_false_are_defined 1
51 #ifndef __cplusplus /* In C++, 'bool', 'true' and 'false' and keywords */
52 #define bool char
53 #define true 1
54 #define false 0
55 #else
56 #ifdef __GNUC__
57 /* GNU C++ supports direct inclusion of stdbool.h to provide C99
58 compatibility by defining _Bool */
59 #define BOOL bool
60 #endif
61 #endif
62#endif /* __bool_true_false_are_defined */
63
64#define BLE_INSTR_EXPORTS
65#ifdef BLE_INSTR_EXPORTS
66 #define BLE_INSTR_API __declspec(dllexport)
67#else
68 #define BLE_INSTR_API __declspec(dllimport)
69#endif
70
78#define BLE_INSTR_CALLBACK(A, Y, Z) (A != NULL) ? A(Y, Z) : ((void)0)
79
81#define BLE_TESTER_STR_SIZE 256
82
99{
100 BLE_INSTR_SUCCESS = 0,
101 BLE_INSTR_ERROR,
102 BLE_INSTR_INVALID_DBG_PARAMS,
103 BLE_INSTR_DBG_DLL_ERROR,
104 BLE_INSTR_TX_PWR_START,
105 BLE_INSTR_TX_PWR_PASSED,
106 BLE_INSTR_TX_PWR_FAILED,
107 BLE_INSTR_TX_FREQ_OFFS_START,
108 BLE_INSTR_TX_FREQ_OFFS_PASSED,
109 BLE_INSTR_TX_FREQ_OFFS_FAILED,
110 BLE_INSTR_TX_MOD_IDX_START,
111 BLE_INSTR_TX_MOD_IDX_PASSED,
112 BLE_INSTR_TX_MOD_IDX_FAILED,
113 BLE_INSTR_TX_RX_SENS_START,
114 BLE_INSTR_TX_RX_SENS_OK,
115 BLE_INSTR_TX_RX_SENS_ERROR,
143#ifdef __cplusplus // If used by C++ code,
144extern "C" { // we need to export the C interface
145#endif
146
147
148
165typedef void (*_callback_ble_instr)(int status, char *data);
166
174BLE_INSTR_API int ble_instr_dbg_init(_dbg_params *dbg_params_t);
175
181BLE_INSTR_API int ble_instr_dbg_close(void);
182
192BLE_INSTR_API int ble_instr_init(void *data, _callback_ble_instr callback_ble_instr);
193
199BLE_INSTR_API int ble_instr_close(void);
200
208BLE_INSTR_API int ble_instr_set_path_loss(float path_loss);
209
218
226BLE_INSTR_API int ble_instr_set_tx_pwr_h_lim(float avg_high_limit);
227
235BLE_INSTR_API int ble_instr_set_tx_pwr_l_lim(float avg_low_limit);
236
246BLE_INSTR_API int ble_instr_set_tx_pwr_pk_lim(float pk_avg_limit);
247
255BLE_INSTR_API int ble_instr_do_tx_pwr(uint32_t freq);
256
264BLE_INSTR_API int ble_instr_set_freq_offs_h_lim(uint32_t pos_freq_limit);
265
273BLE_INSTR_API int ble_instr_set_freq_offs_l_lim(uint32_t neg_freq_limit);
274
282BLE_INSTR_API int ble_instr_set_freq_drift_pkt_lim(uint32_t drift_pkt_limit);
283
291BLE_INSTR_API int ble_instr_set_freq_drift_rate_lim(uint32_t drift_rate_limit);
292
300BLE_INSTR_API int ble_instr_do_freq_offs(uint32_t freq);
301
309BLE_INSTR_API int ble_instr_set_mod_idx_f1_min(uint32_t f1_min_limit);
310
318BLE_INSTR_API int ble_instr_set_mod_idx_f1_max(uint32_t f1_max_limit);
319
327BLE_INSTR_API int ble_instr_set_mod_idx_f2_max(uint32_t f2_max_limit);
328
336BLE_INSTR_API int ble_instr_set_mod_idx_f1f2_ratio(float f1f2_ratio_limit);
337
346BLE_INSTR_API int ble_instr_do_mod_idx(int payload, uint32_t freq);
347
355BLE_INSTR_API int ble_instr_set_rx_sens_tx_pat(uint8_t pattern);
356
364BLE_INSTR_API int ble_instr_set_rx_sens_pkt_space(uint16_t spacing);
365
373BLE_INSTR_API int ble_instr_set_rx_sens_pkt_num(uint16_t num_of_pkts);
374
382BLE_INSTR_API int ble_instr_set_rx_sens_tx_pwr(float tx_power);
383
391BLE_INSTR_API int ble_instr_set_rx_sens_tx_dirty(bool dirty);
392
400BLE_INSTR_API int ble_instr_set_rx_sens_tx_crc(bool crc_state);
401
409BLE_INSTR_API int ble_instr_do_rx_sens(uint32_t freq);
413#ifdef __cplusplus
414}
415#endif // @defgroup ble_instr_api
417
418#endif //_BLE_INSTR_API_H_
_BLE_INSTR_STATUS_CODES
The BLE instrument API return and callback status codes.
Definition: ble_instr_api.h:99
enum _BLE_INSTR_STATUS_CODES BLE_INSTR_STATUS_CODES
The BLE instrument API return and callback status codes.
__ble_instr_pwr_range
The BLE tester instrument API TX power range requirements.
enum __ble_instr_pwr_range _ble_instr_pwr_range
The BLE tester instrument API TX power range requirements.
@ AUTO_PWR_RANGE_4
@ AUTO_PWR_RANGE_1
@ AUTO_PWR_RANGE
@ AUTO_PWR_RANGE_2
@ AUTO_PWR_RANGE_5
@ INVALID_PWR_RANGE
@ AUTO_PWR_RANGE_3
@ AUTO_PWR_RANGE_6
BLE_INSTR_API int ble_instr_set_mod_idx_f1_min(uint32_t f1_min_limit)
Set the F1 minimum average limit in KHz for the TX modulation index measurements.
BLE_INSTR_API int ble_instr_set_freq_offs_l_lim(uint32_t neg_freq_limit)
BLE tester instrument API function to set the maximum negative offset limit in KHz for the TX carrier...
BLE_INSTR_API int ble_instr_set_freq_drift_pkt_lim(uint32_t drift_pkt_limit)
BLE tester instrument API function to set the overall packet drift limit in KHz for the TX drift meas...
BLE_INSTR_API int ble_instr_set_tx_pwr_l_lim(float avg_low_limit)
BLE tester instrument API function to set the packet average low power limit for the TX output power ...
BLE_INSTR_API int ble_instr_do_tx_pwr(uint32_t freq)
BLE tester instrument API function that performs the TX output power measurements on a specific BLE f...
BLE_INSTR_API int ble_instr_set_rx_sens_pkt_space(uint16_t spacing)
Set the instrument TX packet spacing in us for RX sensitivity measurements.
BLE_INSTR_API int ble_instr_set_rx_sens_tx_dirty(bool dirty)
Set the instrument TX dirty packets enable/disable for RX sensitivity measurements.
BLE_INSTR_API int ble_instr_set_tx_pwr_h_lim(float avg_high_limit)
BLE tester instrument API function to set the packet average high power limit for the TX output power...
BLE_INSTR_API int ble_instr_do_mod_idx(int payload, uint32_t freq)
BLE tester instrument API function that performs the TX modulation index measurements on a specific B...
BLE_INSTR_API int ble_instr_do_rx_sens(uint32_t freq)
Performs the transmission of packets, for DUT RX sensitivity measurements.
BLE_INSTR_API int ble_instr_set_mod_idx_f2_max(uint32_t f2_max_limit)
Set the F2 maximum limit in KHz for the TX modulation index measurements.
BLE_INSTR_API int ble_instr_set_tx_pwr_pk_lim(float pk_avg_limit)
BLE tester instrument API function to set the peak to average power limit for the TX output power mea...
BLE_INSTR_API int ble_instr_set_rx_sens_tx_pat(uint8_t pattern)
Set the instrument TX packet pattern type for RX sensitivity measurements.
BLE_INSTR_API int ble_instr_set_freq_drift_rate_lim(uint32_t drift_rate_limit)
BLE tester instrument API function to set the drift rate limit in KHz/50us for the TX drift measureme...
BLE_INSTR_API int ble_instr_set_freq_offs_h_lim(uint32_t pos_freq_limit)
BLE tester instrument API function to set the maximum positive offset limit in KHz for the TX carrier...
BLE_INSTR_API int ble_instr_set_mod_idx_f1_max(uint32_t f1_max_limit)
Set the F1 maximum average limit in KHz for the TX modulation index measurements.
BLE_INSTR_API int ble_instr_set_rx_sens_pkt_num(uint16_t num_of_pkts)
Set the instrument TX number of packets for RX sensitivity measurements.
BLE_INSTR_API int ble_instr_set_pwr_range(_ble_instr_pwr_range pwr_range)
BLE tester instrument API function to set the instrument TX input power range.
BLE_INSTR_API int ble_instr_do_freq_offs(uint32_t freq)
BLE tester instrument API function that performs the TX frequency offset measurements on a specific B...
void(* _callback_ble_instr)(int status, char *data)
BLE tester instrument API callback function type definition.
BLE_INSTR_API int ble_instr_set_mod_idx_f1f2_ratio(float f1f2_ratio_limit)
Set the F1/F2 maximum average ratio limit for the TX modulation index measurements.
BLE_INSTR_API int ble_instr_close(void)
BLE tester instrument API close function and free allocated resources.
BLE_INSTR_API int ble_instr_set_rx_sens_tx_crc(bool crc_state)
Set the instrument TX packet CRC alternate state on/off for RX sensitivity measurements.
BLE_INSTR_API int ble_instr_set_rx_sens_tx_pwr(float tx_power)
Set the instrument TX output power for RX sensitivity measurements.
BLE_INSTR_API int ble_instr_dbg_init(_dbg_params *dbg_params_t)
BLE tester instrument debug session initialize.
BLE_INSTR_API int ble_instr_init(void *data, _callback_ble_instr callback_ble_instr)
BLE tester instrument API initialize function.
BLE_INSTR_API int ble_instr_set_path_loss(float path_loss)
BLE tester instrument API function to set the path losses between the instrument and the DUT.
BLE_INSTR_API int ble_instr_dbg_close(void)
BLE tester instrument debug session close.
The main settings of the Debug DLL API.
Definition: dbg_dll.h:143