⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dwdptest.h

📁 松下公司生产的VS3,VS7等等手机升级使用的算号软件。
💻 H
📖 第 1 页 / 共 5 页
字号:
extern "C" __declspec(dllexport) bool DWD_set_v24_mode(dwd_v24_mode_type mode, int handle);
/*-------------------------------------------------------------------------*/

/*---------------------- Get feautures present in mobile ------------------*/
extern "C" __declspec(dllexport) bool DWD_features_present(unsigned int16 *features, int handle);

/*------------------------ ATE# 2 INLINE ----------------------------------*/
extern "C" __declspec(dllexport) bool DWD_set_rf_mode(unsigned int16 mode, int handle);
extern "C" __declspec(dllexport) bool DWD_set_rf_channel(unsigned int16 arfcn_tp, unsigned int16 arfcn, int handle);
extern "C" __declspec(dllexport) bool DWD_set_rf_gain(unsigned int16 gain_tp, signed char gain, int handle);
extern "C" __declspec(dllexport) bool DWD_get_iqrms( unsigned int16 *iqrms, int handle);
extern "C" __declspec(dllexport) bool DWD_change_pa_level( unsigned char txpwr, unsigned char txpwr2, int handle);
extern "C" __declspec(dllexport) bool DWD_set_gmsk_mode( unsigned int16 mode, unsigned int16 tsc /*training sequence*/,int handle);
extern "C" __declspec(dllexport) bool DWD_inl_set_nof_slot(unsigned char nof_tx_slot, int handle);
extern "C" __declspec(dllexport) bool DWD_inl_set_nof_rx_slot(unsigned char nof_rx_slot, int handle);
extern "C" __declspec(dllexport) bool DWD_inl_get_mult_rx_iqrms(unsigned int16 *iqrms, int handle);
extern "C" __declspec(dllexport) bool DWD_get_power_ramp(unsigned char band, unsigned int16 pa_level, unsigned int16 *ramp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_edge_power_ramp(unsigned char band, unsigned int16 pa_level, unsigned int16 *ramp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_inl_set_power_ramps(unsigned int16 *power_ramp1_ptr, unsigned int16 *power_ramp2_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_inl_set_power_ramp_mode(unsigned char mode, int handle);
extern "C" __declspec(dllexport) bool DWD_set_afc(unsigned int16 dac_value, int handle);
extern "C" __declspec(dllexport) bool DWD_store_afc(dwd_afc_comp_type *comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_afc(dwd_afc_comp_type *comp_ptr, int handle );
extern "C" __declspec(dllexport) bool DWD_meas_all_adc(dwd_adc_meas_type *meas_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_adc(dwd_adc_adjusted_comp_parms_type *comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_adc(dwd_adc_adjusted_comp_parms_type *comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_set_audio(bool on, unsigned char volume, int handle); // Volume must be in the interval [0;8]
extern "C" __declspec(dllexport) bool DWD_set_ear_piece(dwd_audio_mode_type mode, unsigned char volume, int handle);  // Volume must be in the interval [0;8]
extern "C" __declspec(dllexport) bool DWD_set_mic(dwd_audio_mode_type mode, int handle);
extern "C" __declspec(dllexport) bool DWD_set_charge_mode(unsigned char on, int handle);
extern "C" __declspec(dllexport) bool DWD_check_rtc(bool *result, int handle);
extern "C" __declspec(dllexport) bool DWD_get_rtc_date_time(dwd_rtc_date_type *date, dwd_rtc_time_type *time,int handle);
extern "C" __declspec(dllexport) bool DWD_program_rtc_date_time(dwd_rtc_date_type *date, dwd_rtc_time_type *time, dwd_rtc_result_type *result, int handle);

/*-------------------------------------------------------------------------*/

/*------------------------- ATE #3 Calibration & Test ---------------------*/
extern "C" __declspec(dllexport) bool DWD_dut_in_idle( bool *in_idle, int handle);
extern "C" __declspec(dllexport) bool DWD_get_rf_temp( signed char *rf_temp, int handle);
extern "C" __declspec(dllexport) bool DWD_get_pmb_temp_offset(signed int16 *rf_temp_offset, int handle);
extern "C" __declspec(dllexport) bool DWD_set_pmb_temp_offset(signed int16 rf_temp_offset, int handle);
extern "C" __declspec(dllexport) bool DWD_store_pmb_temp_offset(signed int16 rf_temp_offset, int handle);
extern "C" __declspec(dllexport) bool DWD_setup_emergency_call(int handle);
extern "C" __declspec(dllexport) bool DWD_clear_rxlev(int handle);
extern "C" __declspec(dllexport) bool DWD_get_rxlev(signed char *rxlev_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_rxlev_gain_offset(unsigned char band,dwd_rxlev_offset_table_type *rxlev_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_set_rxlev_gain_offset(unsigned char band,dwd_rxlev_offset_table_type *rxlev_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_rxlev_gain_offset(unsigned char band,dwd_rxlev_offset_table_type *rxlev_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_rxlev_ch_comp_offset(unsigned char band,dwd_ch_comp_rxlev_offset_table_type *rxlev_ch_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_set_rxlev_ch_comp_offset(unsigned char band,dwd_ch_comp_rxlev_offset_table_type *rxlev_ch_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_rxlev_ch_comp_offset(unsigned char band, dwd_ch_comp_rxlev_offset_table_type *rxlev_ch_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_rxlev_tmp_comp(signed char *tmp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_rxlev_tmp_comp(unsigned char band, signed char *tmp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_configure_rxlev_aq(unsigned char band, unsigned char nof_ch, unsigned int16 *ch_array, int handle);
extern "C" __declspec(dllexport) bool DWD_clear_rxlev_aq(int handle);
extern "C" __declspec(dllexport) bool DWD_get_rxlev_aq(signed char *rxlev_ptr, signed char error, int handle);
extern "C" __declspec(dllexport) bool DWD_stop_rxlev_aq(int handle);
extern "C" __declspec(dllexport) bool DWD_set_pa_offset(unsigned char band, unsigned int16 txpwr, signed int16 offset, int handle);
extern "C" __declspec(dllexport) bool DWD_set_max_pa_ch_comp(unsigned char band, unsigned char ch_high_low, signed char offset, int handle);
extern "C" __declspec(dllexport) bool DWD_set_vhome_offset(unsigned char band, unsigned int16  txpwr, unsigned char offset, int handle);
extern "C" __declspec(dllexport) bool DWD_set_pa_timing_offset(unsigned char band, unsigned int16 txpwr,signed char rampup_offset, signed char rampdown_offset, int handle);
extern "C" __declspec(dllexport) bool DWD_store_pa_offset(unsigned char band,dwd_pa_offset_comp_table_type *pa_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_pa_offset(unsigned char band,dwd_pa_offset_comp_table_type *pa_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_max_pa_ch_comp(unsigned char band, unsigned char ch_high_low, signed char offset, int handle);
extern "C" __declspec(dllexport) bool DWD_store_vhome_offset(unsigned char band,dwd_pa_vhome_offset_comp_table_type *vhome_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_vhome_offset(unsigned char band,dwd_pa_vhome_offset_comp_table_type *vhome_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_pa_timing_offset(unsigned char band,pa_timing_offset_table_type *timing_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_pa_timing_offset(unsigned char band,pa_timing_offset_table_type *timing_offsets_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_set_audio_loop(int handle);
extern "C" __declspec(dllexport) bool DWD_clear_audio_loop(int handle);
extern "C" __declspec(dllexport) bool DWD_store_audio_parms(signed int16 scal_in, signed int16 scal_out, int handle);
extern "C" __declspec(dllexport) bool DWD_get_audio_parms(signed int16 *scal_in, signed int16 *scal_out, int handle);
extern "C" __declspec(dllexport) bool DWD_verify_sim_connection( bool *sim_ok, int handle);
extern "C" __declspec(dllexport) bool DWD_get_max_pa_offsets(unsigned char band, unsigned int16 *max_pa_levels_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_max_pa_ch_comp(signed char *offset_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_pa_dac16_range(unsigned int16 band, unsigned char high_txpwr, unsigned char low_txpwr, unsigned int16 *result, unsigned int16 *data, int handle);
extern "C" __declspec(dllexport) bool DWD_treat_1800_as_1900(unsigned int16 mode, unsigned int handle);
extern "C" __declspec(dllexport) bool DWD_get_edge_pa_timing_offset( unsigned char band,pa_timing_offset_table_type *timing_offsets_ptr, int handle );
extern "C" __declspec(dllexport) bool DWD_store_edge_pa_timing_offset(unsigned char band, pa_timing_offset_table_type *timing_offsets_ptr,int handle);
extern "C" __declspec(dllexport) bool DWD_get_edge_pa_ch_comp(unsigned char band,pa_ch_comp_type *pa_ch_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_edge_pa_ch_comp(unsigned char band,pa_ch_comp_type *pa_ch_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_gmsk_pa_ch_comp(unsigned char band,pa_ch_comp_type *pa_ch_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_gmsk_pa_ch_comp(unsigned char band,pa_ch_comp_type *pa_ch_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_edge_pa_temp_comp(unsigned char band,pa_temp_comp_type *pa_temp_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_edge_pa_temp_comp(unsigned char band,pa_temp_comp_type *pa_temp_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_gmsk_pa_temp_comp(unsigned char band,pa_temp_comp_type *pa_temp_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_gmsk_pa_temp_comp(unsigned char band,pa_temp_comp_type *pa_temp_comp_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_set_edge_pa_ch_comp(unsigned char band, unsigned int16 txpwr, dwd_pa_ch_comp_elm_type *offset, int handle );
extern "C" __declspec(dllexport) bool DWD_set_gmsk_pa_ch_comp(unsigned char band, unsigned int16 txpwr, dwd_pa_ch_comp_elm_type *offset, int handle );
extern "C" __declspec(dllexport) bool DWD_get_edge_pa_dac16_range(unsigned int16 band, unsigned char high_txpwr, unsigned char low_txpwr, unsigned int16 *result, unsigned int16 *data, int handle);
extern "C" __declspec(dllexport) bool DWD_get_audio_data(DWD_get_audio_data_con_type *data, int handle);

/*----------------------------- ATE #4 MMI --------------------------------*/
extern "C" __declspec(dllexport) bool DWD_store_lcd_contrast(unsigned char contrast, int handle);
extern "C" __declspec(dllexport) bool DWD_get_lcd_contrast(unsigned char *contrast, int handle);
extern "C" __declspec(dllexport) bool DWD_set_lcd_contrast(unsigned int16 contrast, int handle);
extern "C" __declspec(dllexport) bool DWD_lcd_generic_func(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *input,unsigned int16 *nof_output_bytes, unsigned char *output, int handle);
extern "C" __declspec(dllexport) bool DWD_start_test_image(unsigned int16 pattern, int handle);
extern "C" __declspec(dllexport) bool DWD_stop_test_image(int handle);
extern "C" __declspec(dllexport) bool DWD_read_lcd_register(unsigned char address,unsigned char *data, int handle);
extern "C" __declspec(dllexport) bool DWD_write_lcd_register(unsigned char address, unsigned char data, int handle);
extern "C" __declspec(dllexport) bool DWD_start_buzzer_tune(int handle);
extern "C" __declspec(dllexport) bool DWD_stop_buzzer_tune(int handle);
extern "C" __declspec(dllexport) bool DWD_start_key_board_test(int handle);
extern "C" __declspec(dllexport) bool DWD_poll_keyboard_result( bool *result, unsigned int32 *keymatrix, int handle);
extern "C" __declspec(dllexport) bool DWD_external_keypress(signed int16 key, int handle);
extern "C" __declspec(dllexport) bool DWD_get_current_key_matrix(unsigned int32 *keymatrix, int handle ); 
extern "C" __declspec(dllexport) bool DWD_get_keyflip_status(unsigned int16 *status,int handle); 
extern "C" __declspec(dllexport) bool DWD_switch_on_back_light(int handle);
extern "C" __declspec(dllexport) bool DWD_switch_off_back_light(int handle);
extern "C" __declspec(dllexport) bool DWD_switch_vibrator_on(int handle);
extern "C" __declspec(dllexport) bool DWD_switch_vibrator_off(int handle);
extern "C" __declspec(dllexport) bool DWD_charger_inserted(bool *result, int handle);
extern "C" __declspec(dllexport) bool DWD_store_imei(signed char imei[14], bool *already_programmed, int handle);
extern "C" __declspec(dllexport) bool DWD_store_sp_lock( unsigned char *sp_lock_code_ptr, bool *already_programmed, int handle);
extern "C" __declspec(dllexport) bool DWD_nv_generic(unsigned int16 opcode,unsigned char nof_input_bytes, void *pinput, unsigned char *nof_output_bytes,void *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_set_pixel(unsigned char x, unsigned char y, unsigned int16 nof_input_bytes, unsigned char *data, int handle);

extern "C" __declspec(dllexport) bool DWD_measure_equip_threshold(signed int16 *threshold, int handle);
extern "C" __declspec(dllexport) bool DWD_get_equip_threshold(signed int16 *threshold, int handle);
extern "C" __declspec(dllexport) bool DWD_store_equip_threshold(signed int16 threshold, int handle);

/*--------------- Test of connection to capacity estimation device ------- */
extern "C" __declspec(dllexport) bool DWD_check_gg(bool *ok, int handle);
/*-------------------------------------------------------------------------*/

/*-------------------------------- Audio -----------------------------------*/
extern "C" __declspec(dllexport) bool DWD_set_audiomode(unsigned char mode, int handle);
extern "C" __declspec(dllexport) bool DWD_set_volumestep(unsigned char  step,int handle);
extern "C" __declspec(dllexport) bool DWD_set_speakeramp_handsfree(unsigned char  mode, int handle);
extern "C" __declspec(dllexport) bool DWD_start_melody_tune(unsigned int16 tune, unsigned char volume, int handle);
extern "C" __declspec(dllexport) bool DWD_stop_melody_tune(int handle);

/*--------------- handling of production configuration data ---------------*/
extern "C" __declspec(dllexport) bool DWD_store_serial_number(unsigned int32 serial_number, int handle);
extern "C" __declspec(dllexport) bool DWD_get_serial_number(unsigned int32 *serial_number, int handle);
extern "C" __declspec(dllexport) bool DWD_store_testseries_id(unsigned int16 testseries_id, int handle);
extern "C" __declspec(dllexport) bool DWD_get_testseries_id(unsigned int16 *testseries_id, int handle);
extern "C" __declspec(dllexport) bool DWD_store_config(unsigned char config_id, dwd_config_type *config, int handle);
extern "C" __declspec(dllexport) bool DWD_get_config(unsigned char config_id, dwd_config_type *config, int handle);
extern "C" __declspec(dllexport) bool DWD_store_test_station_parms(unsigned char test_station_id, dwd_test_station_type *parms, int handle);
extern "C" __declspec(dllexport) bool DWD_get_test_station_parms(unsigned char test_station_id, dwd_test_station_type *parms, int handle);
extern "C" __declspec(dllexport) bool DWD_store_production_date(dwd_production_date_type *date, int handle);
extern "C" __declspec(dllexport) bool DWD_get_production_date(dwd_production_date_type *date, int handle);
extern "C" __declspec(dllexport) bool DWD_store_customer_parms(dwd_customer_parm_type *customer, int handle);
extern "C" __declspec(dllexport) bool DWD_get_customer_parms(dwd_customer_parm_type *customer, int handle);
extern "C" __declspec(dllexport) bool DWD_store_pn_number(dwd_pn_type *number,int handle);
extern "C" __declspec(dllexport) bool DWD_get_pn_number(dwd_pn_type *number, int handle);
extern "C" __declspec(dllexport) bool DWD_get_hw_version_string(dwd_hw_ver_string_type *string,int handle);
extern "C" __declspec(dllexport) bool DWD_store_hw_version_string(dwd_hw_ver_string_type *string,int handle);

/*--------------------------camera functions ------------------------------------*/
extern "C" __declspec(dllexport) bool DWD_start_preview(unsigned int16 mode, unsigned int16 framerate, int handle);
extern "C" __declspec(dllexport) bool DWD_stop_preview(int handle);
extern "C" __declspec(dllexport) bool DWD_sleep_camera(int handle);
extern "C" __declspec(dllexport) bool DWD_get_camera_status(unsigned int16 *status,int handle);
extern "C" __declspec(dllexport) bool DWD_take_picture(int handle);
extern "C" __declspec(dllexport) bool DWD_cam_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_get_picture(char *filename, int handle);
extern "C" __declspec(dllexport) bool DWD_put_jpeg_picture(char *filename,unsigned int16 left,unsigned int16 top,unsigned int16 right,unsigned int16 buttom,int handle);


/*--------------------------Irda functions ---------------------------------------*/
extern "C" __declspec(dllexport) bool DWD_enter_irda_test_mode(unsigned int16 *result, int handle);
extern "C" __declspec(dllexport) bool DWD_exit_irda_test_mode(unsigned int16 *result,int handle);
extern "C" __declspec(dllexport) bool DWD_send_irda_data(unsigned int16 pattern,unsigned int32 baudrate, unsigned int16 *result, int handle);
extern "C" __declspec(dllexport) bool DWD_receive_irda_data(unsigned int16 pattern, unsigned int16 timeout, unsigned int32 baudrate, unsigned int16 *result, int handle);
/*---------------------------------------------------------------------------*/

/*--------------- User commands ------------------------------------------*/
/* User command. Sends the given bytes to the mobile using the internal protocol.
If a reception function,rxdone, is specified this function is called from the DLL
if when response mail has been received from the mobile. If timeout or another
error occurres, the function is not call, and the user command function returns false.
If rxdone is NULL the DLL will not wait for a confirm mail.
The 'id' parameter is passed on the the mobile to enable the mobile software to
figure out what user command is being received.
Note, that the mobile can't receive more than approximately 240 bytes in one mail
at a time. Each occurrence of the character 13 in any of the data bytes will extend
the length of the mail with an additional byte (used for byte-stuffing).
*/
extern "C" __declspec(dllexport) bool DWD_user_command(unsigned int16 id,unsigned char *data,unsigned char length,
                                                	  	void (*rxdone)(unsigned char *rxdata,int rx_length),int handle);

extern "C" __declspec(dllexport) bool DWD_user_command_timeout(unsigned int16 id, unsigned char *data,unsigned char length,void (*rxdone)(unsigned char *rxdata,int rx_length),unsigned int timeout,int handle);
extern "C" __declspec(dllexport) bool DWD_sec_user_cmd(unsigned char *data, unsigned char length,
	                                                void (*rxdone)(unsigned char *rxdata,int16 rx_length),int handle);

extern "C" __declspec(dllexport) bool DWD_set_keypad_reference_matrix(unsigned int32 matrix);
extern "C" __declspec(dllexport) long DWD_get_keypad_reference_matrix(void);
/*------------------------------------------------------------------------*/

/*--------------- Miscellaneous functions --------------------------------*/
extern "C" __declspec(dllexport) bool DWD_store_to_nv_memory(int handle);
extern "C" __declspec(dllexport) bool DWD_store_to_nv_wchksum(bool *checksum_ok,int handle);
extern "C" __declspec(dllexport) bool DWD_set_serial_interface_mode(dwd_mode_type mode, int handle);
extern "C" __declspec(dllexport) bool DWD_store_item_in_nv_mem(unsigned short int item_index, int handle);
extern "C" __declspec(dllexport) bool DWD_get_parm_xx(char *parameter_name, unsigned int nof_bytes, void *data_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_store_parm_xx(char *parameter_name, unsigned int nof_bytes, void *data_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_read_static_nv(unsigned short int start_addr, unsigned short int nof_bytes, void *pdest,  int handle);
extern "C" __declspec(dllexport) bool DWD_read_dynamic_nv(unsigned short int start_addr, unsigned short int nof_bytes, void *pdest, int handle);
extern "C" __declspec(dllexport) bool DWD_write_static_nv(unsigned int16 start_addr, unsigned int16 nof_bytes, void *psrc, int handle);
extern "C" __declspec(dllexport) bool DWD_write_dynamic_nv(unsigned int16 start_addr, unsigned int16 nof_bytes, void *psrc, int handle);
extern "C" __declspec(dllexport) bool DWD_store_generic_tag_parms(char *parm_name,void *data,unsigned int nof_bytes,char *tag_name,int handle);
extern "C" __declspec(dllexport) bool DWD_get_generic_tag_parms(char *parm_name,void *data, unsigned int nof_bytes,char *tag_name,unsigned char *tag,int handle);
extern "C" __declspec(dllexport) bool DWD_reset_dyn_nv_to_default(int handle);

/* Software version. 13 chars must be allocated as destination 'sw_version' */
extern "C" __declspec(dllexport) bool DWD_get_sw_version(char *sw_version, int handle);
extern "C" __declspec(dllexport) bool DWD_get_additional_version_info(unsigned char opcode, unsigned char *string,int handle);

/* DLL version. 13 chars must be allocated as destination 'dll_version' */
extern "C" __declspec(dllexport) bool DWD_get_dll_version(char *dll_version);
extern "C" __declspec(dllexport) bool DWD_get_ms_id(dwd_ms_id_type *id_ptr, int handle);
extern "C" __declspec(dllexport) bool DWD_get_eep_version(int *eep_version, int handle);
extern "C" __declspec(dllexport) bool DWD_get_eep_revision(unsigned int16 *eep_revision,int handle);
// If trace is already on, when calling "DWD_start_trace()" the function call
// will have no effect.
extern "C" __declspec(dllexport) bool DWD_start_trace(void);
extern "C" __declspec(dllexport) void DWD_stop_trace(void);
extern "C" __declspec(dllexport) char *DWD_get_last_error(void);
extern "C" __declspec(dllexport) bool DWD_sw_reset(int handle);


/*----------- Internal used function not used for production test ------*/
// Same as  "DWD_store_adc()", but with all parameters directly exposed for eay use in LabView
extern "C" __declspec(dllexport) bool DWD_store_adc_direct(signed int16 vbat_gain,
                          signed int16 vbat_offset, signed int16 tbat_gain,
                          signed int16 tbat_offset, signed int16 tenv_gain,
                          signed int16 tenv_offset, signed int16 btec_gain,
                          signed int16 btec_offset, signed int16 tvco_gain,
                          signed int16 tvco_offset, int handle );

/*---------------------------------------------------------------------*/
extern "C" __declspec(dllexport) void DWD_external_msg_handler(bool (*process)(void));

/* This is used if it is unacceptable that the calling application can't
   process messages while the DLL is waiting for a respons or sendning
   large amounts of data. The function pointer given to this function
   should process the incomming Windows messages, and return 'true' if
   the calling application has been terminated, i.e. received a WM_QUIT
   message (false otherwise). This function will be called from within
   the DLL during lengthy operations. Note, this will allow the user to
   request a new mobile communication command before a previous one is
   done. The DLL will handle this by returning with error on the new
   request.

   The code for this function for e.g. Borland C++ Builder should be:

   bool process_msg(void)
   {
     Application->ProcessMessages();
     return (Application->Terminated);
   }

   To activate this function: DWD_external_msg_handler(process_msg);
   To deativate: DWD_external_msg_handler(NULL); // this is default
---------------------------------------------------------------------*/
extern "C" __declspec(dllexport) bool DWD_set_eep_cfg_filename(char *eep_input_name,int handle);
extern "C" __declspec(dllexport) bool DWD_get_mslog(dwd_ms_log_type *mslog, int handle);
extern "C" __declspec(dllexport) bool DWD_get_pc_id(unsigned int32 *id);
extern "C" __declspec(dllexport) bool DWD_get_parameters(unsigned char *dest, int nof_bytes,
                                      unsigned short int start_addr, unsigned short int dynamic_start_addr, int handle);
extern "C" __declspec(dllexport) bool DWD_dump_parameter(unsigned char *data_start, unsigned short int size,
                                      unsigned short int start_addr,unsigned short int dynamic_start_addr, int handle);
extern "C" __declspec(dllexport) bool DWD_dump_dynamic(unsigned char *data, int nof_bytes, int handle);
extern "C" __declspec(dllexport) bool DWD_dump_static(unsigned char *data, int remaining_to_process, int handle);
extern "C" __declspec(dllexport) bool DWD_dump_static_wchksum(unsigned char *data, int remaining_to_process,unsigned int16 chksum,bool *chksum_ok, int handle);

extern "C" __declspec(dllexport) bool DWD_get_dynamic_tag_parms(dwd_tag_parms tag_parms, void *buffer, unsigned int handle);
extern "C" __declspec(dllexport) unsigned int DWD_get_error_status(void);
extern "C" __declspec(dllexport) bool DWD_set_power_saving(bool on, int handle);
extern "C" __declspec(dllexport) void DWDIO_SetCharDelay(int delay);
extern "C" __declspec(dllexport) void DWD_get_buffers(unsigned char **rx,unsigned char **tx, unsigned char **txAT);
extern "C" __declspec(dllexport) bool DWD_send_buffer(int handle, int length);
extern "C" __declspec(dllexport) bool DWD_send_buffer_special(int handle, int length);
extern "C" __declspec(dllexport) int  DWD_get_mail(int handle);
extern "C" __declspec(dllexport) int  DWD_wrap_AT_data(unsigned char *dest, unsigned char *data_src, int src_len);
extern "C" __declspec(dllexport) int  DWD_get_AT_wrapped_len(unsigned char *data_src, int src_len);
extern "C" __declspec(dllexport) bool DWD_not_ready_to_send(int handle,int id);
extern "C" __declspec(dllexport) bool DWD_rx_monitor_start(int handle, void (*process_line)(unsigned char *, int));
extern "C" __declspec(dllexport) bool DWD_rx_monitor_stop(int handle);
extern "C" __declspec(dllexport) bool DWD_memory_read(unsigned char *dest, unsigned int16 nof_bytes, unsigned int32 address, int handle);
extern "C" __declspec(dllexport) bool DWD_ram_modify(unsigned int32 address, unsigned int16 nof_bytes, unsigned char *src, int handle);
extern "C" __declspec(dllexport) bool DWD_charger_status(unsigned char *dest, int handle);
extern "C" __declspec(dllexport) bool DWD_battery_status(unsigned char *dest, int handle);
extern "C" __declspec(dllexport) bool DWD_clear_excp_log( int handle);
extern "C" __declspec(dllexport) bool DWD_capacity_status_direct(  unsigned int16 *capacity_state,
												   unsigned int16 *level,unsigned int16 *availcap,
												   unsigned int16 *lastdchg,unsigned int16 *compcap,
												   unsigned int16 *ccr,unsigned int16 *dcr, int handle);

extern "C" __declspec(dllexport) bool DWD_charger_status_direct(unsigned int16 *battery_id,
												   unsigned int16 *battery_voltage,unsigned int16 *battery_low_warning,
												   signed char *battery_temperature, signed char *environment_temperature,
												   unsigned int16 *charger_on,unsigned int16 *gl1_mode, int handle);
extern "C" __declspec(dllexport) bool DWD_get_battery_info(unsigned char *dest, int handle);
extern "C" __declspec(dllexport) bool DWD_start_buzzer_melody(unsigned char ring_tune, unsigned char duty_cycle,unsigned int16 repeats, int handle);
extern "C" __declspec(dllexport) bool DWD_play_buzzer_tone(unsigned int16 freq, unsigned char duty_cycle, int handle);
extern "C" __declspec(dllexport) bool DWD_start_ll_trace(char *output_filename, int baudrate, int handle);
extern "C" __declspec(dllexport) bool DWD_stop_ll_trace(void);
extern "C" __declspec(dllexport) void DWD_external_ll_trace_rx_indicator(void (*indicator)(unsigned long nof_bytes));
extern "C" __declspec(dllexport) void DWD_external_ll_trace_graph_draw(void (*draw_func)(signed short int *data, int nof_points));
// returns COM port used by the given handle, -1 if there is an error:
extern "C" __declspec(dllexport) int  DWD_get_com_port_for_handle( int handle);
extern "C" __declspec(dllexport) bool DWD_convert_function_trace2txt(char *func_file, char *output_file);
// Takes a point to a LL trace mail and graphs it via 'DWD_external_ll_trace_graph_draw()'
extern "C" __declspec(dllexport) void DWD_handle_graph_mail(unsigned char *data);
extern "C" __declspec(dllexport) void DWD_init_graph_data(void);
extern "C" __declspec(dllexport) void simulate_input(void);
extern "C" __declspec(dllexport) void DWD_external_debug_message_displayer(void (*show_func)(char *msg));
extern "C" __declspec(dllexport) bool DWD_get_eep_info(dwd_get_eep_info_type *eep_ptr, int handle);
extern "C" __declspec(dllexport) dwd_ch_array_type DWD_get_ch_array(void);
extern "C" __declspec(dllexport) bool DWD_provoke_excp(int handle);
#ifdef DEBUG_INFO
extern "C" __declspec(dllexport) void DWD_debug_message_handler(void (*show_line_func)(char *));
#endif

// Same as DWD_meas_all_adc(), but arguments are given directly for easy use from LabView
extern "C" __declspec(dllexport) bool DWD_meas_all_adc_direct(signed int16 *vbat,signed int16 *tbat,
                             signed int16 *tenv,signed int16 *btec,
                             signed int16 *tvco,signed int16 *curr, int handle );

extern "C" __declspec(dllexport) bool DWD_rf_bands_supported(unsigned char *band, int handle);
extern "C" __declspec(dllexport) bool DWD_ffs_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_ffs_generic_timeout_delay(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, unsigned int timeout_delay, int handle);
extern "C" __declspec(dllexport) bool DWD_afr_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_afr_generic_timeout_delay(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput,unsigned int timeout_delay,int handle);
extern "C" __declspec(dllexport) bool DWD_aud_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_send_dsp_cmd(unsigned int16 nof_dsp_cmd, dsp_cmd_type *data,int handle);
extern "C" __declspec(dllexport) bool DWD_send_at_command(unsigned char *at_cmd_str,unsigned char len, unsigned int wait_for_response_timer, unsigned int wait_for_char,unsigned char *at_cmd_resp_str, bool *timeout, int handle);
extern "C" __declspec(dllexport) bool DWD_chr_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput, unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_gtb_generic(unsigned int16 opcode, unsigned char fileID, int handle);
extern "C" __declspec(dllexport) bool DWD_get_ffs_version( unsigned int16 *ffs_version, int handle );
extern "C" __declspec(dllexport) bool DWD_get_ffs_revision( unsigned int16 *ffs_revision, int handle );
extern "C" __declspec(dllexport) bool DWD_baseband_present(unsigned int16 *baseband, int handle);
extern "C" __declspec(dllexport) bool DWD_rf_present(unsigned int16 *rf, int handle);
extern "C" __declspec(dllexport) bool DWD_get_hasp_id(unsigned int32 *id, int handle);
extern "C" __declspec(dllexport) bool DWD_pow_management_generic_func(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_monitor_pin_generic_func(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_sim_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes, unsigned char *pinput,unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_acc_generic(unsigned int16 opcode, unsigned int16 nof_input_bytes,unsigned char *pinput, unsigned int16 *nof_output_bytes, unsigned char *poutput, int handle);
extern "C" __declspec(dllexport) bool DWD_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -