mac.h
Go to the documentation of this file.
/*
* Copyright (C) 2013 Bastian Bloessl <bloessl@ccs-labs.org>
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INCLUDED_GR_IEEE802_15_4_MAC_H
#define INCLUDED_GR_IEEE802_15_4_MAC_H
#include <ieee802_15_4/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace ieee802_15_4 {
/*!
* \brief This is the MAC Block.
*
* \details
* The MAC block...
*/
class IEEE802_15_4_API mac: virtual public block
{
public:
virtual int get_num_packet_errors() = 0;
virtual int get_num_packets_received() = 0;
virtual float get_packet_error_ratio() = 0;
typedef boost::shared_ptr<mac> sptr;
static sptr make(bool debug=false,
/* default values for receive sensitivity testing in Zigbee test spec 14-0332-01 */
int fcf=0x8841,
int seq_nr=0,
int dst_pan=0x1aaa,
int dst=0xffff,
int src=0x3344 );
};
} // namespace ieee802_11
} // namespace gr
#endif /* INCLUDED_GR_IEEE802_15_4_MAC_H */
api.h
IEEE802_15_4_API
#define IEEE802_15_4_API
Definition: api.h:25
gr::ieee802_15_4::mac
This is the MAC Block.
Definition: mac.h:33
gr::ieee802_15_4::mac::get_packet_error_ratio
virtual float get_packet_error_ratio()=0
gr::ieee802_15_4::mac::get_num_packet_errors
virtual int get_num_packet_errors()=0
gr::ieee802_15_4::mac::make
static sptr make(bool debug=false, int fcf=0x8841, int seq_nr=0, int dst_pan=0x1aaa, int dst=0xffff, int src=0x3344)
gr::ieee802_15_4::mac::get_num_packets_received
virtual int get_num_packets_received()=0
gr::ieee802_15_4::mac::sptr
boost::shared_ptr< mac > sptr
Definition: mac.h:39
gr
Definition: access_code_prefixer.h:23