11 #ifndef INCLUDED_LIBCYBERRADIO_DRIVER_TUNERCOMPONENT_H 12 #define INCLUDED_LIBCYBERRADIO_DRIVER_TUNERCOMPONENT_H 14 #include "LibCyberRadio/Driver/RadioComponent.h" 15 #include "LibCyberRadio/Common/BasicList.h" 72 double freqRangeMin = 20e6,
73 double freqRangeMax = 6000e6,
75 double freqUnits = 1e6,
76 double attRangeMin = 0.0,
77 double attRangeMax = 30.0,
80 double frequency = 800e6,
81 double attenuation = 0.0,
104 virtual bool enable(
bool enabled =
true);
298 double _freqRangeMin;
300 double _freqRangeMax;
334 #endif // INCLUDED_LIBCYBERRADIO_DRIVER_TUNERCOMPONENT_H virtual bool setTimingAdjustment(int timingAdj)
Sets the timing adjustment setting.
virtual bool executeFreqQuery(int index, double &freq)
Executes the tuner frequency query command.
virtual TunerComponent & operator=(const TunerComponent &other)
Assignment operator for TunerComponent objects.
virtual bool executeTimingAdjustmentCommand(int index, int &timingAdj)
Executes the tuner timing adjustment command.
virtual bool executeAttenCommand(int index, double &atten)
Executes the tuner attenuation set command.
virtual double getAttenuationRes() const
Gets the attenuation resolution.
virtual void updateConfigurationDict()
Updates the configuration dictionary from component settings.
virtual double getFrequencyUnit() const
Gets the tuned frequency units.
virtual bool setFrequencyRangeMax(double freq)
Sets the maximum end of the tunable frequency range.
Base hardware component class.
virtual bool executeFilterCommand(int index, int &filter)
Executes the tuner filter set command.
virtual void queryConfiguration()
Tells the component to query its hardware configuration in order to create its configuration dictiona...
virtual bool executeEnableQuery(int index, bool &enabled)
Executes the tuner enabled query command.
virtual bool executeTimingAdjustmentQuery(int index, int &timingAdj)
Executes the tuner timing adjustment query.
BASIC_LIST_CONTAINER< double > BasicDoubleList
Type representing a list of doubles.
TunerComponent(const std::string &name="TUNER", int index=1, RadioHandler *parent=NULL, bool debug=false, double freqRangeMin=20e6, double freqRangeMax=6000e6, double freqRes=1e6, double freqUnits=1e6, double attRangeMin=0.0, double attRangeMax=30.0, double attRes=1.0, bool agc=false, double frequency=800e6, double attenuation=0.0, int filter=0)
Constructs a TunerComponent object.
virtual BasicDoubleList getFrequencyRange() const
Gets the tunable frequency range.
virtual bool setFilter(int filter)
Sets the filter setting.
virtual double getAttenuation() const
Gets the attenuation.
virtual double getFrequency() const
Gets the tuned frequency.
virtual bool setAttenuation(double atten)
Sets the attenuation.
virtual bool enable(bool enabled=true)
Enables this component.
virtual bool setConfiguration(ConfigurationDict &cfg)
Sets the configuration dictionary for this component.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Generic radio handler class.
virtual int debug(const char *format,...)
Outputs debug information.
virtual bool executeFilterQuery(int index, int &filter)
Executes the tuner filter query command.
virtual bool isAgcSupported() const
Gets whether or not the tuner supports AGC.
Defines functionality for LibCyberRadio applications.
virtual bool setFrequency(double freq)
Sets the tuned frequency.
A configuration dictionary.
BASIC_DICT_CONTAINER< int, TunerComponent * > TunerComponentDict
A dictionary of tuner components, keyed by index.
Base tuner component class.
virtual int getTimingAdjustment() const
Gets the timing adjustment setting.
virtual bool executeEnableCommand(int index, bool &enabled)
Executes the tuner enable command.
virtual bool executeAttenQuery(int index, double &atten)
Executes the tuner attenuation query command.
virtual ~TunerComponent()
Destroys a TunerComponent object.
virtual bool executeFreqCommand(int index, double &freq)
Executes the tuner frequency set command.
virtual double getFrequencyRes() const
Gets the tuned frequency resolution.
virtual int getFilter() const
Gets the filter setting.
virtual BasicDoubleList getAttenuationRange() const
Gets the attenuation range.