Production Line Tool v5.0
The DA1470x Production Line Tool Software Package
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
prod_line_tool_dll.h File Reference

Top level production test flow process DLL. More...

#include <stdint.h>
#include "p_dll.h"
#include "u_dll.h"
#include "dbg_dll.h"

Go to the source code of this file.

Classes

struct  __pltd_dbg_params
 PLTD debug settings. More...
 
struct  __pltd_dut_results
 Holds the DUTs, GU and instrument callback status codes. Used at __pltd_general_params::user_callback_pltd function return parameter. More...
 
struct  __pltd_versions
 Holds the versions of the various firmwares and DLLs used in the Production Line Tool. More...
 
struct  __clbk_data_array
 Holds all the data retrieved from callback for each DUT. More...
 
struct  __pltd_dev_params
 PLTD library parameters for each different device. More...
 
struct  __plt_log_info
 PLTD library parameters for each different device. More...
 
struct  __pltd_ble_tester
 BLE tester instrument specific settings. More...
 
struct  __pltd_ble_test_tx_pwr
 BLE tester measurement settings for TX power measurements common to all DUTs. More...
 
struct  __pltd_ble_test_freq_offs
 BLE tester measurement settings for TX frequency offset measurements common to all DUTs. More...
 
struct  __pltd_ble_test_mod_idx
 BLE tester measurement settings for the TX modulation index measurements common to all DUTs. More...
 
struct  __pltd_ble_test_rx_sens
 BLE tester measurement settings for the RX sensitivity measurements common to all DUTs. More...
 
struct  __pltd_temp_meas
 Temperature measurement settings. More...
 
struct  __pltd_ammeter
 Ammeter instrument general settings. More...
 
struct  __pltd_ammeter_params
 Ammeter test settings and limits for testing current. More...
 
struct  __pltd_gpio_led_test
 GPIO/LED test settings. More...
 
struct  __pltd_gpio_connection_test
 GPIO connection test settings. Sets the level of a GPIO and gets the level on another GPIO. More...
 
struct  __pltd_gpio_watchdog
 GPIO watchdog period toggle settings. Continuously toggles a DUT GPIO (not during test firmware download). More...
 
struct  __pltd_custom_test
 Custom test settings. More...
 
struct  __pltd_adc_vbat_test
 ADC VBAT measurement settings. More...
 
struct  __pltd_timestamp_rd
 Timestamp read settings. More...
 
struct  __pltd_periph_test
 Peripheral test (LEDs, buzzer, etc.) using current measurements. More...
 
struct  __pltd_ext32Khz_test
 External 32KHz test settings. More...
 
struct  __pltd_xtal_trim
 XTAL trim calibration test settings. More...
 
struct  __pltd_ble_scan
 PLTD BLE scan configuration parameters. More...
 
struct  __pltd_ble_hci_scan
 PLTD Configuration parameters of the BLE scan DUT HCI advertisements during production tests. More...
 
struct  __pltd_rssi_test
 RF RSSI test parameters, performed using the Golden Unit. More...
 
struct  __pltd_uart_test
 UART loopback test parameters used in DUT to PC UART connection test. More...
 
struct  __pltd_test_params
 PLTD library production test parameters for all devices under test. More...
 
struct  __pltd_mem_params
 PLTD library memory parameters for all devices under test. More...
 
struct  __pltd_ic_params
 PLTD IC specific general parameters for all devices under test. More...
 
union  __pltd_params
 PLTD library union containing parameters for all devices under test. More...
 
struct  __pltd_general_params
 PLTD library general parameters for all devices under test. More...
 

Macros

#define __bool_true_false_are_defined   1
 
#define bool   char
 
#define true   1
 
#define false   0
 
#define PLTD_EXPORTS
 
#define PLTD_API   __declspec(dllexport)
 
#define PLTD_MAX_DEVICES   16
 
#define LOG_PARAM_STR_SIZE   32
 
#define PLTD_CLBK_DATA_SIZE   UDLL_CLBK_DATA_SIZE
 
#define MAX_SUPPORTED_FLASH_ER_TESTS   10
 
#define MAX_SUPPORTED_FLASH_WR_TESTS   10
 
#define MAX_SUPPORTED_FLASH_CHK_TESTS   10
 
#define MAX_SUPPORTED_MEM_RD_TESTS   10
 
