discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] setting fields in the USB packet


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] setting fields in the USB packet
Date: Sat, 7 Apr 2007 14:25:35 -0700
User-agent: Mutt/1.5.9i

On Sat, Apr 07, 2007 at 04:35:28PM -0400, George Nychis wrote:
> 
> Checked in some code in to my branch which compiles successfully and has 
> most of the packet functionality.  I need a function to set the payload and 
> pad it, but I'm literally putting on my shoes and running out the door to 
> visit my fam for a bit.  Will finish it tonight.  Just kicking it out for 
> some feedback and checks in the meantime.
> 
> :)
> 

Thanks.

There's already a method that returns a pointer to the payload
section.  Just use memcpy to put what you want there.  Also, note that
nobody looks at the pad (that's why it's called pad and not MBZ), so
there's no reason to initialize it.

Eric




reply via email to

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