mirror of https://github.com/contiki-ng/mspsim
Added getOutputPowerMax() to describe the max output power of the radio chip
This commit is contained in:
parent
7945527522
commit
b207699337
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue