nand_write_page — write one page
int nand_write_page ( | struct mtd_info * mtd, |
| struct nand_chip * chip, | |
| uint32_t offset, | |
| int data_len, | |
| const uint8_t * buf, | |
| int oob_required, | |
| int page, | |
| int cached, | |
int raw); |
struct mtd_info * mtdMTD device structure
struct nand_chip * chipNAND chip descriptor
uint32_t offsetaddress offset within the page
int data_lenlength of actual data to be written
const uint8_t * bufthe data to write
int oob_requiredmust write chip->oob_poi to OOB
int pagepage number to write
int cachedcached programming
int rawuse _raw version of write_page