/** * crc7_be - update the CRC7 for the data buffer * @crc: previous CRC7 value * @buffer: data pointer * @len: number of bytes in the buffer * Context: any * * Returns the updated CRC7 value. * The CRC7 is left-aligned in the byte (the lsbit is always 0), as that * makes the computation easier, and all callers want it in that form. *
*/
u8 crc7_be(u8 crc, const u8 *buffer, size_t len)
{ while (len--)
crc = crc7_be_syndrome_table[crc ^ *buffer++]; return crc;
}
EXPORT_SYMBOL(crc7_be);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.