#define MAX_SUPPORTED_RF_TESTS   10
 
#define MAX_SUPPORTED_PERIPH_TESTS   10
 
#define MAX_SUPPORTED_GPIO_TESTS   10
 
#define MAX_SUPPORTED_GPIO_CONN_TESTS   20
 
#define MAX_SUPPORTED_BLE_TESTS   10
 
#define MAX_SUPPORTED_CUR_TESTS   10
 
#define MAX_SUPPORTED_SENS_TESTS   10
 
#define MAX_SUPPORTED_CUSTOM_TESTS   10
 
#define PLTD_INSTR_MAX_NAME_SIZE   256
 
#define PLTD_INSTR_MAX_STR_SIZE   256
 
#define PLTD_SUCCESS   0
 
#define PLTD_ERROR   1
 
#define PLTD_ALL_DUTS_FAILED   2
 
#define PLTD_WRONG_DEV_PARAMS   3
 
#define PLTD_WRONG_GEN_PARAMS   4
 
#define PLTD_DBG_ERROR   5
 
#define PLTD_INSTR_ERROR   6
 

Typedefs

typedef enum __DUT_RES _DUT_RES
 These are the callback status codes for the DUTs.
 
typedef enum __GU_RES _GU_RES
 These are the callback status codes for the GU.
 
typedef enum __INSTR_RES _INSTR_RES
 These are the callback status codes for the instruments (Ammeter, BLE tester, thermometer).
 
typedef enum __DUT_NUM _DUT_NUM
 Enumeration used to set the device numbering at __pltd_dev_params::dut_num.
 
typedef enum __periph_test_type _periph_test_type
 Enumeration used to set the test type at __pltd_periph_test::test_type.
 
typedef struct __pltd_dbg_params _pltd_dbg_params
 PLTD debug settings.
 
typedef struct __pltd_dut_results _pltd_dut_results
 Holds the DUTs, GU and instrument callback status codes. Used at __pltd_general_params::user_callback_pltd function return parameter.
 
typedef struct __pltd_versions _pltd_versions
 Holds the versions of the various firmwares and DLLs used in the Production Line Tool.
 
typedef struct __clbk_data_array _clbk_data_array
 Holds all the data retrieved from callback for each DUT.
 
typedef void(_stdcall * _user_callback_pltd) (_pltd_dut_results *pltd_dut_results_t)
 PLTD API callback function type definition. Used at __pltd_general_params::user_callback_pltd. More...
 
typedef struct __pltd_dev_params _pltd_dev_params
 PLTD library parameters for each different device.
 
typedef struct __plt_log_info _plt_log_info
 PLTD library parameters for each different device.
 
typedef struct __pltd_ble_tester _pltd_ble_tester
 BLE tester instrument specific settings.
 
typedef struct __pltd_ble_test_tx_pwr _pltd_ble_test_tx_pwr
 BLE tester measurement settings for TX power measurements common to all DUTs.
 
typedef struct __pltd_ble_test_freq_offs _pltd_ble_test_freq_offs
 BLE tester measurement settings for TX frequency offset measurements common to all DUTs.
 
typedef struct __pltd_ble_test_mod_idx _pltd_ble_test_mod_idx
 BLE tester measurement settings for the TX modulation index measurements common to all DUTs.
 
typedef struct __pltd_ble_test_rx_sens _pltd_ble_test_rx_sens
 BLE tester measurement settings for the RX sensitivity measurements common to all DUTs.
 
typedef struct __pltd_temp_meas _pltd_temp_meas
 Temperature measurement settings.
 
typedef struct __pltd_ammeter _pltd_ammeter
 Ammeter instrument general settings.
 
typedef struct __pltd_ammeter_params _pltd_ammeter_params
 Ammeter test settings and limits for testing current.
 
typedef struct __pltd_gpio_led_test _pltd_gpio_led_test
 GPIO/LED test settings.
 
typedef struct __pltd_gpio_connection_test _pltd_gpio_connection_test
 GPIO connection test settings. Sets the level of a GPIO and gets the level on another GPIO.
 
typedef struct __pltd_gpio_watchdog _pltd_gpio_watchdog
 GPIO watchdog period toggle settings. Continuously toggles a DUT GPIO (not during test firmware download).
 
typedef struct __pltd_custom_test _pltd_custom_test
 Custom test settings.
 
