commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r4159 - gnuradio/branches/developers/n4hy/ofdm/gnuradi


From: trondeau
Subject: [Commit-gnuradio] r4159 - gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/io
Date: Wed, 20 Dec 2006 00:39:21 -0700 (MST)

Author: trondeau
Date: 2006-12-20 00:39:21 -0700 (Wed, 20 Dec 2006)
New Revision: 4159

Added:
   gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/io/gr_frame.h
Log:
adding frame structure to pass modulators MAC frames with packet length and MTU

Added: 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/io/gr_frame.h
===================================================================
--- gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/io/gr_frame.h  
                        (rev 0)
+++ gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/io/gr_frame.h  
2006-12-20 07:39:21 UTC (rev 4159)
@@ -0,0 +1,41 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2005 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_GR_FRAME_H
+#define INCLUDED_GR_FRAME_H
+
+#include <vector>
+
+class gr_frame
+{
+ public:
+  gr_frame(unsigned int mtu)
+    : mtu(mtu), length(0)
+  { }
+
+  unsigned int mtu;
+  unsigned int length;
+  unsigned char data[];
+};
+
+#endif
+





reply via email to

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