libcyberradio  22.01.24
VitaIfSpec.h
1 /***************************************************************************
2  * \file VitaIfSpec.h
3  * \brief Defines the VITA interface specification for an NDR-class radio.
4  * \author DA
5  * \author NH
6  * \author MN
7  * \copyright (c) 2017 CyberRadio Solutions, Inc. All rights reserved.
8  *
9  ***************************************************************************/
10 
11 #ifndef INCLUDED_LIBCYBERRADIO_DRIVER_VITAIFSPEC_H
12 #define INCLUDED_LIBCYBERRADIO_DRIVER_VITAIFSPEC_H
13 
17 namespace LibCyberRadio
18 {
22  namespace Driver
23  {
33  class VitaIfSpec
34  {
35  public:
37  int payloadSizeWords = 0,
38  int tailSizeWords = 0,
39  const char* byteOrder = "little",
40  bool iqSwapped = false,
41  bool usesV491 = true);
42  virtual ~VitaIfSpec();
43  VitaIfSpec(const VitaIfSpec& other);
44  VitaIfSpec& operator=(const VitaIfSpec& other);
45 
46  public:
54  const char* byteOrder;
56  bool iqSwapped;
58  bool usesV491;
59 
60  };
61 
62  } /* namespace Driver */
63 
64 } /* namespace LibCyberRadio */
65 
66 #endif /* INCLUDED_LIBCYBERRADIO_DRIVER_VITAIFSPEC_H */
bool iqSwapped
Whether the I/Q data in the payload are swapped.
Definition: VitaIfSpec.h:56
Class that defines the VITA interface specification for an NDR-class radio.
Definition: VitaIfSpec.h:33
const char * byteOrder
Byte order used by the radio.
Definition: VitaIfSpec.h:54
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
int payloadSizeWords
Size of the payload, in 32-byte words.
Definition: VitaIfSpec.h:50
int headerSizeWords
Size of the VITA 49 header, in 32-byte words.
Definition: VitaIfSpec.h:48
bool usesV491
Whether the data packets use VITA 49.1 framing.
Definition: VitaIfSpec.h:58
int tailSizeWords
Size of the VITA 49 "tail", in 32-byte words.
Definition: VitaIfSpec.h:52