GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
pdu.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2013,2021 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 
12 #ifndef INCLUDED_GR_PDU_H
13 #define INCLUDED_GR_PDU_H
14 
15 #include <gnuradio/api.h>
16 #include <pmt/pmt.h>
17 
18 namespace gr {
19 namespace metadata_keys {
27 } /* namespace metadata_keys */
28 
29 namespace msgport_names {
30 // static const PMT interned string getters for standard port names
41 } /* namespace msgport_names */
42 
43 namespace types {
45 } /* namespace types */
46 
47 namespace pdu {
48 // pdu functions
52 make_pdu_vector(types::vector_type type, const uint8_t* buf, size_t items);
54 
55 } // namespace pdu
56 } // namespace gr
57 
58 #endif /* INCLUDED_GR_PDU_H */
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GR_RUNTIME_API const pmt::pmt_t tx_sob()
GR_RUNTIME_API const pmt::pmt_t tx_eob()
GR_RUNTIME_API const pmt::pmt_t pdu_num()
GR_RUNTIME_API const pmt::pmt_t rx_time()
GR_RUNTIME_API const pmt::pmt_t sample_rate()
GR_RUNTIME_API const pmt::pmt_t sys_time()
GR_RUNTIME_API const pmt::pmt_t tx_time()
GR_RUNTIME_API const pmt::pmt_t bpdu()
GR_RUNTIME_API const pmt::pmt_t msg()
GR_RUNTIME_API const pmt::pmt_t pdu()
GR_RUNTIME_API const pmt::pmt_t fpdu()
GR_RUNTIME_API const pmt::pmt_t pdus()
GR_RUNTIME_API const pmt::pmt_t dict()
GR_RUNTIME_API const pmt::pmt_t conf()
GR_RUNTIME_API const pmt::pmt_t detects()
GR_RUNTIME_API const pmt::pmt_t cpdu()
GR_RUNTIME_API const pmt::pmt_t vec()
GR_RUNTIME_API pmt::pmt_t make_pdu_vector(types::vector_type type, const uint8_t *buf, size_t items)
GR_RUNTIME_API bool type_matches(types::vector_type type, pmt::pmt_t v)
GR_RUNTIME_API types::vector_type type_from_pmt(pmt::pmt_t vector)
GR_RUNTIME_API size_t itemsize(types::vector_type type)
vector_type
Definition: pdu.h:44
@ complex_t
Definition: pdu.h:44
@ byte_t
Definition: pdu.h:44
@ int_t
Definition: pdu.h:44
@ float_t
Definition: pdu.h:44
@ short_t
Definition: pdu.h:44
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
Definition: cc_common.h:35