test for export

Dependents:   F401RE_USBMSD_RAM_copy

Fork of RAM_DISK by Norimasa Okamoto

Revision:
1:3d0c421fe52b
Parent:
0:ba333853266b
Child:
2:ee281ece9011
diff -r ba333853266b -r 3d0c421fe52b USBMSD_Ram.h
--- a/USBMSD_Ram.h	Sat Mar 03 07:55:24 2012 +0000
+++ b/USBMSD_Ram.h	Thu May 16 09:19:46 2013 +0000
@@ -1,5 +1,4 @@
-/* mbed USBMSD_Ram Library, for providing file access to SD cards
- * Copyright (c) 2008-2010, sford
+/* mbed USBMSD_Ram Library
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -26,6 +25,8 @@
 #include "mbed.h"
 #include "USBMSD.h"
 
+#define NB_SECTORS (20)
+
 /** Use the SDcard as mass storage device using the USBMSD class
  *
  * @code
@@ -43,26 +44,19 @@
 class USBMSD_Ram : public USBMSD {
 public:
 
-    /** Create the File System for accessing an SD Card using SPI
-     *
-     * @param mosi SPI mosi pin connected to SD Card
-     * @param miso SPI miso pin conencted to SD Card
-     * @param sclk SPI sclk pin connected to SD Card
-     * @param cs   DigitalOut pin used as SD Card chip select
-     * @param name The name used to access the virtual filesystem
-     */
+   
     USBMSD_Ram();
     virtual int disk_initialize();
-    virtual int disk_write(const char *buffer, int block_number);
-    virtual int disk_read(char *buffer, int block_number);    
+    virtual int disk_write(const uint8_t * data, uint64_t block);
+    virtual int disk_read(uint8_t * data, uint64_t block);    
     virtual int disk_status();
     virtual int disk_sync();
-    virtual int disk_sectors();
-    virtual int disk_size();
+    virtual uint64_t disk_sectors();
+    virtual uint64_t disk_size();
     
 protected:
     int _status;
-    char disk_image[512*32];
+    char disk_image[512*NB_SECTORS];
 
 };