typedef struct __pltd_adc_vbat_test _pltd_adc_vbat_test
 ADC VBAT measurement settings.
 
typedef struct __pltd_timestamp_rd _pltd_timestamp_rd
 Timestamp read settings.
 
typedef struct __pltd_periph_test _pltd_periph_test
 Peripheral test (LEDs, buzzer, etc.) using current measurements.
 
typedef struct __pltd_ext32Khz_test _pltd_ext32Khz_test
 External 32KHz test settings.
 
typedef struct __pltd_xtal_trim _pltd_xtal_trim
 XTAL trim calibration test settings.
 
typedef struct __pltd_ble_scan _pltd_ble_scan
 PLTD BLE scan configuration parameters.
 
typedef struct __pltd_ble_hci_scan _pltd_ble_hci_scan
 PLTD Configuration parameters of the BLE scan DUT HCI advertisements during production tests.
 
typedef struct __pltd_rssi_test _pltd_rssi_test
 RF RSSI test parameters, performed using the Golden Unit.
 
typedef struct __pltd_uart_test _pltd_uart_test
 UART loopback test parameters used in DUT to PC UART connection test.
 
typedef struct __pltd_test_params _pltd_test_params
 PLTD library production test parameters for all devices under test.
 
typedef struct __pltd_mem_params _pltd_mem_params
 PLTD library memory parameters for all devices under test.
 
typedef struct __pltd_ic_params _pltd_ic_params
 PLTD IC specific general parameters for all devices under test.
 
typedef union __pltd_params _pltd_params
 PLTD library union containing parameters for all devices under test.
 
typedef struct __pltd_general_params _pltd_general_params
 PLTD library general parameters for all devices under test.
 

Enumerations

