RawNandFlash_Initialize
Default mainpageat91libmemoriesnandflashRawNandFlash_Initialize
Description Source Call Graph
RawNandFlash_Initialize
Initializes a RawNandFlash instance based on the given model and physical interface.
 
Syntax / parameters
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
   
Description
Initializes a RawNandFlash instance based on the given model and physical interface.
If no model is provided, then the function tries to autodetect it. Returns 0 if initialization is successful; otherwise returns NandCommon_ERROR_UNKNOWNMODEL.
 
Source
The documentation for this Member was generated from the following files:
  • RawNandFlash.c