GNU Radio's IEEE802_11 Package
signal_field_impl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013 Bastian Bloessl <bloessl@ccs-labs.org>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef INCLUDED_IEEE802_11_SIGNAL_FIELD_IMPL_H
19#define INCLUDED_IEEE802_11_SIGNAL_FIELD_IMPL_H
20
21#include "utils.h"
23
24namespace gr {
25namespace ieee802_11 {
26
28{
29public:
32
33 bool
34 header_formatter(long packet_len, unsigned char* out, const std::vector<tag_t>& tags);
35
36 bool header_parser(const unsigned char* header, std::vector<tag_t>& tags);
37
38private:
39 int get_bit(int b, int i);
40 void generate_signal_field(char* out, frame_param& frame, ofdm_param& ofdm);
41};
42
43} // namespace ieee802_11
44} // namespace gr
45
46#endif /* INCLUDED_IEEE802_11_SIGNAL_FIELD_IMPL_H */
Definition utils.h:80
bool header_formatter(long packet_len, unsigned char *out, const std::vector< tag_t > &tags)
Definition utils.h:58
Definition chunks_to_symbols.h:24
Definition chunks_to_symbols.h:23