16#ifndef _BLE_INSTR_API_H_
17#define _BLE_INSTR_API_H_
49#ifndef __bool_true_false_are_defined
50 #define __bool_true_false_are_defined 1
64#define BLE_INSTR_EXPORTS
65#ifdef BLE_INSTR_EXPORTS
66 #define BLE_INSTR_API __declspec(dllexport)
68 #define BLE_INSTR_API __declspec(dllimport)
78#define BLE_INSTR_CALLBACK(A, Y, Z) (A != NULL) ? A(Y, Z) : ((void)0)
81#define BLE_TESTER_STR_SIZE 256
100 BLE_INSTR_SUCCESS = 0,
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,
_BLE_INSTR_STATUS_CODES
The BLE instrument API return and callback status codes.
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.
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.