mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
To avoid the proliferation of additional include directories and
multiple ways of including project-local headers, we now default to
moving all headers that are used across UHD into the uhdlib/
subdirectory.
Some #include statements were also reordered as they were modified for
closer compliance with the coding guidelines.
Internal cpp source files should now include files like this:
#include <uhdlib/rfnoc/ctrl_iface.hpp>
Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
20 lines
607 B
C++
20 lines
607 B
C++
//
|
|
// Copyright 2017 Ettus Research (National Instruments Corp.)
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
//
|
|
|
|
#include <uhd/types/byte_vector.hpp>
|
|
#include <uhd/types/mac_addr.hpp>
|
|
#include <boost/asio/ip/address_v4.hpp>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
static const size_t SERIAL_LEN = 9;
|
|
static const size_t NAME_MAX_LEN = 32 - SERIAL_LEN;
|
|
|
|
//! convert a string to a byte vector to write to eeprom
|
|
uhd::byte_vector_t string_to_uint16_bytes(const std::string &num_str);
|
|
|
|
//! convert a byte vector read from eeprom to a string
|
|
std::string uint16_bytes_to_string(const uhd::byte_vector_t &bytes);
|