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

📄 dwdptest.h

📁 松下公司生产的VS3,VS7等等手机升级使用的算号软件。
💻 H
📖 第 1 页 / 共 5 页
字号:

typedef struct
{
 unsigned int16 reg;
 unsigned int16 value;
} dwd_cam_reg_type;

/*-------------------------------------------------------------------------*/
/*----------------------- S-GOLD Workbench struct -------------------------*/
typedef enum
{
  through_txrach = 0, 
  through_corach = 1 
}dwd_rach_type;  /* T_ATCTST_RACH_TYPE;*/

typedef enum
{
   dwd_loopback_decoded_block,
   dwd_loopback_burst_by_burst
} dwd_loopback_mode_type; /* T_DWD_LOOPBACK_MODE_TYPE; */

typedef struct /*T_DWD_HOPPING_RF_s*/
{
  unsigned char  maio;
  unsigned char  hsn;
}dwd_hopping_rf; /*T_DWD_HOPPING_RF;*/


typedef struct /*T_DWD_SINGLE_RF_s*/
{
  unsigned short  arfcn;
}dwd_single_rf; /*T_DWD_SINGLE_RF;*/


typedef enum
{
  single_rf,
  hopping_rf
}dwd_chn_selpresent; /*T_DWD_CHN_SELPresent; */

typedef struct /*T_DWD_CHN_SEL_s*/
{
  dwd_chn_selpresent chn_selpresent; /*T_DWD_CHN_SELPresent Present;*/
  union
  {
   dwd_single_rf single_rf; /*T_DWD_SINGLE_RF  single_rf;*/
   dwd_hopping_rf hopping_rf; /*T_DWD_HOPPING_RF  hopping_rf;*/
  } U;
}dwd_chn_sel;/*T_DWD_CHN_SEL;*/

typedef struct /*T_DWD_CHANNEL_DESCRIPTION_s*/
{
  dwd_chn_sel       chan_sel; /*T_DWD_CHN_SEL  chan_sel;*/
  unsigned char     channel_type;
  unsigned char     subchannel;
  unsigned short    timeslot_no;
  unsigned char     tsc;
}dwd_channel_description; /*T_DWD_CHANNEL_DESCRIPTION;*/

typedef struct
{
  unsigned short  A[64];
}dwd_ma_field; /*T_DWD_MA_FIELD;*/


typedef struct /*T_DWD_MOBILE_ALLOCATION_s*/
{
  unsigned short  rf_chan_cnt;
  dwd_ma_field    rf_chan_no; /*T_DWD_MA_FIELD   rf_chan_no;*/
}dwd_mobile_allocation; /*T_DWD_MOBILE_ALLOCATION;*/


typedef struct /*T_DWD_L1_CHANNEL_ELEM_s*/
{
  dwd_channel_description description; /*T_DWD_CHANNEL_DESCRIPTION  description;*/
  dwd_mobile_allocation   frequency_list; /*T_DWD_MOBILE_ALLOCATION    frequency_list;*/
} dwd_l1_channel_elem; /*T_DWD_L1_CHANNEL_ELEM;*/

typedef struct
{
  unsigned int16 A[8];
} dwd_timeslot_source; /*T_DWD_TIMESLOT_SOURCE; */

typedef struct
{
  unsigned int16 modul;
  signed int16	ioffs;
  signed int16  qoffs;
  unsigned int16 rms;
  signed int16 toffs;
  unsigned int16 berl;
  unsigned int16 berh;
  signed int16 foffs;
}dwd_equ_data; /*T_ATCTST_EQU_DATA*/


typedef unsigned int16  dwd_timeslot_allocation; /*T_ATCTST_TIMESLOT_ALLOCATION;*/
typedef unsigned int16  dwd_radio_freq_no; /*T_ATCTST_RADIO_FREQ_NO; */

typedef unsigned short         dwd_radion_freq_no; /* T_ATCTST_RADIO_FREQ_NO; */
typedef unsigned char          dwd_txpwr; /* T_ATCTST_TXPWR; */

