'\" t .\" Title: crc7_be .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Basic Kernel Library Functions .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "CRC7_BE" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Basic Kernel Library Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" crc7_be \- update the CRC7 for the data buffer .SH "SYNOPSIS" .HP \w'u8\ crc7_be('u .BI "u8 crc7_be(u8\ " "crc" ", const\ u8\ *\ " "buffer" ", size_t\ " "len" ");" .SH "ARGUMENTS" .PP \fIu8 crc\fR .RS 4 previous CRC7 value .RE .PP \fIconst u8 * buffer\fR .RS 4 data pointer .RE .PP \fIsize_t len\fR .RS 4 number of bytes in the buffer .RE .SH "CONTEXT" .PP any .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br