Commit graph

52 commits

Author SHA1 Message Date
Josh Blum
d38757f465 usrp: deleted a bunch on obsoleted files in usrp directory 2011-06-29 13:23:18 -07:00
Josh Blum
35a0bce9f0 uhd: make sure things are initialized 2011-06-29 12:20:19 -07:00
Josh Blum
54b8be72fd uhd: properties tweaks and docs 2011-06-29 11:26:33 -07:00
Josh Blum
8308fb0eef usrp: got probe working w/ the new property tree 2011-06-28 16:05:08 -07:00
Josh Blum
4888233252 uhd: re-work to make the properties easier to use 2011-06-28 11:11:04 -07:00
Josh Blum
5aab802b60 usrp: populate a tree from a subdev 2011-06-27 20:26:52 -07:00
Josh Blum
09cf8eb164 uhd: added more SAFE_CALL macros to hardware wrapper dtors
And removed the calls on the sptr resets (not needed now).
2011-06-10 15:23:24 -07:00
Josh Blum
e709e4d365 uhd: added safe call on a few dboard related deconstructors 2011-06-10 13:11:22 -07:00
Josh Blum
7f01386f63 uhd: replaced warning post with calls to UHD_MSG(warning)
The message api can support warnings, error, and status messages.
The default handler is to stdio, but the user can change this.
2011-05-04 18:36:10 -07:00
Josh Blum
c8dca30d72 uhd: replaced many conditional prints with UHD_LOG usage 2011-05-04 15:27:11 -07:00
Josh Blum
40feb62b3d usrp: work on dboard_manager to register an ID for multiple xcvr combinations 2011-04-26 14:15:16 -07:00
Josh Blum
4357f5d3c0 uhd: replaced instanced of std::exception with the uhd exceptions 2011-02-24 16:35:29 -08:00
Josh Blum
16f08844d7 uhd: renamed the assert header to assert has
only the assert has implementation is in this header

uhd assert throw moved to the exception header

updated code base includes to match
2011-02-24 14:54:24 -08:00
Josh Blum
76ebda895c uhd: switch dboard id prop to whole eeprom struct
modified implementation code and burner app

also made dboard manager use safe constructor that will use none ids if construction fails
2011-02-22 11:55:54 -08:00
Josh Blum
9a2e26e500 uhd: added read-back calls to dboard iface gpio settings, and optional mask 2010-11-26 23:27:53 -05:00
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