Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SWD USBDevice mbed BaseDAP
RamDisk.h
00001 #pragma once 00002 00003 struct SectorData { 00004 SectorData* next; 00005 int block; 00006 uint8_t data[512]; 00007 }; 00008 00009 class RamDisk { 00010 public: 00011 RamDisk(); 00012 int read(uint8_t * data, uint32_t block); 00013 int write(const uint8_t * data, uint32_t block); 00014 uint32_t sectors(); 00015 00016 void exportData(Stream* pc); 00017 protected: 00018 SectorData* find(uint16_t block); 00019 SectorData* _head; 00020 int use_size; 00021 uint64_t _sectors; 00022 };
Generated on Wed Jul 13 2022 08:08:25 by
1.7.2