Author: ygrego Date: 2015-04-20 11:40:39 +0000 (Mon, 20 Apr 2015) New Revision: 1234 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1234 Log: Implementation of class "LNBInfo" Added: oipf/js/impl/model/LNBInfo.js Added: oipf/js/impl/model/LNBInfo.js =================================================================== --- oipf/js/impl/model/LNBInfo.js (rev 0) +++ oipf/js/impl/model/LNBInfo.js 2015-04-20 11:40:39 UTC (rev 1234) @@ -0,0 +1,106 @@ +/* + * The LNBInfo object provides details on the LNB attached to a tuner. + * Setting any of the properties in this class results in an immediate update of + * the LNB configuration that is active for the associated Tuner. + * The LNB configuration is stored persistently. + * + */ + +var LNBInfo = Class.extend({ + + /* + * A universal LNB that has two local oscillator frequency + * settings available. The selection between the frequencies is + * done by the presence of a 22 kHz control signal. + */ + DUAL_LO_FREQ_LNB: 30, + + + /* + * Only a single local oscillator frequency is available in the LNB. + */ + SINGLE_LO_FREQ_LNB: 31, + + /* + * Description: + * The type of LNB connected to the frontend. + * Valid values are listed in section 7.3.11.1. + * + * Type: Integer + */ + lnbType: null, + + /* + * Description: + * The low or only, if a single local oscillator frequency LNB is used, + * LNB local oscillator frequency in MHz. + * + * Type: Number + */ + lnbLowFreq: null, + + /* + * Description: + * If a dual local oscillator frequency LNB is used this is + * the high LNB local oscillator frequency in MHz. If a single + * local oscillator frequency LNB is used this argument shall be set to 0. + * + * Type: Number + */ + lnbHighFreq: null, + + /* + * Description: + * Indicates the frequency (in MHz) when to switch between the high- + * and low-band oscillator frequencies (lnbLowFreq and + * lnbHighFreq respectively). + * + * Type: Number + */ + crossoverFrequency: null, + + /* + * Description: + * Indicates the lowest frequency, in MHz, that the LNB can be used for. + * + * Type: Number + */ + lnbStartFrequency: null, + + /* + * Description: + * Indicates the highest frequency, in MHz, that the LNB can be used for. + * + * Type: Number + */ + lnbStopFrequency: null, + + /* + * Description: + * Indicates the orbital position of the satellite in degrees, negative + * value for west, positive value for east. + * For example, Astra 19.2 East would have orbitalPosition 19.2. + * Thor 0.8 West would have orbitalPosition -0.8. + * This property, if provided, will be used to select a Tuner instance + * (when scanning and tuning). Setting any value which is not a valid + * orbital position (an absolute value greater than 180) indicates + * that the orbital position need not be considered when using + * the associated tuner. + * + * Type: Number + */ + orbitalPosition: null, + + init: function(lnbType, lnbLowFreq, lnbHighFreq, crossoverFrequency, + lnbStartFrequency, lnbStopFrequency, orbitalPosition) { + + this.lnbType = lnbType; + this.lnbLowFreq = lnbLowFreq; + this.lnbHighFreq = lnbHighFreq; + this.crossoverFrequency = crossoverFrequency; + this.lnbStartFrequency = lnbStartFrequency; + this.lnbStopFrequency = lnbStopFrequency; + this.orbitalPosition = orbitalPosition; + } + +});
participants (1)
-
ygregoï¼ users.nuiton.org