[Tinyos-devel] Crc interface buffer size restriction

Philip Levis pal at cs.stanford.edu
Tue Jan 13 14:07:55 PST 2009


On Jan 13, 2009, at 1:41 PM, Philip Levis wrote:

>
> On Jan 13, 2009, at 1:29 PM, Chieh-Jan (Mike) Liang wrote:
>
>> Hi all,
>>
>> I noticed that Crc.nc interface expects the passed-in buffer to be
>> less than 256 bytes (specifically, "uint8_t len"). Since I am
>> currently using a byte array larger than 256 bytes, CrcC.nc gives me
>> wrong results. Is there any reason for such restriction? If there is
>> no objection, I am planning to increase to 16-bit in the next few
>> days.
>
> Er... be wary of changing core interfaces like that. Any TinyOS code
> anywhere that provides the interface will have to change, and will
> have a compile-time error.

One other thought: if you want a 16-bit length CRC interface, chances  
are you want it to be split-phase, due to the possible time duration  
of the operation.

Phil


More information about the Tinyos-devel mailing list