| 1 |
#ifndef _OC2GBTS_POWER_H |
| 2 |
#define _OC2GBTS_POWER_H |
| 3 |
|
| 4 |
enum oc2gbts_power_source { |
| 5 |
OC2GBTS_POWER_SUPPLY, |
| 6 |
OC2GBTS_POWER_PA, |
| 7 |
_NUM_POWER_SOURCES |
| 8 |
}; |
| 9 |
|
| 10 |
enum oc2gbts_power_type { |
| 11 |
OC2GBTS_POWER_POWER, |
| 12 |
OC2GBTS_POWER_VOLTAGE, |
| 13 |
OC2GBTS_POWER_CURRENT, |
| 14 |
_NUM_POWER_TYPES |
| 15 |
}; |
| 16 |
|
| 17 |
int oc2gbts_power_sensor_get( |
| 18 |
enum oc2gbts_power_source source, |
| 19 |
enum oc2gbts_power_type type, |
| 20 |
int *volt); |
| 21 |
|
| 22 |
int oc2gbts_power_set( |
| 23 |
enum oc2gbts_power_source source, |
| 24 |
int en); |
| 25 |
|
| 26 |
int oc2gbts_power_get( |
| 27 |
enum oc2gbts_power_source source); |
| 28 |
|
| 29 |
enum oc2gbts_vswr_sensor { |
| 30 |
OC2GBTS_VSWR, |
| 31 |
_NUM_VSWR_SENSORS |
| 32 |
}; |
| 33 |
|
| 34 |
int oc2gbts_vswr_get(enum oc2gbts_vswr_sensor sensor, int *vswr); |
| 35 |
|
| 36 |
#endif |