.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "ENCODE_RS8" "9" "09 October 2005" "" ""
.SH NAME
encode_rs8 \- Calculate the parity for data values (8bit data width)
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int encode_rs8 (struct rs_control * \fIrs\fB, uint8_t * \fIdata\fB, int \fIlen\fB, uint16_t * \fIpar\fB, uint16_t \fIinvmsk\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIrs\fB\fR
the rs control structure
.TP
\fB\fIdata\fB\fR
data field of a given type
.TP
\fB\fIlen\fB\fR
data length
.TP
\fB\fIpar\fB\fR
parity data, must be initialized by caller (usually all 0)
.TP
\fB\fIinvmsk\fB\fR
invert data mask (will be xored on data)
.SH "DESCRIPTION"
.PP
The parity uses a uint16_t data type to enable
symbol size > 8. The calling code must take care of encoding of the
syndrome result for storage itself.
.SH "DESCRIPTION"
.PP
The parity uses a uint16_t data type to enable
symbol size > 8. The calling code must take care of encoding of the
syndrome result for storage itself.