UHD  003.000.c6c4b01e0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
metadata.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010 Ettus Research LLC
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_UHD_TYPES_METADATA_HPP
19 #define INCLUDED_UHD_TYPES_METADATA_HPP
20 
21 #include <uhd/config.hpp>
22 #include <uhd/types/time_spec.hpp>
23 
24 namespace uhd{
25 
34 
37 
45 
52 
55 
58 
73  enum error_code_t {
75  ERROR_CODE_NONE = 0x0,
77  ERROR_CODE_TIMEOUT = 0x1,
79  ERROR_CODE_LATE_COMMAND = 0x2,
81  ERROR_CODE_BROKEN_CHAIN = 0x4,
83  ERROR_CODE_OVERFLOW = 0x8,
85  ERROR_CODE_BAD_PACKET = 0xf
86  } error_code;
87  };
88 
101 
104 
107 
110 
115  tx_metadata_t(void);
116  };
117 
123  size_t channel;
124 
127 
130 
136  EVENT_CODE_BURST_ACK = 0x1,
138  EVENT_CODE_UNDERFLOW = 0x2,
140  EVENT_CODE_SEQ_ERROR = 0x4,
142  EVENT_CODE_TIME_ERROR = 0x8,
144  EVENT_CODE_UNDERFLOW_IN_PACKET = 0x10,
146  EVENT_CODE_SEQ_ERROR_IN_BURST = 0x20
147  } event_code;
148  };
149 
150 } //namespace uhd
151 
152 #endif /* INCLUDED_UHD_TYPES_METADATA_HPP */
time_spec_t time_spec
Time of the first sample.
Definition: metadata.hpp:36
bool end_of_burst
Set end of burst to true for the last packet in the chain.
Definition: metadata.hpp:109
time_spec_t time_spec
When to send the first sample.
Definition: metadata.hpp:103
Definition: time_spec.hpp:39
bool has_time_spec
Has time specification?
Definition: metadata.hpp:126
size_t fragment_offset
Definition: metadata.hpp:51
event_code_t
Definition: metadata.hpp:134
Definition: metadata.hpp:31
Definition: metadata.hpp:94
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
bool has_time_spec
Definition: metadata.hpp:100
bool start_of_burst
Start of burst will be true for the first packet in the chain.
Definition: metadata.hpp:54
error_code_t
Definition: metadata.hpp:73
bool start_of_burst
Set start of burst to true for the first packet in the chain.
Definition: metadata.hpp:106
bool has_time_spec
Has time specification?
Definition: metadata.hpp:33
Definition: metadata.hpp:121
size_t channel
The channel number in a mimo configuration.
Definition: metadata.hpp:123
bool more_fragments
Definition: metadata.hpp:44
bool end_of_burst
End of burst will be true for the last packet in the chain.
Definition: metadata.hpp:57
time_spec_t time_spec
When the async event occurred.
Definition: metadata.hpp:129