unsigned char NandFlashModel_TranslateAccess (const struct NandFlashModel *model, unsigned int address, unsigned int size, unsigned short *block, unsigned short *page, unsigned short *offset) |
Name | Type | Default | Description |
model | const struct NandFlashModel * |
Pointer to a NandFlashModel instance. |
|
address | unsigned int |
Access address. |
|
size | unsigned int |
Access size in bytes. |
|
block | unsigned short * |
Stores the first accessed block number. |
|
page | unsigned short * |
Stores the first accessed page number inside the first block. |
|
offset | unsigned short * |
Stores the byte offset inside the first accessed page. |
|
Return value | unsigned char |