1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
| /******************************************************************************
| *
| * Copyright(c) 2007 - 2017 Realtek Corporation.
| *
| * This program is free software; you can redistribute it and/or modify it
| * under the terms of version 2 of the GNU General Public License as
| * published by the Free Software Foundation.
| *
| * This program is distributed in the hope that it will be useful, but WITHOUT
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
| * more details.
| *
| *****************************************************************************/
|
| #ifndef __PHYDMPSD_H__
| #define __PHYDMPSD_H__
|
| /*#define PSD_VERSION "1.0"*/ /*2016.09.22 Dino*/
| #define PSD_VERSION "1.1" /*2016.10.07 Dino, Add Option for PSD Tone index Selection */
|
| #ifdef CONFIG_PSD_TOOL
|
|
| struct _PHYDM_PSD_ {
|
| u8 psd_in_progress;
| u32 psd_reg;
| u32 psd_report_reg;
| u8 psd_pwr_common_offset;
| u16 sw_avg_time;
| u16 fft_smp_point;
| u32 initial_gain_backup;
| u32 rf_0x18_bkp;
| u32 rf_0x18_bkp_b;
| u16 psd_fc_channel;
| u32 psd_bw_rf_reg;
| u8 psd_result[128];
| u8 noise_k_en;
| };
|
| u32
| phydm_get_psd_data(
| void *p_dm_void,
| u32 psd_tone_idx,
| u32 igi
| );
|
| void
| phydm_psd_debug(
| void *p_dm_void,
| char input[][16],
| u32 *_used,
| char *output,
| u32 *_out_len,
| u32 input_num
| );
|
| void
| phydm_psd(
| void *p_dm_void,
| u32 igi,
| u16 start_point,
| u16 stop_point
| );
|
| void
| phydm_psd_para_setting(
| void *p_dm_void,
| u8 sw_avg_time,
| u8 hw_avg_time,
| u8 i_q_setting,
| u16 fft_smp_point,
| u8 ant_sel,
| u8 psd_input,
| u8 channel,
| u8 noise_k_en
| );
|
| void
| phydm_psd_init(
| void *p_dm_void
| );
|
| u8
| phydm_get_psd_result_table(
| void *p_dm_void,
| int index
| );
|
| #endif
| #endif
|
|