diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-25 18:36:16 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-25 18:36:16 -0700 |
commit | af586ae149fe6f7aa12d4d6766e4216f3f00d1c0 (patch) | |
tree | 4edc587df783b521c0d900d8785ab05296c6efe3 /host/lib/types.cpp | |
parent | 7d195aa792037f0b5bce5085fb2db3512b479575 (diff) | |
download | uhd-af586ae149fe6f7aa12d4d6766e4216f3f00d1c0.tar.gz uhd-af586ae149fe6f7aa12d4d6766e4216f3f00d1c0.tar.bz2 uhd-af586ae149fe6f7aa12d4d6766e4216f3f00d1c0.zip |
Overhaullllllled the way we do streaming. There is an odd bug where
a zero length command (now, no chain) used to stop the streaming.
Now it seems to do the reverse... must investigate.
Made all clock configuration into enums. The strings were painful
and there cant be that many variations that enums cant cover them.
The enums will make more sense to developers than mystery strings.
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r-- | host/lib/types.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp index f8a9a9b36..273f87a2d 100644 --- a/host/lib/types.cpp +++ b/host/lib/types.cpp @@ -51,7 +51,16 @@ tune_result_t::tune_result_t(void){ * clock config **********************************************************************/ clock_config_t::clock_config_t(void){ - ref_source = ""; //not a valid setting - pps_source = ""; //not a valid setting - pps_polarity = POLARITY_NEG; + ref_source = REF_INT, + pps_source = PPS_INT, + pps_polarity = PPS_NEG; +} + +/*********************************************************************** + * stream command + **********************************************************************/ +stream_cmd_t::stream_cmd_t(void){ + stream_now = true; + continuous = false; + num_samps = 0; } |