lkml.org 
[lkml]   [2011]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] lib: crc8: add new library module providing crc8 algorithm
From
Date
On Sat, 2011-05-21 at 22:49 +0200, Arend van Spriel wrote:

> +/**
> + * enum - CRC8 constants
> + *
> + * @CRC8_INIT_VALUE: Initial CRC8 checksum value
> + * @CRC8_GOOD_VALUE: Good final CRC8 checksum value
> + *
> + * Constants for the crc8() function. Refer to its
> + * documentation how to use these values.
> + */
> +enum CRC8 {
> + CRC8_INIT_VALUE = 0xff,
> + CRC8_GOOD_VALUE = 0x9f
> +};

These seem a little out of place, wouldn't that be specific to how the
algorithm is used?

johannes



\
 
 \ /
  Last update: 2011-05-22 00:37    [W:0.063 / U:1.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site