typedef struct /*T_ATCTST_AMR_CONFIG_s */
{
    unsigned char  acs;
    unsigned char amr_thrsh[6];
} dwd_amr_config_type;

typedef struct
{
 unsigned int16 id;
 unsigned char dsp_pipe;
 unsigned char nof_parms;
 unsigned int16 parms[22];  
}dwd_dsp_cmd_elm_type;

typedef dwd_dsp_cmd_elm_type dsp_cmd_type[1];

typedef struct
{
  unsigned char color[10];
  unsigned int16 total_time[10];
  unsigned int16 on_time[10];
} dwd_colorstream_type;

typedef struct
{
  signed int16       filter_in_1[5];
  signed int16       filter_in_2[5];
  signed int16       filter_out_1[5];
  signed int16       filter_out_2[5];

  signed int16       scal_in;
  signed int16       scal_out;
  signed int16       scal_mic;
  signed int16       scal_rec;
  signed int16       gain_out;
  signed int16       mic_mute_on;
  signed int16       side_tone_fact;
  signed int16       side_tone_val;
  signed int16       fill_1[4];
  signed int16       hf_on;
  signed int16       hf_analog_gain;
  signed int16       fill_2[3];
  signed int16       dtx_on;

  signed int16       mix_fact_speech;
  signed int16       mix_fact_tone;
  signed int16       hf_step_width;
  signed int16       hf_lms_length;
  signed int16       hf_lms_offset;
  signed int16       hf_block_length;
  signed int16       hf_rxtx_relation;
  signed int16       fill_3[3];
  signed int16       hf_add_atten;
  signed int16       hf_min_atten;
  signed int16       hf_max_atten;

  signed int16       vgtx;
  signed int16       mic_1_2_on; /* 0 = mic 1, otherwise mic 2 */

  signed int16       vg1_on;
  signed int16       vg2_on;
  signed int16       vg1rx;
  signed int16       vg2rx;

  unsigned char      aud_main_state;
  unsigned char      aud_buz_state;
  unsigned char      aud_ear_state;
  unsigned char      aud_mic_state;
  unsigned char      audio_mode;
}DWD_get_audio_data_con_type;


typedef enum 
{
  dwd_aud_handset_mic,
  dwd_aud_headset_mic,
  dwd_aud_I2S1_rx,  /*aud_bt_headset*/
  dwd_aud_uplink_source_end
}dwd_aud_uplink_source_enum;

typedef enum
{
  dwd_aud_normal_earpiece,
  dwd_aud_mono_headset,
  dwd_aud_stereo_headset,
  dwd_aud_backspeaker,
  dwd_aud_I2S1_tx, // Bluetooth
  dwd_aud_downlink_source_end
}dwd_aud_downlink_source_enum;

typedef struct
{
	bool earpiece;
        bool mono_headset;
        bool stereo_headset;
        bool accessory;
        bool back_speaker;
        bool voice_memo_in;
        bool i2s1_tx_bt_carkit;
        bool i2s2_tx;
        bool tty;
}DWD_SGOLD_downlink_data;

typedef struct
{
	bool handset;
	bool headset;
        bool voice_memo;
        bool i2s1_rx_bt;
        bool i2s2_rx;
        bool tty1;
}DWD_SGOLD_uplink_data;

typedef struct {
	signed int16 a0;
	signed int16 a1;
	signed int16 a2;
	signed int16 b1;
	signed int16 b2; 
}DWD_SGOLD_biquad_filters;

typedef struct {
/*	bool ep_pn1;
	bool ep_pa1;
	bool ep_ref;
	bool ep_pa2;
	bool dac1_r;
	bool dac1_l;
	bool dac2_r;
	bool dac2_l;
	bool dac3_r;
	bool dac3_l; 
*/
	bool vmicmode;
	signed int16 mic; 	// 0 - None
		  		// 1 - MIC1
		  		// 2 - MIC2
	bool veppn;
	signed int16 veppa;
	signed int16 rxgainpa;
	signed int16 outsel;
	signed int16 outsell;
	signed int16 rxgainlo;
	bool txgain0;
	bool txgain1;
	bool txgain2;
}DWD_SGOLD_AFE_params;

