diff options
Diffstat (limited to 'host/lib/usrp/x300/x300_mb_eeprom.hpp')
-rw-r--r-- | host/lib/usrp/x300/x300_mb_eeprom.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_mb_eeprom.hpp b/host/lib/usrp/x300/x300_mb_eeprom.hpp new file mode 100644 index 000000000..74e78fda0 --- /dev/null +++ b/host/lib/usrp/x300/x300_mb_eeprom.hpp @@ -0,0 +1,24 @@ +// +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#ifndef INCLUDED_X300_EEPROM_HPP +#define INCLUDED_X300_EEPROM_HPP + +#include <uhd/types/serial.hpp> +#include <uhd/usrp/mboard_eeprom.hpp> + +namespace uhd { namespace usrp { namespace x300 { + +//! Read out the on-board EEPROM, convert to dict, and return +uhd::usrp::mboard_eeprom_t get_mb_eeprom(uhd::i2c_iface::sptr i2c); + +//! Write the contents of an EEPROM dict to the on-board EEPROM +void set_mb_eeprom( + uhd::i2c_iface::sptr iface, const uhd::usrp::mboard_eeprom_t& mb_eeprom); + +}}} // namespace uhd::usrp::x300 + +#endif /* INCLUDED_X300_EEPROM_HPP */ |