[Tinyos Core WG] CRC interface

David Moss dmm at rincon.com
Tue Sep 25 18:40:06 PDT 2007


The current CRC interface in TinyOS does not allow CRC's to be generated
starting with some given CRC value; instead, it uses a seed of 0 for all CRC
computations:

 

  (tos/interfaces/CRC.h):

  command uint16_t crc16(void* buf, uint8_t len);

 

I propose we add an additional command to this CRC interface that will allow
developers to generate a CRC with a given start seed:

 

  command uint16_t genericCrc16(uint16_t startCrc, void *buf, uint8_t len);

 

This would be useful for performing CRC's across multiple sets of
discontinuous data, and would use the same CRC implementation as the current
crc16 command so memory footprint is kept small.  Thoughts?

 

-David

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-2.0wg/attachments/20070925/a5eaf8ac/attachment.htm


More information about the Tinyos-2.0wg mailing list