t

Dependencies:   DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos

Fork of DMSupport by Embedded Artists

Revision:
17:4ea2509445ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Memory/BiosEEPROM.h	Wed Jan 07 14:02:39 2015 +0100
@@ -0,0 +1,46 @@
+/*
+ *  Copyright 2014 Embedded Artists AB
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef BIOS_EEPROM_H
+#define BIOS_EEPROM_H
+
+#include "mbed.h"
+
+/**
+ * Bios EEPROM Driver
+ */
+class BiosEEPROM {
+public:
+    
+    BiosEEPROM();
+
+    /** Reads
+     *
+     * @param address   the address to read from
+     * @param data      buffer to store read data in
+     * @param size      number of bytes to read
+     *
+     *  @returns
+     *       True on success
+     *       False on failure
+     */
+    bool read(uint32_t address, char* data, uint32_t size);
+  
+private:
+    I2C _i2c;
+};
+
+#endif