函数逻辑报告 |
Source Code:lib\bch.c |
Create Date:2022-07-27 07:57:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:void encode_bch(struct bch_control *bch, const uint8_t *data, unsigned int len, uint8_t *ecc)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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)乘r的长度 |
| 207 | 如果ecc则 |
| 210 | 否则 |
| 216 | 如果m则 |
| 243 | w等于r[0]按位异或cpu_to_be32( * pdata++) |
| 名称 | 描述 |
|---|---|
| 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |