Commit graph

14 commits

Author SHA1 Message Date
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
d1ecc555e5 Moved typedefs from props.hpp into new file types.hpp.
Created structs to replace range tuples, and clock config struct.
Merged clock config props into one property using config struct.
Added templated dict construction to use the assign::map_list_of.
Added gcc flag to set visibility to hidden and use the api macro.
2010-03-21 00:58:34 -07:00
Josh Blum
83c463d096 changes to get tuning working 2010-03-16 19:42:38 -07:00
Josh Blum
52dc738914 reimplemented dict to preserve order of insertion 2010-03-16 15:52:56 -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
fc40ff2f13 Replaced uses of wax:cast with the templated as method (like in boost program options). 2010-03-15 17:43:10 -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
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
Josh Blum
eb7e709b7a moved host code into host directory for clean (unambiguous) top level 2010-02-17 00:41:38 -08:00
Renamed from lib/usrp/dboard/basic.cpp (Browse further)