Class RfSetupParameters
-
- All Implemented Interfaces:
public class RfSetupParameters
Wrapper class for parameters of GollumDongle.BruteForceSetupParameters()
-
-
Field Summary
Fields Modifier and Type Field Description public int
frequency
public int
dataRate
public int
modulation
public int
deviation
public int
frameLength
public int
channelBandwidth
-
Constructor Summary
Constructors Constructor Description RfSetupParameters(int frequency, int dataRate, int modulation, int deviation, int channelBandwidth, int frameLength)
-
Method Summary
Modifier and Type Method Description int
getFrequency()
void
setFrequency(int frequency)
int
getDataRate()
int
getModulation()
int
getDeviation()
int
getFrameLength()
int
getChannelBandwidth()
String
toString()
boolean
isValidForRx()
Check parameters validity for reception boolean
isValidForTx()
Check parameters validity for transmission. boolean
isValidForBruteForce()
Check parameters validity for transmission. -
-
Constructor Detail
-
RfSetupParameters
RfSetupParameters(int frequency, int dataRate, int modulation, int deviation, int channelBandwidth, int frameLength)
- Parameters:
frequency
- The frequency to use in HzdataRate
- Target data rate, in bits/s.modulation
- The modulation value to use.deviation
- Channel deviation, in Hz.channelBandwidth
- Receiver Channel Filter Bandwidth, in Hz.frameLength
- Size (in bytes) of the packet that the CC1111 transceiver needs to capture before sending it to Android.
-
-
Method Detail
-
getFrequency
int getFrequency()
-
setFrequency
void setFrequency(int frequency)
-
getDataRate
int getDataRate()
-
getModulation
int getModulation()
-
getDeviation
int getDeviation()
-
getFrameLength
int getFrameLength()
-
getChannelBandwidth
int getChannelBandwidth()
-
isValidForRx
boolean isValidForRx()
Check parameters validity for reception
- Returns:
true if object parameters are valid, false if invalid
-
isValidForTx
boolean isValidForTx()
Check parameters validity for transmission. Does not check channel BW.
- Returns:
true if object parameters are valid, false if invalid
-
isValidForBruteForce
boolean isValidForBruteForce()
Check parameters validity for transmission. Does not check channel BW or frame length.
- Returns:
true if object parameters are valid, false if invalid
-
-
-
-