unsigned char RawNandFlash_Initialize (struct RawNandFlash *raw, const struct NandFlashModel *model, unsigned int commandAddress, unsigned int addressAddress, unsigned int dataAddress, const Pin pinChipEnable, const Pin pinReadyBusy) |
Name | Type | Default | Description |
raw | struct RawNandFlash * |
Pointer to a RawNandFlash instance. |
|
model | const struct NandFlashModel * |
Pointer to the underlying nand chip model. Can be 0. |
|
commandAddress | unsigned int |
Address at which commands are sent. |
|
addressAddress | unsigned int |
Address at which addresses are sent. |
|
dataAddress | unsigned int |
Address at which data is sent. |
|
pinChipEnable | const Pin |
Pin controlling the CE signal of the NandFlash. |
|
pinReadyBusy | const Pin |
Pin used to monitor the ready/busy signal of the Nand. |
|
Return value | unsigned char |