| 160 | } |
| 161 | |
| 162 | ConfigurationKeyMap getAllConfigurationKeys() |
| 163 | { |
| 164 | extern ConfigurationKeyMap getConfigurationKeys(); |
| 165 | ConfigurationKeyMap map = getConfigurationKeys(); |
| 166 | ConfigurationKey *tmp; |
| 167 | |
| 168 | tmp = new ConfigurationKey("PowerScanner.dBmOffset","0", |
| 169 | "dBm", |
| 170 | ConfigurationKey::FACTORY, |
| 171 | ConfigurationKey::VALRANGE, |
| 172 | "0:100", |
| 173 | false, |
| 174 | "Calibrated dBm level corresponding to full scale on the receiver." |
| 175 | ); |
| 176 | map[tmp->getName()] = *tmp; |
| 177 | delete tmp; |
| 178 | |
| 179 | tmp = new ConfigurationKey("PowerScanner.DBPath","/var/run/OpenBTS/PowerScannerResults.db", |
| 180 | "", |
| 181 | ConfigurationKey::FACTORY, |
| 182 | ConfigurationKey::FILEPATH, |
| 183 | "", |
| 184 | true, |
| 185 | "Path to the scanning results database." |
| 186 | ); |
| 187 | map[tmp->getName()] = *tmp; |
| 188 | delete tmp; |
| 189 | |
| 190 | tmp = new ConfigurationKey("PowerScanner.IntegrationTime","250", |
| 191 | "milliseconds", |
| 192 | ConfigurationKey::FACTORY, |
| 193 | ConfigurationKey::VALRANGE, |
| 194 | "50:5000", |
| 195 | false, |
| 196 | "Power detection integration time in milliseconds." |
| 197 | ); |
| 198 | map[tmp->getName()] = *tmp; |
| 199 | delete tmp; |
| 200 | |
| 201 | tmp = new ConfigurationKey("PowerScanner.RxGain","97", |
| 202 | "dB", |
| 203 | ConfigurationKey::FACTORY, |
| 204 | ConfigurationKey::VALRANGE, |
| 205 | "0:200", |
| 206 | false, |
| 207 | "Receiver gain for the power scanner program, raw value to setRxGain." |
| 208 | ); |
| 209 | map[tmp->getName()] = *tmp; |
| 210 | delete tmp; |
| 211 | |
| 212 | return map; |
| 213 | } |
no test coverage detected