![](/media/cache/group/logo.png.50x50_q85.jpg)
A board support package for the LPC4088 Display Module.
Dependencies: DM_HttpServer DM_USBHost
Dependents: lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more
Fork of DMSupport by
USBMSD_RAMFS.cpp
00001 /* 00002 * Copyright 2014 Embedded Artists AB 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #include "USBMSD_RAMFS.h" 00018 00019 USBMSD_RAMFS::USBMSD_RAMFS(/*RAMFileSystem* ramfs*/HeapBlockDevice* ramfs, uint16_t vendor_id, uint16_t product_id, uint16_t product_release) : 00020 USBMSD(ramfs, true, vendor_id, product_id, product_release) 00021 { 00022 //this->ramfs = ramfs; 00023 } 00024 /* 00025 int USBMSD_RAMFS::disk_read(uint8_t * data, uint64_t block, uint8_t count) 00026 { 00027 return ramfs->disk_read(data, block, count); 00028 } 00029 00030 int USBMSD_RAMFS::disk_write(const uint8_t * data, uint64_t block, uint8_t count) 00031 { 00032 return ramfs->disk_write(data, block, count); 00033 } 00034 00035 int USBMSD_RAMFS::disk_initialize() { 00036 return ramfs->disk_initialize(); 00037 } 00038 00039 uint64_t USBMSD_RAMFS::disk_sectors() { 00040 return ramfs->disk_sectors(); 00041 } 00042 00043 uint64_t USBMSD_RAMFS::disk_size() { 00044 return ramfs->disk_size(); 00045 } 00046 00047 int USBMSD_RAMFS::disk_status() { 00048 return ramfs->disk_status(); 00049 } 00050 */
Generated on Tue Jul 12 2022 14:18:31 by
![doxygen](doxygen.png)