enum  __DUT_RES {
  DUT_NOT_ACTIVE = 0 , DUT_INTERNAL_SYSTEM_ERROR , DUT_COM_PORT_IDENTIFY_STARTED , DUT_COM_PORT_IDENTIFY_OK ,
  DUT_COM_PORT_IDENTIFY_FAILED , DUT_TEMPERATURE_MEASUREMENT_INIT , DUT_TEMPERATURE_MEASUREMENT_OK , DUT_TEMPERATURE_MEASUREMENT_ERROR ,
  DUT_UDLL_FW_DOWNLOAD_INIT , DUT_UDLL_FW_DOWNLOAD_STARTED , DUT_UDLL_FW_DOWNLOAD_RETRY , DUT_UDLL_FW_DOWNLOAD_OK ,
  DUT_UDLL_FW_DOWNLOAD_FAILED , DUT_UDLL_FW_VER_GET_INIT , DUT_UDLL_FW_VER_GET_STARTED , DUT_UDLL_FW_VER_GET_OK ,
  DUT_UDLL_FW_VER_GET_FAILED , DUT_UDLL_GPIO_WD_INIT , DUT_UDLL_GPIO_WD_STARTED , DUT_UDLL_GPIO_WD_OK ,
  DUT_UDLL_GPIO_WD_FAILED , DUT_UDLL_RAM_FW_DOWNLOAD_INIT , DUT_UDLL_RAM_FW_DOWNLOAD_STARTED , DUT_UDLL_RAM_FW_DOWNLOAD_OK ,
  DUT_UDLL_RAM_FW_DOWNLOAD_FAILED , DUT_PDLL_NO_ERROR , DUT_PDLL_PARAMS_ERROR , DUT_PDLL_RX_TIMEOUT ,
  DUT_PDLL_TX_TIMEOUT , DUT_PDLL_UNEXPECTED_EVENT , DUT_PDLL_CANNOT_ALLOCATE_MEMORY , DUT_PDLL_INTERNAL_ERROR ,
  DUT_PDLL_THREAD_CREATION_ERROR , DUT_PDLL_INVALID_DBG_PARAMS , DUT_PDLL_DBG_DLL_ERROR , DUT_PDLL_COM_PORT_INIT ,
  DUT_PDLL_COM_PORT_START , DUT_PDLL_COM_PORT_OK , DUT_PDLL_COM_PORT_FAILED , DUT_PDLL_FW_VERSION_GET_START ,
  DUT_PDLL_FW_VERSION_GET_OK , DUT_PDLL_FW_VERSION_GET_FAILED , DUT_PDLL_GPIO_WD_INIT , DUT_PDLL_GPIO_WD_START ,
  DUT_PDLL_GPIO_WD_OK , DUT_PDLL_GPIO_WD_FAILED , DUT_PDLL_TIMESTAMP_RD_INIT , DUT_PDLL_TIMESTAMP_RD_START ,
  DUT_PDLL_TIMESTAMP_RD_OK , DUT_PDLL_TIMESTAMP_RD_FAILED , DUT_PDLL_ADC_VBAT_INIT , DUT_PDLL_ADC_VBAT_START ,
  DUT_PDLL_ADC_VBAT_OK , DUT_PDLL_ADC_VBAT_FAILED , DUT_PDLL_SET_TX_PWR_INIT , DUT_PDLL_SET_TX_PWR_START ,
  DUT_PDLL_SET_TX_PWR_OK , DUT_PDLL_SET_TX_PWR_FAILED , DUT_PDLL_XTAL_TRIM_INIT , DUT_PDLL_XTAL_TRIM_START ,
  DUT_PDLL_XTAL_TRIM_OK , DUT_PDLL_XTAL_TRIM_OUT_OF_RANGE , DUT_PDLL_XTAL_TRIM_FREQ_CAL_NOT_CONNECTED , DUT_PDLL_XTAL_TRIM_WRITE_FAILED ,
  DUT_PDLL_XTAL_TRIM_FAILED , DUT_PDLL_XTAL_TRIM_READ_INIT , DUT_PDLL_XTAL_TRIM_READ_START , DUT_PDLL_XTAL_TRIM_READ_OK ,
  DUT_PDLL_XTAL_TRIM_READ_FAILED , DUT_PDLL_UART_RESYNC_INIT , DUT_PDLL_UART_RESYNC_START , DUT_PDLL_UART_RESYNC_OK ,
  DUT_PDLL_UART_RESYNC_FAILED , DUT_PDLL_BLE_HCI_ADV_START_INIT , DUT_PDLL_BLE_HCI_ADV_START , DUT_PDLL_BLE_HCI_ADV_START_OK ,
  DUT_PDLL_BLE_HCI_ADV_START_FAILED , DUT_PDLL_BLE_HCI_ADV_STOP_INIT , DUT_PDLL_BLE_HCI_ADV_STOP_START , DUT_PDLL_BLE_HCI_ADV_STOPPED_OK ,
  DUT_PDLL_BLE_HCI_ADV_STOP_FAILED , DUT_PDLL_BLE_HCI_ADV_SCAN_START , DUT_PDLL_BLE_HCI_ADV_NOT_YET_FOUND , DUT_PDLL_BLE_HCI_ADV_FOUND ,
  DUT_PDLL_BLE_HCI_ADV_RSSI_FAILED , DUT_PDLL_BLE_HCI_ADV_FAILED , DUT_PDLL_PKT_TX_START_INIT , DUT_PDLL_PKT_TX_START ,
  DUT_PDLL_PKT_TX_STARTED_OK , DUT_PDLL_PKT_TX_STARTED_FAILED , DUT_PDLL_PKT_TX_ENDED_START , DUT_PDLL_PKT_TX_ENDED_OK ,
  DUT_PDLL_PKT_TX_ENDED_FAILED , DUT_BLE_TESTER_TX_PWR_PASSED , DUT_BLE_TESTER_TX_PWR_FAILED , DUT_BLE_TESTER_TX_OFFS_PASSED ,
  DUT_BLE_TESTER_TX_OFFS_FAILED , DUT_BLE_TESTER_TX_MOD_IDX_PASSED , DUT_BLE_TESTER_TX_MOD_IDX_FAILED , DUT_PDLL_PKT_RX_STATS_START_INIT ,
  DUT_PDLL_PKT_RX_STATS_START , DUT_PDLL_PKT_RX_STATS_STARTED_OK , DUT_PDLL_PKT_RX_STATS_START_FAILED , DUT_PDLL_PKT_RX_STATS_STOP_INIT ,
  DUT_PDLL_PKT_RX_STATS_STOP_START , DUT_PDLL_PKT_RX_STATS_STOPPED_OK , DUT_PDLL_PKT_RX_STATS_STOP_FAILED , DUT_BLE_TESTER_RX_TEST_PASSED ,
  DUT_BLE_TESTER_RX_TEST_FAILED , DUT_PDLL_HCI_STANDARD_ERROR , DUT_PDLL_GU_RF_RX_TEST_PASSED , DUT_PDLL_GU_RF_RX_TEST_FAILED ,
  DUT_PDLL_GPIO_TOGGLE_INIT , DUT_PDLL_GPIO_TOGGLE_START , DUT_PDLL_GPIO_TOGGLE_FINISHED_OK , DUT_PDLL_GPIO_TOGGLE_ERROR ,
  DUT_PDLL_GPIO_TOGGLE_FAILED , DUT_PDLL_GPIO_TOGGLE_PASSED , DUT_PDLL_GPIO_CONNECTION_INIT , DUT_PDLL_GPIO_SET_START ,
  DUT_PDLL_GPIO_SET_ERROR , DUT_PDLL_GPIO_SET_FINISHED_OK , DUT_PDLL_GPIO_GET_START , DUT_PDLL_GPIO_GET_ERROR ,
  DUT_PDLL_GPIO_GET_FINISHED_OK , DUT_PDLL_GPIO_CONNECTION_ERROR , DUT_PDLL_GPIO_CONNECTION_FAILED , DUT_PDLL_GPIO_CONNECTION_PASSED ,
  DUT_PDLL_SENSOR_TEST_INIT , DUT_PDLL_SENSOR_TEST_START , DUT_PDLL_SENSOR_TEST_OK , DUT_PDLL_SENSOR_TEST_FAILED ,
  DUT_PDLL_SENSOR_TEST_DATA_MATCH_OK , DUT_PDLL_SENSOR_TEST_DATA_MATCH_FAILED , DUT_PDLL_CUSTOM_ACTION_INIT , DUT_PDLL_CUSTOM_ACTION_START ,
  DUT_PDLL_CUSTOM_ACTION_OK , DUT_PDLL_CUSTOM_ACTION_FAILED , DUT_PDLL_CUSTOM_ACTION_DATA_MATCH_OK , DUT_PDLL_CUSTOM_ACTION_DATA_MATCH_FAILED ,
  DUT_PDLL_UART_LOOP_INIT , DUT_PDLL_UART_LOOP_START , DUT_PDLL_UART_LOOP_OK , DUT_PDLL_UART_LOOP_FAILED ,
  DUT_SLEEP_CURRENT_MEASURE_INIT , DUT_SLEEP_CURRENT_MEASURE_START , DUT_SLEEP_DEVICE_SLEPT_OK , DUT_SLEEP_CURRENT_MEASURE_ERROR ,
  DUT_SLEEP_CURRENT_MEASURE_PASSED , DUT_SLEEP_CURRENT_MEASURE_FAILED , DUT_PDLL_EXT32KHz_TEST_INIT , DUT_PDLL_EXT32KHz_TEST_START ,
  DUT_PDLL_EXT32KHz_TEST_OK , DUT_PDLL_EXT32KHz_TEST_FAILED , DUT_PDLL_PERIPH_AMMETER_TEST_INIT , DUT_PDLL_PERIPH_AMMETER_TEST_START ,
  DUT_PDLL_PERIPH_AMMETER_TEST_ERROR , DUT_PDLL_PERIPH_AMMETER_TEST_PASSED , DUT_PDLL_PERIPH_AMMETER_TEST_FAILED , DUT_UDLL_SUCCESS ,
  DUT_UDLL_ACTION_RESPONSE_ERROR , DUT_UDLL_UART_RX_TIMEOUT_ERROR , DUT_UDLL_NO_CRC_MATCH_ERROR , DUT_UDLL_PROG_PARAMS_ERROR ,
  DUT_UDLL_DEVICE_PARAMS_ERROR , DUT_UDLL_UART_WRITE_ERROR , DUT_UDLL_UART_READ_ERROR , DUT_UDLL_INTERNAL_ERROR ,
  DUT_UDLL_COM_PORT_INIT_ERROR , DUT_UDLL_COM_PORT_ERROR , DUT_UDLL_CANNOT_ALLOCATE_MEMORY , DUT_UDLL_READ_FILE_SIZE_ERROR ,
  DUT_UDLL_CANNOT_OPEN_FW_FILE , DUT_UDLL_CANNOT_OPEN_IMAGE_FILE , DUT_UDLL_UART_PINS_PATCH_ERROR , DUT_UDLL_INVALID_DBG_PARAMS ,
  DUT_UDLL_DBG_DLL_ERROR , DUT_UDLL_FLASH_INIT_INIT , DUT_UDLL_FLASH_INIT_STARTED , DUT_UDLL_FLASH_INIT_OK ,
  DUT_UDLL_FLASH_INIT_FAILED , DUT_UDLL_FLASH_ERASE_INIT , DUT_UDLL_FLASH_ERASE_STARTED , DUT_UDLL_FLASH_ERASE_OK ,
  DUT_UDLL_FLASH_ERASE_FAILED , DUT_UDLL_FLASH_IMG_WR_INIT , DUT_UDLL_FLASH_IMG_WR_STARTED , DUT_UDLL_FLASH_IMG_WR_OK ,
  DUT_UDLL_FLASH_IMG_WR_FAILED , DUT_UDLL_OTP_CHECK_EMPTY_INIT , DUT_UDLL_OTP_CHECK_EMPTY_STARTED , DUT_UDLL_OTP_CHECK_EMPTY_STATUS ,
  DUT_UDLL_OTP_CHECK_EMPTY_OK , DUT_UDLL_OTP_CHECK_INPUT_DATA_EMPTY_OK , DUT_UDLL_OTP_CHECK_SAME_DATA_OK , DUT_UDLL_OTP_CHECK_SKIP_IF_WRITTEN_OK ,
  DUT_UDLL_OTP_CHECK_DIFFERENT_DATA_FAILED , DUT_UDLL_OTP_CHECK_EMPTY_FAILED , DUT_UDLL_OTP_BIN_WR_INIT , DUT_UDLL_OTP_BIN_WR_STARTED ,
  DUT_UDLL_OTP_BIN_WR_OK , DUT_UDLL_OTP_BIN_WR_FAILED , DUT_UDLL_OTP_CS_WRITE_INIT , DUT_UDLL_OTP_CS_WRITE_STARTED ,
  DUT_UDLL_OTP_CS_WRITE_NUM_OF_ENTRIES , DUT_UDLL_OTP_CS_WRITE_STATUS , DUT_UDLL_OTP_CS_WRITE_RDBK_STARTED , DUT_UDLL_OTP_CS_WRITE_RDBK_STATUS ,
  DUT_UDLL_OTP_CS_WRITE_OK , DUT_UDLL_OTP_CS_WRITE_FAILED , DUT_UDLL_MEM_DATA_WR_INIT , DUT_UDLL_MEM_DATA_WR_STARTED ,
  DUT_UDLL_MEM_DATA_WR_STATUS , DUT_UDLL_MEM_DATA_WR_OK , DUT_UDLL_MEM_DATA_WR_FAILED , DUT_UDLL_MEM_RD_INIT ,
  DUT_UDLL_MEM_RD_STARTED , DUT_UDLL_MEM_RD_OK , DUT_UDLL_MEM_RD_FAILED , DUT_PDLL_BLE_SCAN_INIT ,
  DUT_PDLL_BLE_SCAN_START , DUT_PDLL_BLE_SCAN_NOT_YET_FOUND , DUT_PDLL_BLE_SCAN_FOUND , DUT_PDLL_BLE_SCAN_RSSI_FAILED ,
  DUT_PDLL_BLE_SCAN_FAILED , DUT_GU_ERROR , INVALID_DUT_RES
}
 These are the callback status codes for the DUTs. More...
 