typedef struct {
	signed int16 duration;
	signed int16 freq1;
	signed int16 freq2;
	signed int16 freq3;
	signed int16 amp1;
	signed int16 amp2;
	signed int16 amp3;
}DWD_SGOLD_tonegen;

typedef struct {
	signed int16 on;
        signed int16 analog_gain;
        signed int16 lms_length;
        signed int16 step_width;
        signed int16 lms_offset;
        signed int16 block_length;
        signed int16 rxtx_relation;
        signed int16 add_atten;
        signed int16 min_atten;
        signed int16 max_atten;
        signed int16 nr_u_fak_0;
        signed int16 nr_sw_2;
        signed int16 nr_u_fak;
}DWD_SGOLD_handsfree;

typedef struct {
	signed int16 scal_in;
	signed int16 scal_mic;
	signed int16 mix_i2s1;
	signed int16 scal_out;
	signed int16 scal_rec;
	signed int16 mix_afe;
	signed int16 scal_sapp;
	signed int16 scal_ext;
	signed int16 side_ton;
	signed int16 gain_out;
	signed int16 delta0;
	signed int16 lambda0;
	signed int16 delta1;
	signed int16 ton_mix;
	signed int16 speech_mix;
	signed int16 kappa0;
	signed int16 kappa1;
	signed int16 lambda1;
	signed int16 alpha0;
	signed int16 alpha1;
	signed int16 gamma0;
	signed int16 mic_mute;
	signed int16 beta0;
	signed int16 beta1;
	signed int16 gamma1;
}DWD_SGOLD_dsp_params;

typedef struct {
	bool usehex;
	unsigned int volume_step;
	unsigned int dai_mode; 
	unsigned int i2s1_mode;
	unsigned int i2s2_mode;
}DWD_SGOLD_misc_params;


typedef struct {
	DWD_SGOLD_misc_params misc_params;
	DWD_SGOLD_dsp_params dsp_params;
	DWD_SGOLD_AFE_params afe_params;
	DWD_SGOLD_uplink_data uplink_data;
	DWD_SGOLD_downlink_data downlink_data;
	DWD_SGOLD_biquad_filters biquad_in1;
	DWD_SGOLD_biquad_filters biquad_in2;
	DWD_SGOLD_biquad_filters biquad_out1;
	DWD_SGOLD_biquad_filters biquad_out2;
	DWD_SGOLD_handsfree handsfree;
	DWD_SGOLD_tonegen tonegen;
}DWD_SGOLD_AUDIO_data;


/*-------------------------------------------------------------------------*/
/*----------------------- Functionns---------------------------------------*/
/*-------------------------------------------------------------------------*/

/*---------------------- Communication ------------------------------------*/
extern "C" __declspec(dllexport) bool DWD_set_com_port(unsigned char com_port, int *handle);
extern "C" __declspec(dllexport) bool DWD_close_com_port(int handle);
extern "C" __declspec(dllexport) bool DWD_check_comm_link(int handle);
extern "C" __declspec(dllexport) bool DWD_set_baud_rate(int baud, int handle);
extern "C" __declspec(dllexport) bool DWD_set_DTR(bool value, int handle); // "true" is the default value
extern "C" __declspec(dllexport) bool DWD_set_RTS(bool value, int handle); // "false" is the default value
extern "C" __declspec(dllexport) bool DWD_set_ms_baudrate(dwd_baud_rate_type baudrate, int handle);
extern "C" __declspec(dllexport) bool DWD_check_CTS(int handle);
/*-------------------------------------------------------------------------*/

/*---------------------- Test modes ---------------------------------------*/
extern "C" __declspec(dllexport) bool DWD_set_test_mode(unsigned int16 mode, unsigned int16 arfcn, int handle);  /* IN LINE, CALIB, MMI */

⌨️ 快捷键说明

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