nand_calculate_ecc
Prev | Chapter 10. Public Functions Provided | Next

## Name

nand_calculate_ecc — [NAND Interface] Calculate 3-byte ECC for 256/512-byte block

## Synopsis

`int nand_calculate_ecc (` | struct mtd_info * mtd,
| const unsigned char * buf,
| unsigned char * code`)`;

## Arguments

`mtd`

  MTD block structure

`buf`

  input buffer with raw data

`code`

  output buffer with ECC

Prev | Up | Next
__nand_calculate_ecc | Home | __nand_correct_data