Function report |
Source Code:lib\bch.c |
Create Date:2022-07-28 06:59:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:de_bch - calculate BCH ecc parity of data*@bch: BCH control structure*@data: data to encode*@len: data length in bytes*@ecc: ecc parity data, must be initialized by caller* The @ecc parity array is used both as input and output parameter, in order to
Proto:void encode_bch(struct bch_control *bch, const uint8_t *data, unsigned int len, uint8_t *ecc)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bch_control * | bch | |
| const uint8_t * | data | |
| unsigned int | len | |
| uint8_t * | ecc |
| 193 | l = BCH_ECC_WORDS(bch) - 1 |
| 197 | r_bytes = BCH_ECC_WORDS(bch) * size of r |
| 207 | If ecc Then |
| 210 | Else |
| 216 | If m Then |
| 228 | No 3D Now!(r, ecc_buf, r_bytes) |
| 243 | w = r[0] ^ cpu_to_be32( * pdata++) |
| 254 | No 3D Now!(ecc_buf, r, r_bytes) |
| 261 | If ecc Then vert 32-bit ecc words to ecc bytes |
| Name | Describe |
|---|---|
| decode_bch | decode_bch - decode received codeword and find bit error locations*@bch: BCH control structure*@data: received data, ignored if @calc_ecc is provided*@len: data length in bytes, must always be provided*@recv_ecc: received ecc, if NULL then assume it was |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |