takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ReadOnlyBlockDevice_stub.cpp Source File

ReadOnlyBlockDevice_stub.cpp

00001 /*
00002  * Copyright (c) , Arm Limited and affiliates.
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #include "ReadOnlyBlockDevice.h"
00019 #include "mbed_error.h"
00020 
00021 
00022 ReadOnlyBlockDevice::ReadOnlyBlockDevice(BlockDevice *bd)
00023 {
00024     // Does nothing
00025 }
00026 
00027 ReadOnlyBlockDevice::~ReadOnlyBlockDevice()
00028 {
00029     // Does nothing
00030 }
00031 
00032 int ReadOnlyBlockDevice::init()
00033 {
00034     return 0;
00035 }
00036 
00037 int ReadOnlyBlockDevice::deinit()
00038 {
00039     return 0;
00040 }
00041 
00042 int ReadOnlyBlockDevice::sync()
00043 {
00044     return 0;
00045 }
00046 
00047 int ReadOnlyBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
00048 {
00049     return 0;
00050 }
00051 
00052 int ReadOnlyBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t size)
00053 {
00054     return 0;
00055 }
00056 
00057 int ReadOnlyBlockDevice::erase(bd_addr_t addr, bd_size_t size)
00058 {
00059     return 0;
00060 }
00061 
00062 bd_size_t ReadOnlyBlockDevice::get_read_size() const
00063 {
00064     return 0;
00065 }
00066 
00067 bd_size_t ReadOnlyBlockDevice::get_program_size() const
00068 {
00069     return 0;
00070 }
00071 
00072 bd_size_t ReadOnlyBlockDevice::get_erase_size() const
00073 {
00074     return 0;
00075 }
00076 
00077 bd_size_t ReadOnlyBlockDevice::get_erase_size(bd_addr_t addr) const
00078 {
00079     return 0;
00080 }
00081 
00082 int ReadOnlyBlockDevice::get_erase_value() const
00083 {
00084     return 0;
00085 }
00086 
00087 bd_size_t ReadOnlyBlockDevice::size() const
00088 {
00089     return 0;
00090 }