#include "MSDLun.h"#include <USBLib_Trace.h>#include "USBD.h"Go to the source code of this file.
Defines | |
| #define | DEFAULT_LUN_BLOCK_SIZE 512 |
Functions | |
| void | LUN_Init (MSDLun *lun, void *media, uint8_t *ioBuffer, uint32_t ioBufferSize, uint32_t baseAddress, uint32_t size, uint16_t blockSize, uint8_t protected, void(*dataMonitor)(uint8_t flowDirection, uint32_tdataLength, uint32_tfifoNullCount, uint32_tfifoFullCount)) |
| Initializes a LUN instance. Must be invoked at least once even no Media is linked. | |
| uint32_t | LUN_Eject (MSDLun *lun) |
| Eject the media from a LUN. | |
| uint32_t | LUN_Write (MSDLun *lun, uint32_t blockAddress, void *data, uint32_t length, TransferCallback callback, void *argument) |
| Writes data on the a LUN starting at the specified block address. | |
| uint32_t | LUN_Read (MSDLun *lun, uint32_t blockAddress, void *data, uint32_t length, TransferCallback callback, void *argument) |
| Reads data from a LUN, starting at the specified block address. | |
Definition in file MSDLun.c.
1.7.1