commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10083 - openbts/branches/developers/dburgess00/veryea


From: dburgess00
Subject: [Commit-gnuradio] r10083 - openbts/branches/developers/dburgess00/veryearly/GSM
Date: Fri, 28 Nov 2008 18:12:32 -0700 (MST)

Author: dburgess00
Date: 2008-11-28 18:12:31 -0700 (Fri, 28 Nov 2008)
New Revision: 10083

Modified:
   openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.cpp
   openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.h
Log:
Added Channel Mode Modify and Channel Mode Modify Acknowledge
messages.  Part of changes for item #316.


Modified: 
openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.cpp
===================================================================
--- openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.cpp    
2008-11-28 07:14:58 UTC (rev 10082)
+++ openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.cpp    
2008-11-29 01:12:31 UTC (rev 10083)
@@ -528,5 +528,34 @@
 
 
 
+void L3ChannelModeModify::writeBody(L3Frame &dest, size_t& wp) const
+{
+       mDescription.writeV(dest,wp);
+       mMode.writeV(dest,wp);
+}
 
+
+void L3ChannelModeModify::text(ostream& os) const
+{
+       L3RRMessage::text(os);
+       os << "description=(" << mDescription << ")";
+       os << " mode=(" << mMode << ")";
+}
+
+
+void L3ChannelModeModifyAcknowledge::parseBody(const L3Frame &src, size_t& rp)
+{
+       mDescription.parseV(src,rp);
+       mMode.parseV(src,rp);
+}
+
+
+void L3ChannelModeModifyAcknowledge::text(ostream& os) const
+{
+       L3RRMessage::text(os);
+       os << "description=(" << mDescription << ")";
+       os << " mode=(" << mMode << ")";
+}
+
+
 // vim: ts=4 sw=4

Modified: openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.h
===================================================================
--- openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.h      
2008-11-28 07:14:58 UTC (rev 10082)
+++ openbts/branches/developers/dburgess00/veryearly/GSM/GSML3RRMessages.h      
2008-11-29 01:12:31 UTC (rev 10083)
@@ -95,12 +95,12 @@
                ///@name miscellaneous
                //@{
                ChannelModeModify=0x10,
+               RRStatus=0x12,
+               ChannelModeModifyAcknowledge=0x17,
                ClassmarkChange=0x16,
+               MeasurementReport = 0x15,
                GPRSSuspensionRequest=0x34,
-               RRStatus=0x12,
                //@}
-               /// reporting
-               MeasurementReport = 0x15,
                ///@name special cases -- assigned >8-bit codes to avoid 
conflicts
                //@{
                SynchronizationChannelInformation=0x100,
@@ -684,7 +684,57 @@
 
 
 
+/** GSM 04.08 9.1.5 */
+class L3ChannelModeModify : public L3RRMessage {
 
+       private:
+
+       L3ChannelDescription mDescription;
+       L3ChannelMode mMode;
+
+       public:
+
+       L3ChannelModeModify(const L3ChannelDescription& wDescription,
+                                               const L3ChannelMode& wMode)
+               :L3RRMessage(),
+               mDescription(wDescription),
+               mMode(wMode)
+       {}
+
+       int MTI() const { return (int) ChannelModeModify; }
+
+       size_t bodyLength() const
+               { return mDescription.lengthV() + mMode.lengthV(); }
+
+       void writeBody(L3Frame&, size_t&) const;
+
+       void text(std::ostream&) const;
+};
+
+
+/** GSM 04.08 9.1.6 */
+class L3ChannelModeModifyAcknowledge : public L3RRMessage {
+
+       private:
+
+       L3ChannelDescription mDescription;
+       L3ChannelMode mMode;
+
+       public:
+
+       int MTI() const { return (int) ChannelModeModifyAcknowledge; }
+
+       size_t bodyLength() const
+               { return mDescription.lengthV() + mMode.lengthV(); }
+
+       void parseBody(const L3Frame&, size_t&);
+
+       void text(std::ostream&) const;
+};
+
+
+
+
 }; // GSM
 
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]