blob: b48cfdcd06a6bf8c5f54c6330f9c467082b6e6cd (
plain)
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
|
#ifndef _LC15BTS_POWER_H
#define _LC15BTS_POWER_H
enum lc15bts_power_source {
LC15BTS_POWER_SUPPLY,
LC15BTS_POWER_PA0,
LC15BTS_POWER_PA1,
_NUM_POWER_SOURCES
};
enum lc15bts_power_type {
LC15BTS_POWER_POWER,
LC15BTS_POWER_VOLTAGE,
LC15BTS_POWER_CURRENT,
_NUM_POWER_TYPES
};
int lc15bts_power_sensor_get(
enum lc15bts_power_source source,
enum lc15bts_power_type type,
int *volt);
int lc15bts_power_set(
enum lc15bts_power_source source,
int en);
int lc15bts_power_get(
enum lc15bts_power_source source);
enum lc15bts_vswr_sensor {
LC15BTS_VSWR_TX0,
LC15BTS_VSWR_TX1,
_NUM_VSWR_SENSORS
};
int lc15bts_vswr_get(enum lc15bts_vswr_sensor sensor, int *vswr);
#endif
|