Commit graph

37 commits

Author SHA1 Message Date
Josh Blum
cea3d05095 uhd: replaced print warning with a post warning call and registry
renamed print warning calls in the implementation

fixed issue with dict::pop so it now works even if the value is not comparable
2010-10-26 14:14:01 -07:00
Josh Blum
c2ec8c143e usrp: use a dash as the gain name prefix separator, removed RX/TX auto suffix for XCVR board cnames 2010-10-20 18:40:36 -07:00
Josh Blum
d96b2e7587 usrp: use the dboard id to prefix the subdev gain group names 2010-10-20 17:41:59 -07:00
Josh Blum
a4f8ad59b2 usrp: added subdev enabled property
the dboard manager will disable all subdevs at startup and shutdown

setting the subdev spec will enable only the subdevs in use

all dboards are currently implemented as always enabled

nothing tested
2010-09-30 11:05:33 -07:00
Josh Blum
852f5c5f7b dboard: better warnings for invalid IDs and invalid ID combinations 2010-09-28 10:21:11 -07:00
Josh Blum
d769ff8cc3 usrp: removed gain handler code (replaced by gain group) 2010-07-27 15:45:49 -07:00
Josh Blum
f1fe66acd4 usrp: changed opaque pointer implementation for dboard contructor args 2010-07-22 10:26:48 -07:00
Josh Blum
e3058c022e uhd: added checking for xcvr dbids, added unknown dboard rx and tx constructors (for bad dbids or combinations) 2010-06-18 17:20:46 -07:00
Josh Blum
16335c1082 uhd: added dboard manager call to register xcvr board, implemented in xcvr dboard code 2010-06-18 16:39:45 -07:00
Josh Blum
33193a06c1 replaced the assert falses with an invalid code path exception 2010-06-02 15:49:53 -07:00
Josh Blum
39943a5b0c Added support to set GPIO pins from dboard interface:
write gpio and set pin control (atr or gpio)

Added property to get dboard interface from the dboard obj.
2010-05-24 16:31:23 -07:00
Josh Blum
ba9708b786 minor fix to pass dboard ctor args with correct dbids 2010-05-03 11:03:59 -07:00
Josh Blum
4d5df2376b Expanded the dboard id API to create dboard id types from strings and ints.
And created utility functions to go between representations.
Created to_pp_string for pretty print strings for dboard ids and device addrs.
Minor changes to the various classes that call these utilities.
2010-05-03 01:20:11 -07:00
Josh Blum
fd0d9b7dcc Replaced the dboard base constructor args with an opaque type. 2010-05-02 16:03:46 -07:00
Josh Blum
4a19b43176 Cleaned up some dboard manager construction logic.
Moved the dboard base private stuff into a forward declaration.
2010-05-02 12:16:41 -07:00
Josh Blum
90ed2e3a80 prefixed the ASSERT_THROW macro with UHD for the sake of namespace 2010-04-26 14:42:32 -07:00
Josh Blum
1217b8d67c Got eeprom read/write dboard ids working.
Moved named prop implementation into cpp,
and made named prop a struct (tuples are trouble).
2010-04-26 12:16:37 -07:00
Josh Blum
e2a9419385 renamed dboard interface to dboard iface, the lengthy name was getting to be a burden 2010-04-14 08:41:13 -07:00
Josh Blum
cbf2109e7e controlling dboard clock enables from host 2010-04-12 19:37:38 -07:00
Josh Blum
389a72ef59 merged unit type and gpio bank for dboard interface into one type, expanded dboard clock config api 2010-04-12 16:52:18 -07:00
Josh Blum
ed5cb33eb4 renamed dict get key and value methods 2010-04-05 18:11:32 -07:00
Josh Blum
91ef18021c moved props into usrp and multiple hpp files 2010-04-01 15:08:52 -07:00
Josh Blum
38248b816c Refactor ATR part of dboard interface (and some constants).
Added peek and poke to the dude/bro protocol.
Started moving more control code through peek and poke.
Added usrp_regs.hpp to be like memory map for slave perifs.
2010-03-31 17:43:20 -07:00
Josh Blum
f7867f4a51 removed masks for ddr and gpio write in dboard interface 2010-03-30 19:16:19 -07:00
Josh Blum
1295df8cbb Added utility methods to device addr and mac addr to make them more usable. 2010-03-29 12:58:06 -07:00
Josh Blum
86fffe7f9e Added tune helper to utils.
Takes a subdevice and dxc properties object and tunes them.
Made use of tune helper in simple device.

Moved gain handler into utils header dir.
2010-03-29 00:45:26 -07:00
Josh Blum
b71d0cbea9 refactored types.hpp into types directory 2010-03-27 14:27:55 -07:00
Josh Blum
52df9afd67 Split utils.hpp into subdir with multiple files.
static for static block and static instance (singleton)
assert for assertion and throwing related stuff
algorithm for my addons to std::algorithm (has)
and a new one, safe main, for having a main catch-all
2010-03-27 01:02:58 -07:00
Josh Blum
767bb41920 massaged some of the dboard calls 2010-03-22 17:41:49 -07:00
Josh Blum
8be3b883f5 Added ability to set the subdevices in use for rx and tx dboards.
This is used to calculate and set the ddc and duc muxes.
Also, minor fix for burning addrs (wrong pointer....)
2010-03-16 13:49:39 -07:00
Josh Blum
7590f187d0 Device sub classes can register themselves. Simplifies device.cpp internals.
Added static instance macro for lazy instantiation of static variables.
2010-03-15 12:15:33 -07:00
Josh Blum
2147c5f61c Removed freq min and max and gain min, max, and step...
replaced it with gain and freq range tuples.
This simplifies the api calls and subdev properties.
2010-03-12 16:01:01 -08:00
Josh Blum
daed43a8a8 Cleaned up the gain handler (thing that gets and sets wildcard gains)
and made use of it in the dboard manager so it intercepts the sets and gets.
While doing this, fixed something with nested links in wax obj.
Added some useful macros and templates to the utils.
2010-03-11 18:37:34 -08:00
Josh Blum
9c0fb5e15d Filled in dboard code for basics and lf type boards.
The dboard is now just a uint16 (dont bother with the enums).
The dboard manager now registers subdevs with a name.
The basic board code uses a static block to register itself.
2010-03-10 19:33:38 -08:00
Josh Blum
5200303517 added set nice gpio pins to manager on init and deconstruct 2010-02-22 14:36:48 -08:00
Josh Blum
9c9c96896c Made implementation class for the dboard manager. 2010-02-22 00:37:53 -08:00
Josh Blum
add5d32f9b Moved lib and include contents of dboard and mboard one directory up and prefixed them with dboard_ and mboard_.
And yes, the code is compiling.
2010-02-21 12:59:41 -08:00
Renamed from host/lib/usrp/dboard/manager.cpp (Browse further)