Added getOutputPowerMax() to describe the max output power of the radio chip

This commit is contained in:
Niclas Finne 2012-05-29 11:34:41 +02:00
parent 7945527522
commit b207699337
3 changed files with 11 additions and 0 deletions

View File

@ -1348,6 +1348,11 @@ public class CC2420 extends Radio802154 implements USARTListener {
return -100;
}
@Override
public int getOutputPowerMax() {
return 0;
}
public void notifyReset() {
super.notifyReset();
setChipSelect(false);

View File

@ -1383,6 +1383,11 @@ public class CC2520 extends Radio802154 implements USARTListener, SPIData {
return -100;
}
@Override
public int getOutputPowerMax() {
return 5;
}
@Override
public void notifyReset() {
super.notifyReset();

View File

@ -51,6 +51,7 @@ public abstract class Radio802154 extends Chip implements RFListener, RFSource {
public abstract int getActiveChannel();
public abstract int getActiveFrequency();
public abstract int getOutputPower();
public abstract int getOutputPowerMax();
public abstract int getOutputPowerIndicator();
public abstract int getOutputPowerIndicatorMax();