<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
        targetNamespace="http://www.cablelabs.com/namespaces/DOCSIS/3.0/xsd/ipdr/DOCSIS-SPECTRUM" 
        xmlns:DOCSIS-SPECTRUM="http://www.cablelabs.com/namespaces/DOCSIS/3.0/xsd/ipdr/DOCSIS-SPECTRUM" 
        xmlns:ipdr="http://www.ipdr.org/namespaces/ipdr" version="3.5.1-A.2" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <import namespace="http://www.ipdr.org/namespaces/ipdr" schemaLocation="http://www.ipdr.org/public/IPDRDoc3.5.1.xsd"/>
    <include schemaLocation="http://www.ipdr.org/public/IPDRTypes.xsd"/>
    <annotation>
        <documentation>DOCSIS-SPECTRUM_3.5.1-A.2 is an auxiliary schema 
        which defines Spectrum Analysis and Measurement information.
        3.5.1-A.1 Initial version.
        3.5.1-A.2 Revised version includes ECN
        OSSIv3.0-N-10.0968-2 and published as I14.
        </documentation>
        <documentation>
        <ipdr:reference>Data-Over-Cable Service Interface Specifications: Operations
        Support System Interface Specification SP-CM-OSSIv3.0-I01-061207, Annex J.
        </ipdr:reference>
        </documentation>
    </annotation>
    <element name="SpectrumAnalysisMeasIfIndex" type="unsignedInt">
        <annotation>
            <documentation>Contains the ifIndex of the CMTS logical upstream channel.</documentation>
        </annotation>
    </element>
    <element name="ChId" type="unsignedByte">
        <annotation>
            <documentation>The US/DS channel id as defined in docsIf3MdChCfgChId.</documentation>
        </annotation>
    </element>
    <element name="SpectrumAnalysisMeasChCenterFreq" type="integer">
        <annotation>
            <documentation>Contains the center of the frequency band associated with the
            CMTS physical upstream interface. It contains zero if the frequency
            is undefined or unknown.</documentation>
            <documentation>
                <ipdr:units>hertz</ipdr:units>
            </documentation>
        </annotation>
    </element>
    <element name="SpectrumAnalysisMeasFreqSpan" type="unsignedInt">
        <annotation>
            <documentation>Contains the width of the band across which the spectral 
            amplitudes characterizing the channel are measured.</documentation>
            <documentation>
                <ipdr:units>hertz</ipdr:units>
            </documentation>
        </annotation>
    </element>
    <element name="SpectrumAnalysisMeasNumOfBins" type="unsignedInt">
        <annotation>
            <documentation>The number of data points or bins that compose the 
            spectral data. The leftmost bin corresponds to the lower band 
            edge, the rightmost bin corresponds to the upper band edge, 
            and the middle bin center is aligned with the center frequency 
            of the analysis span.</documentation>
            <documentation>
                <ipdr:units>bins</ipdr:units>
            </documentation>
        </annotation>
    </element>
    <element name="SpectrumAnalysisMeasResolutionBW" type="unsignedInt">
        <annotation>
            <documentation>Contains the resolution bandwidth
            (defined as the equivalent noise bandwidth) of each bin.</documentation>
            <documentation>
                <ipdr:units>hertz</ipdr:units>
            </documentation>
        </annotation>
    </element>
    <element name="SpectrumAnalysisMeasBinSpacing" type="unsignedInt">
        <annotation>
            <documentation>Contains the frequency separation between adjacent bins, 
            not to exceed 25 kHz for channel widths less than or equal 6.4 MHz.</documentation>
            <documentation>
                <ipdr:units>hertz</ipdr:units>
            </documentation>
        </annotation>
    </element>
    <element name="SpectrumAnalysisMeasAmplitude" type="hexBinary">
        <annotation>
            <documentation>A sequence of two byte elements. Each element 
            represents the spectral amplitudes in relation to the expected 
            received signal power of a bin, in units of 0.01dB. That is, a 
            test CMTS input signal with square-root raised-cosine spectrum, 
            bandwidth equal to the expected received signal bandwidth, and 
            power equal to the expected received signal power, which is 
            present for the entire spectrum sampling period, will exhibit a 
            spectrum measurement of 0 dB average power in each bin of the 
            signal passband.
            Each bin element amplitude value format is 2's complement which 
            provides a range of -327.68 dB to 327.67 dB amplitude value 
            for the bin measurement.
            </documentation>
        </annotation>
    </element>
</schema>

