Forum: GNU Radio Pmt value as an integer

Posted by Jose Torres (Guest)
on 2012-10-31 12:41
(Received via mailing list)
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
Posted by Tom Rondeau (Guest)
on 2012-10-31 15:55
(Received via mailing list)
On Wed, Oct 31, 2012 at 7:40 AM, Jose Torres <torresdiaz.jose@gmail.com> 
wrote:
> Thanks for your help,
>
> Jose


Yes, use the to/from long PMT.

Tom
Posted by Jose Torres Diaz (Guest)
on 2012-11-01 03:06
(Received via mailing list)
Thanks Tom!!,

This solve the problem.

Cheers,

Jose
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.