[Tinyos-help] Access and set individual bit in payload
Ittipong Khemapech
ik.tinyos at googlemail.com
Fri Jan 30 04:56:05 PST 2009
I think I should do byte-level declaration as usual and bitwise operation in
specific byte accordingly. More ideas or hints are very welcome.
Thanks,
Ittipong
2009/1/30 Ittipong Khemapech <ik.tinyos at googlemail.com>
> Hi Jordi,
>
> Many thanks for your reply. I'm kind of stuck at the very beginning. I'm
> wondering how to declare the message structure which its individual bit is
> accessed and set.
>
> Thanks,
> Ittipong
>
> 2009/1/30 Jordi Soucheiron <jsoucheiron at dexmatech.com>
>
> Hi,
>> Yes, it's possible. I'm sure there are a lot of ways to do that, but I
>> think the easyest way is to use masks and pointers
>> http://www.vipan.com/htdocs/bitwisehelp.html
>> I hope this helps
>>
>> 2009/1/30 Ittipong Khemapech <ik.tinyos at googlemail.com>
>>
>>> Hi,
>>>
>>> Is it possible to access and set value to each individual bit of
>>> message_t payload? I've been through the archives and found nothing. If you
>>> have done before, please share or give me some hints.
>>>
>>> Many thanks in advance,
>>> Ittipong
>>>
>>>
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> Tinyos-help at millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> Jordi Soucheiron
>> Software Engineer
>>
>> DEXMA
>> Parc Tecnològic la Salle
>> Sant Joan de la Salle, 42
>> 08022 Barcelona
>> t/f: [+34] 93 280 19 18
>> www.dexmatech.com
>> jsoucheiron at dexmatech.com
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090130/cb522c09/attachment.htm
More information about the Tinyos-help
mailing list