Subdirectory provided by Embedded Artists

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

Dependents:   lpc4088_displaymodule_hello_world_Sept_2018

Fork of DMSupport by Embedded Artists

Memory/BiosEEPROM.h

Committer:
jmitc91516
Date:
2018-10-04
Revision:
41:ac490f69398f
Parent:
17:4ea2509445ac

File content as of revision 41:ac490f69398f:

/*
 *  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