[Tinyos-devel] Crc interface buffer size restriction

Philip Levis pal at cs.stanford.edu
Tue Jan 13 13:41:17 PST 2009


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.

Phil


More information about the Tinyos-devel mailing list