aaa
Dependencies: FATFileSystem
Dependents: AutoFlight2017_now2 AutoFlight2018_Control sbus_test_2018 Autoflight2018_sbusread ... more
SDCRC.h@0:85fbe134acff, 2017-08-26 (annotated)
- Committer:
- TUATBM
- Date:
- Sat Aug 26 16:30:14 2017 +0000
- Revision:
- 0:85fbe134acff
forSkipper
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TUATBM | 0:85fbe134acff | 1 | /* SD/MMC File System Library |
TUATBM | 0:85fbe134acff | 2 | * Copyright (c) 2016 Neil Thiessen |
TUATBM | 0:85fbe134acff | 3 | * |
TUATBM | 0:85fbe134acff | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
TUATBM | 0:85fbe134acff | 5 | * you may not use this file except in compliance with the License. |
TUATBM | 0:85fbe134acff | 6 | * You may obtain a copy of the License at |
TUATBM | 0:85fbe134acff | 7 | * |
TUATBM | 0:85fbe134acff | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
TUATBM | 0:85fbe134acff | 9 | * |
TUATBM | 0:85fbe134acff | 10 | * Unless required by applicable law or agreed to in writing, software |
TUATBM | 0:85fbe134acff | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
TUATBM | 0:85fbe134acff | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
TUATBM | 0:85fbe134acff | 13 | * See the License for the specific language governing permissions and |
TUATBM | 0:85fbe134acff | 14 | * limitations under the License. |
TUATBM | 0:85fbe134acff | 15 | */ |
TUATBM | 0:85fbe134acff | 16 | |
TUATBM | 0:85fbe134acff | 17 | #ifndef SD_CRC_H |
TUATBM | 0:85fbe134acff | 18 | #define SD_CRC_H |
TUATBM | 0:85fbe134acff | 19 | |
TUATBM | 0:85fbe134acff | 20 | #include "mbed.h" |
TUATBM | 0:85fbe134acff | 21 | |
TUATBM | 0:85fbe134acff | 22 | namespace SDCRC |
TUATBM | 0:85fbe134acff | 23 | { |
TUATBM | 0:85fbe134acff | 24 | |
TUATBM | 0:85fbe134acff | 25 | char crc7(const char* data, int length); |
TUATBM | 0:85fbe134acff | 26 | unsigned short crc16(const char* data, int length); |
TUATBM | 0:85fbe134acff | 27 | |
TUATBM | 0:85fbe134acff | 28 | } |
TUATBM | 0:85fbe134acff | 29 | |
TUATBM | 0:85fbe134acff | 30 | #endif |