.\" 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 "DECODE_RS8" "9" "09 October 2005" "" ""
.SH NAME
decode_rs8 \- Decode codeword (8bit data width)
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int decode_rs8 (struct rs_control * \fIrs\fB, uint8_t * \fIdata\fB, uint16_t * \fIpar\fB, int \fIlen\fB, uint16_t * \fIs\fB, int \fIno_eras\fB, int * \fIeras_pos\fB, uint16_t \fIinvmsk\fB, uint16_t * \fIcorr\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\fIpar\fB\fR
received parity data field
.TP
\fB\fIlen\fB\fR
data length
.TP
\fB\fIs\fB\fR
syndrome data field (if NULL, syndrome is calculated)
.TP
\fB\fIno_eras\fB\fR
number of erasures
.TP
\fB\fIeras_pos\fB\fR
position of erasures, can be NULL
.TP
\fB\fIinvmsk\fB\fR
invert data mask (will be xored on data, not on parity!)
.TP
\fB\fIcorr\fB\fR
buffer to store correction bitmask on eras_pos
.SH "DESCRIPTION"
.PP
The syndrome and parity uses a uint16_t data type to enable
symbol size > 8. The calling code must take care of decoding of the
syndrome result and the received parity before calling this code.
.SH "DESCRIPTION"
.PP
The syndrome and parity uses a uint16_t data type to enable
symbol size > 8. The calling code must take care of decoding of the
syndrome result and the received parity before calling this code.