void LUN_Init (MSDLun *lun, Media *media, unsigned char *buffer, unsigned int baseAddress, unsigned int size, unsigned int blockSize) |
Name | Type | Default | Description |
lun | MSDLun * |
Pointer to the MSDLun instance to initialize |
|
media | Media * |
Media on which the LUN is constructed |
|
buffer | unsigned char * |
Pointer to a buffer used for read/write operation and which must be blockSize bytes long. |
|
baseAddress | unsigned int |
Base address of the LUN on the media |
|
size | unsigned int |
Total size of the LUN in bytes |
|
blockSize | unsigned int |
Length of one block of the LUN |