Revision c94963a4 host/lib/usrp/b100/b100_impl.cpp
| b/host/lib/usrp/b100/b100_impl.cpp | ||
|---|---|---|
| 117 | 117 |
catch(const uhd::exception &){continue;} //ignore claimed
|
| 118 | 118 |
|
| 119 | 119 |
fx2_ctrl::sptr fx2_ctrl = fx2_ctrl::make(control); |
| 120 |
const mboard_eeprom_t mb_eeprom = mboard_eeprom_t(*fx2_ctrl, mboard_eeprom_t::MAP_B100);
|
|
| 120 |
const mboard_eeprom_t mb_eeprom = mboard_eeprom_t(*fx2_ctrl, B100_EEPROM_MAP_KEY);
|
|
| 121 | 121 |
device_addr_t new_addr; |
| 122 | 122 |
new_addr["type"] = "b100"; |
| 123 | 123 |
new_addr["name"] = mb_eeprom["name"]; |
| ... | ... | |
| 268 | 268 |
//////////////////////////////////////////////////////////////////// |
| 269 | 269 |
// setup the mboard eeprom |
| 270 | 270 |
//////////////////////////////////////////////////////////////////// |
| 271 |
const mboard_eeprom_t mb_eeprom(*_fx2_ctrl, mboard_eeprom_t::MAP_B100);
|
|
| 271 |
const mboard_eeprom_t mb_eeprom(*_fx2_ctrl, B100_EEPROM_MAP_KEY);
|
|
| 272 | 272 |
_tree->create<mboard_eeprom_t>(mb_path / "eeprom") |
| 273 | 273 |
.set(mb_eeprom) |
| 274 | 274 |
.subscribe(boost::bind(&b100_impl::set_mb_eeprom, this, _1)); |
| ... | ... | |
| 527 | 527 |
} |
| 528 | 528 |
|
| 529 | 529 |
void b100_impl::set_mb_eeprom(const uhd::usrp::mboard_eeprom_t &mb_eeprom){
|
| 530 |
mb_eeprom.commit(*_fx2_ctrl, mboard_eeprom_t::MAP_B100);
|
|
| 530 |
mb_eeprom.commit(*_fx2_ctrl, B100_EEPROM_MAP_KEY);
|
|
| 531 | 531 |
} |
| 532 | 532 |
|
| 533 | 533 |
void b100_impl::set_db_eeprom(const std::string &type, const uhd::usrp::dboard_eeprom_t &db_eeprom){
|
Also available in: Unified diff