mbed support for LPC4088 Display Module
Dependencies: DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src
Fork of DMSupport by
Diff: FileSystems/USBMSD_RAMFS.cpp
- Revision:
- 0:6b68dac0d986
- Child:
- 9:a33326afd686
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FileSystems/USBMSD_RAMFS.cpp Fri Nov 21 11:42:51 2014 +0000 @@ -0,0 +1,33 @@ +#include "USBMSD_RAMFS.h" + +USBMSD_RAMFS::USBMSD_RAMFS(RAMFileSystem* ramfs, uint16_t vendor_id, uint16_t product_id, uint16_t product_release) : + USBMSD(vendor_id, product_id, product_release) +{ + this->ramfs = ramfs; +} + +int USBMSD_RAMFS::disk_read(uint8_t * data, uint64_t block, uint8_t count) +{ + return ramfs->disk_read(data, block, count); +} + +int USBMSD_RAMFS::disk_write(const uint8_t * data, uint64_t block, uint8_t count) +{ + return ramfs->disk_write(data, block, count); +} + +int USBMSD_RAMFS::disk_initialize() { + return ramfs->disk_initialize(); +} + +uint64_t USBMSD_RAMFS::disk_sectors() { + return ramfs->disk_sectors(); +} + +uint64_t USBMSD_RAMFS::disk_size() { + return ramfs->disk_size(); +} + +int USBMSD_RAMFS::disk_status() { + return ramfs->disk_status(); +}