File: db_ubx.hpp

package info (click to toggle)
uhd 4.3.0.0%2Bds1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 175,384 kB
  • sloc: cpp: 271,145; ansic: 103,960; python: 95,906; vhdl: 55,838; tcl: 14,117; xml: 8,535; makefile: 2,706; sh: 2,432; pascal: 230; javascript: 120; csh: 94; asm: 20; perl: 11
file content (57 lines) | stat: -rw-r--r-- 1,797 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Copyright 2020 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//

#pragma once

#include <uhd/usrp/dboard_base.hpp>

using namespace uhd;
using namespace uhd::usrp;

namespace uhd { namespace usrp { namespace dboard { namespace ubx {

static const dboard_id_t UBX_PROTO_V3_TX_ID(0x73);
static const dboard_id_t UBX_PROTO_V3_RX_ID(0x74);
static const dboard_id_t UBX_PROTO_V4_TX_ID(0x75);
static const dboard_id_t UBX_PROTO_V4_RX_ID(0x76);
static const dboard_id_t UBX_V1_40MHZ_TX_ID(0x77);
static const dboard_id_t UBX_V1_40MHZ_RX_ID(0x78);
static const dboard_id_t UBX_V1_160MHZ_TX_ID(0x79);
static const dboard_id_t UBX_V1_160MHZ_RX_ID(0x7A);
static const dboard_id_t UBX_V2_40MHZ_TX_ID(0x7B);
static const dboard_id_t UBX_V2_40MHZ_RX_ID(0x7C);
static const dboard_id_t UBX_V2_160MHZ_TX_ID(0x7D);
static const dboard_id_t UBX_V2_160MHZ_RX_ID(0x7E);
static const dboard_id_t UBX_LP_160MHZ_TX_ID(0x0200);
static const dboard_id_t UBX_LP_160MHZ_RX_ID(0x0201);
static const dboard_id_t UBX_TDD_160MHZ_TX_ID(0x0202);
static const dboard_id_t UBX_TDD_160MHZ_RX_ID(0x0203);
static const std::vector<dboard_id_t> ubx_ids{UBX_PROTO_V3_TX_ID,
    UBX_PROTO_V4_TX_ID,
    UBX_V1_40MHZ_TX_ID,
    UBX_V1_160MHZ_TX_ID,
    UBX_V2_40MHZ_TX_ID,
    UBX_V2_160MHZ_TX_ID,
    UBX_LP_160MHZ_TX_ID,
    UBX_TDD_160MHZ_TX_ID,
    UBX_PROTO_V3_RX_ID,
    UBX_PROTO_V4_RX_ID,
    UBX_V1_40MHZ_RX_ID,
    UBX_V1_160MHZ_RX_ID,
    UBX_V2_40MHZ_RX_ID,
    UBX_V2_160MHZ_RX_ID,
    UBX_LP_160MHZ_RX_ID,
    UBX_TDD_160MHZ_RX_ID};

static UHD_INLINE double get_max_pfd_freq(dboard_id_t dboard_id)
{
    if ((dboard_id == UBX_PROTO_V3_TX_ID) || (dboard_id == UBX_PROTO_V3_RX_ID)) {
        return 25e6;
    }
    return 50e6;
}

}}}}; // namespace uhd::usrp::dboard::ubx