enum  __GU_RES {
  GU_NOT_ACTIVE = 0 , GU_INTERNAL_SYSTEM_ERROR , GU_COM_OPEN_OK , GU_COM_OPEN_FAILED ,
  GU_RESET_START , GU_RESET_OK , GU_RESET_FAILED , GU_PDLL_NO_ERROR ,
  GU_PDLL_PARAMS_ERROR , GU_PDLL_RX_TIMEOUT , GU_PDLL_TX_TIMEOUT , GU_PDLL_UNEXPECTED_EVENT ,
  GU_PDLL_CANNOT_ALLOCATE_MEMORY , GU_PDLL_INTERNAL_ERROR , GU_PDLL_THREAD_CREATION_ERROR , GU_PDLL_DBG_DLL_ERROR ,
  GU_PDLL_INVALID_DBG_PARAMS , GU_PDLL_COM_PORT_INIT , GU_PDLL_COM_PORT_START , GU_PDLL_COM_PORT_OK ,
  GU_PDLL_COM_PORT_FAILED , GU_PDLL_FW_VERSION_GET_START , GU_PDLL_FW_VERSION_GET_OK , GU_PDLL_FW_VERSION_GET_FAILED ,
  GU_PDLL_FW_VERSION_VALID , GU_PDLL_FW_VERSION_NOT_VALID , GU_PDLL_RDTESTER_INIT , GU_PDLL_RDTESTER_INIT_START ,
  GU_PDLL_RDTESTER_INIT_OK , GU_PDLL_RDTESTER_INIT_FAILED , GU_PDLL_RDTESTER_UART_CONNECT_INIT , GU_PDLL_RDTESTER_UART_CONNECT_START ,
  GU_PDLL_RDTESTER_UART_CONNECT_OK , GU_PDLL_RDTESTER_UART_CONNECT_FAILED , GU_PDLL_RDTESTER_UART_LOOPBACK_INIT , GU_PDLL_RDTESTER_UART_LOOPBACK_START ,
  GU_PDLL_RDTESTER_UART_LOOPBACK_OK , GU_PDLL_RDTESTER_UART_LOOPBACK_FAILED , GU_PDLL_RDTESTER_VBAT_UART_CNTRL_INIT , GU_PDLL_RDTESTER_VBAT_UART_CNTRL_START ,
  GU_PDLL_RDTESTER_VBAT_UART_CNTRL_OK , GU_PDLL_RDTESTER_VBAT_UART_CNTRL_FAILED , GU_PDLL_RDTESTER_VBAT_UART_RST_CNTRL_INIT , GU_PDLL_RDTESTER_VBAT_UART_RST_CNTRL_START ,
  GU_PDLL_RDTESTER_VBAT_UART_RST_CNTRL_OK , GU_PDLL_RDTESTER_VBAT_UART_RST_CNTRL_FAILED , GU_PDLL_RDTESTER_VPP_CNTRL_INIT , GU_PDLL_RDTESTER_VPP_CNTRL_START ,
  GU_PDLL_RDTESTER_VPP_CNTRL_OK , GU_PDLL_RDTESTER_VPP_CNTRL_FAILED , GU_PDLL_RDTESTER_RST_PULSE_INIT , GU_PDLL_RDTESTER_RST_PULSE_START ,
  GU_PDLL_RDTESTER_RST_PULSE_OK , GU_PDLL_RDTESTER_RST_PULSE_FAILED , GU_PDLL_RDTESTER_UART_PULSE_INIT , GU_PDLL_RDTESTER_UART_PULSE_START ,
  GU_PDLL_RDTESTER_UART_PULSE_OK , GU_PDLL_RDTESTER_UART_PULSE_FAILED , GU_PDLL_RDTESTER_XTAL_PULSE_INIT , GU_PDLL_RDTESTER_XTAL_PULSE_START ,
  GU_PDLL_RDTESTER_XTAL_PULSE_OK , GU_PDLL_RDTESTER_XTAL_PULSE_FAILED , GU_PDLL_RDTESTER_PULSE_WIDTH_INIT , GU_PDLL_RDTESTER_PULSE_WIDTH_START ,
  GU_PDLL_RDTESTER_PULSE_WIDTH_OK , GU_PDLL_RDTESTER_PULSE_WIDTH_FAILED , GU_PDLL_RDTESTER_VBAT_CNTRL_INIT , GU_PDLL_RDTESTER_VBAT_CNTRL_START ,
  GU_PDLL_RDTESTER_VBAT_CNTRL_OK , GU_PDLL_RDTESTER_VBAT_CNTRL_FAILED , GU_PDLL_RDTESTER_INVALID_COMMAND , GU_PDLL_PKT_TX_START_INIT ,
  GU_PDLL_PKT_TX_START , GU_PDLL_PKT_TX_STARTED_OK , GU_PDLL_PKT_TX_STARTED_FAILED , GU_PDLL_PKT_TX_ENDED_OK ,
  GU_PDLL_PKT_TX_ENDED_FAILED , GU_PDLL_GPIO_TOGGLE_INIT , GU_PDLL_GPIO_TOGGLE_START , GU_PDLL_GPIO_TOGGLE_FINISHED_OK ,
  GU_PDLL_GPIO_TOGGLE_FAILED , GU_PDLL_BLE_SCAN_INIT , GU_PDLL_BLE_SCAN_START , GU_PDLL_BLE_SCAN_RESET ,
  GU_PDLL_BLE_SCAN_RETRY , GU_PDLL_BLE_SCAN_OK , GU_PDLL_BLE_SCAN_FAILED , GU_PDLL_HCI_STANDARD_ERROR ,
  GU_ALL_DUT_FAILED , INVALID_GU_RES
}
 These are the callback status codes for the GU. More...
 
