discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Re: [Commit-gnuradio] r5176 - gnuradio/branches/devel


From: Eric Blossom
Subject: [Discuss-gnuradio] Re: [Commit-gnuradio] r5176 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Fri, 27 Apr 2007 19:29:05 -0700
User-agent: Mutt/1.5.9i

On Fri, Apr 27, 2007 at 08:15:03PM -0600, address@hidden wrote:
> Author: gnychis
> Date: 2007-04-27 20:15:03 -0600 (Fri, 27 Apr 2007)
> New Revision: 5176
> 
> Modified:
>    
> gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
>    
> gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.h
>    
> gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
> Log:
> adding in the base code for the deallocate channel test and added a layout of 
> one of the tests
> 
> fixed the improper signals of the deallocate channel, but need to add the 
> error responses
> 
> 
> Modified: 
> gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
> ===================================================================
> --- 
> gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
>  2007-04-28 02:00:15 UTC (rev 5175)
> +++ 
> gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
>  2007-04-28 02:15:03 UTC (rev 5176)
> @@ -35,6 +35,9 @@
>  static pmt_t s_cmd_allocate_channel = pmt_intern("cmd-allocate-channel");
>  static pmt_t s_response_allocate_channel = 
> pmt_intern("response-allocate-channel");
>  static pmt_t s_send_allocate_channel = pmt_intern("send-allocate-channel");
> +static pmt_t s_cmd_deallocate_channel = pmt_intern("cmd-deallocate-channel");
> +static pmt_t s_response_deallocate_channel = 
> pmt_intern("response-deallocate-channel");
> +static pmt_t s_send_deallocate_channel = 
> pmt_intern("send-deallocate-channel");
>  
>  // 
> ----------------------------------------------------------------------------------------------
>  
> @@ -59,6 +62,7 @@
>  qa_alloc_top::qa_alloc_top(mb_runtime *runtime, const std::string 
> &instance_name, pmt_t user_arg)
>    : mb_mblock(runtime, instance_name, user_arg)
>  { 
> +  d_nrecvd=0;
>  }
>  
>  qa_alloc_top::~qa_alloc_top(){}
> @@ -67,9 +71,11 @@
>  qa_alloc_top::initial_transition()
>  {
>    d_nmsgs_to_recv = 8;
> +  
> +  d_rx = define_port("rx0", "usrp-rx", false, mb_port::INTERNAL);
> +  d_tx = define_port("tx0", "usrp-tx", false, mb_port::INTERNAL);
>  

George, you shouldn't be defining ports or components in your initial
transition, do that in the constructor.

Think of the initial_transition as the transition from the "Initial
State" in a finite state machine.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]