leo hendrickson
/
S
simple-mbed-cloud-client/TESTS/COMMON/file_test.h@0:25fa8795676b, 2021-04-18 (annotated)
- Committer:
- leothedragon
- Date:
- Sun Apr 18 15:20:23 2021 +0000
- Revision:
- 0:25fa8795676b
DS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leothedragon | 0:25fa8795676b | 1 | /* |
leothedragon | 0:25fa8795676b | 2 | * mbed Microcontroller Library |
leothedragon | 0:25fa8795676b | 3 | * Copyright (c) 2006-2018 ARM Limited |
leothedragon | 0:25fa8795676b | 4 | * |
leothedragon | 0:25fa8795676b | 5 | * SPDX-License-Identifier: Apache-2.0 |
leothedragon | 0:25fa8795676b | 6 | * |
leothedragon | 0:25fa8795676b | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
leothedragon | 0:25fa8795676b | 8 | * you may not use this file except in compliance with the License. |
leothedragon | 0:25fa8795676b | 9 | * You may obtain a copy of the License at |
leothedragon | 0:25fa8795676b | 10 | * |
leothedragon | 0:25fa8795676b | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
leothedragon | 0:25fa8795676b | 12 | * |
leothedragon | 0:25fa8795676b | 13 | * Unless required by applicable law or agreed to in writing, software |
leothedragon | 0:25fa8795676b | 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
leothedragon | 0:25fa8795676b | 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
leothedragon | 0:25fa8795676b | 16 | * See the License for the specific language governing permissions and |
leothedragon | 0:25fa8795676b | 17 | * limitations under the License. |
leothedragon | 0:25fa8795676b | 18 | */ |
leothedragon | 0:25fa8795676b | 19 | |
leothedragon | 0:25fa8795676b | 20 | /* |
leothedragon | 0:25fa8795676b | 21 | * Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test |
leothedragon | 0:25fa8795676b | 22 | */ |
leothedragon | 0:25fa8795676b | 23 | |
leothedragon | 0:25fa8795676b | 24 | void file_test_write(const char* file, size_t offset, const unsigned char* data, size_t data_length, size_t block_size); |
leothedragon | 0:25fa8795676b | 25 | |
leothedragon | 0:25fa8795676b | 26 | void file_test_read(const char* file, size_t offset, const unsigned char* data, size_t data_length, size_t block_size); |