enum  __INSTR_RES {
  INSTR_NOT_USED = 0 , INSTR_ONLINE , INSTR_ERROR , INSTR_INIT ,
  INSTR_MEAS_START , INSTR_MEAS_PASSED , INSTR_MEAS_FAILED , INSTR_MEAS_END_OK ,
  INVALID_INSTR_RES
}
 These are the callback status codes for the instruments (Ammeter, BLE tester, thermometer). More...
 
enum  __DUT_NUM {
  DUT_1 = 1 , DUT_2 = 2 , DUT_3 = 3 , DUT_4 = 4 ,
  DUT_5 = 5 , DUT_6 = 6 , DUT_7 = 7 , DUT_8 = 8 ,
  DUT_9 = 9 , DUT_10 = 10 , DUT_11 = 11 , DUT_12 = 12 ,
  DUT_13 = 13 , DUT_14 = 14 , DUT_15 = 15 , DUT_16 = 16
}
 Enumeration used to set the device numbering at __pltd_dev_params::dut_num. More...
 
enum  __periph_test_type { PERIPH_USE_GPIO = 0 , PERIPH_USE_CUSTOM_TEST , INVALID_PERIPH_TEST }
 Enumeration used to set the test type at __pltd_periph_test::test_type. More...
 

Functions

PLTD_API int pltd_init (void)
 PLTD library initialization function. More...
 
