UHD  003.001.002
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_ALIGNMENT = 0xc,
87  ERROR_CODE_BAD_PACKET = 0xf
88  } error_code;
89  };
90 
103 
106 
109 
112 
117  tx_metadata_t(void);
118  };
119 
125  size_t channel;
126 
129 
132 
138  EVENT_CODE_BURST_ACK = 0x1,
140  EVENT_CODE_UNDERFLOW = 0x2,
142  EVENT_CODE_SEQ_ERROR = 0x4,
144  EVENT_CODE_TIME_ERROR = 0x8,
146  EVENT_CODE_UNDERFLOW_IN_PACKET = 0x10,
148  EVENT_CODE_SEQ_ERROR_IN_BURST = 0x20
149  } event_code;
150  };
151 
152 } //namespace uhd
153 
154 #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:111
time_spec_t time_spec
When to send the first sample.
Definition: metadata.hpp:105
Definition: time_spec.hpp:39
bool has_time_spec
Has time specification?
Definition: metadata.hpp:128
size_t fragment_offset
Definition: metadata.hpp:51
event_code_t
Definition: metadata.hpp:136
Definition: metadata.hpp:31
Definition: metadata.hpp:96
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
bool has_time_spec
Definition: metadata.hpp:102
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:108
bool has_time_spec
Has time specification?
Definition: metadata.hpp:33
Definition: metadata.hpp:123
size_t channel
The channel number in a mimo configuration.
Definition: metadata.hpp:125
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:131