[Top][All Lists]

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

Re: [Discuss-gnuradio] Pmt value as an integer

From: Jose Torres Diaz
Subject: Re: [Discuss-gnuradio] Pmt value as an integer
Date: Thu, 1 Nov 2012 12:35:23 +1030

Thanks Tom!!,

This solve the problem.



On Thu, Nov 1, 2012 at 1:24 AM, Tom Rondeau <address@hidden> wrote:
On Wed, Oct 31, 2012 at 7:40 AM, Jose Torres <address@hidden> wrote:
> Hi All,
> I'm wondering if there is an easy way to use a pmt_t value as a normal integer value. What happen is I'm receiving the value from a message as follows:
> Pmt::pmt_t value=pmt_dict_ref(_msg.value, pmt::pmt_symbol("index"),PMT_NIL);
> So, from my incoming message I'm able to get the value related to "index". However, I need to plug this value as an integer later in my code, but I'm not sure how to do it.
> I know I can do the other way around, ie. get a pmt from long (pmt_from_long).
> Thanks for your help,
> Jose

Yes, use the to/from long PMT.


reply via email to

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