PLTD_API void pltd_close (void)
 PLTD library close function. More...
 
PLTD_API int pltd_set_device_params (const _pltd_dev_params *params)
 Sets the PLTD library specific device parameters. More...
 
PLTD_API int pltd_set_general_params (const _pltd_general_params *pltd_general_params_t)
 Sets the PLTD library general programming parameters, common to all devices. More...
 
PLTD_API int pltd_start (void)
 Starts the operation of the PLTD library. More...
 
PLTD_API int pltd_com_port_enum (uint32_t *com_port_dut)
 Starts the enumeration of the DUT com ports. More...
 
PLTD_API int pltd_gu_com_find (int *gu_com_port)
 Starts automated detection of the GU COM port. More...
 
PLTD_API int pltd_gu_check_led (void)
 Checks whether the GU is active by toggling its LED at P10. More...
 
PLTD_API int pltd_dbg_init (const _pltd_dbg_params *pltd_dbg_params_t)
 Debug settings. More...
 
PLTD_API char * pltd_get_ble_tester_instr_names (const char *prev_name)
 Returns the names of the BLE tester instrument DLLs found. More...
 
PLTD_API char * pltd_get_ammeter_instr_names (const char *prev_name)
 Returns the names of the ammeter instrument DLLs found. More...
 
PLTD_API char * pltd_get_temp_meas_instr_names (const char *prev_name)
 Returns the names of the ammeter instrument DLLs found. More...
 
PLTD_API int pltd_vbat_uart_set (bool start, uint16_t duts)
 Enables device VBAT and opens the device UART through the CPLD on the PLT hardware. More...
 
PLTD_API int pltd_uart_coms_test (const _pltd_uart_test *uart_test)
 Test the UART communication path between the PC and the devices under test. More...
 
PLTD_API _pltd_versionspltd_get_versions (void)
 Returns the versions of all the PLTD software components. More...
 

Detailed Description

Top level production test flow process DLL.

Copyright (C) 2022 Dialog Semiconductor. This computer program includes Confidential, Proprietary Information of Dialog Semiconductor. All Rights Reserved.

bluet.nosp@m.ooth.nosp@m..supp.nosp@m.ort@.nosp@m.diase.nosp@m.mi.c.nosp@m.om

Definition in file prod_line_tool_dll.h.