mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
drivers/TableCRC.h@187:fa51feb62426, 2018-10-09 (annotated)
- Committer:
- pmcorreia
- Date:
- Tue Oct 09 14:42:37 2018 +0000
- Revision:
- 187:fa51feb62426
- Parent:
- 184:08ed48f1de7f
Updated version to work with F446RE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 184:08ed48f1de7f | 1 | /* mbed Microcontroller Library |
AnnaBridge | 184:08ed48f1de7f | 2 | * Copyright (c) 2017 ARM Limited |
AnnaBridge | 184:08ed48f1de7f | 3 | * |
AnnaBridge | 184:08ed48f1de7f | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 184:08ed48f1de7f | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 184:08ed48f1de7f | 6 | * You may obtain a copy of the License at |
AnnaBridge | 184:08ed48f1de7f | 7 | * |
AnnaBridge | 184:08ed48f1de7f | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 184:08ed48f1de7f | 9 | * |
AnnaBridge | 184:08ed48f1de7f | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 184:08ed48f1de7f | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 184:08ed48f1de7f | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 184:08ed48f1de7f | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 184:08ed48f1de7f | 14 | * limitations under the License. |
AnnaBridge | 184:08ed48f1de7f | 15 | */ |
AnnaBridge | 184:08ed48f1de7f | 16 | |
AnnaBridge | 184:08ed48f1de7f | 17 | #ifndef TABLE_CRC_H |
AnnaBridge | 184:08ed48f1de7f | 18 | #define TABLE_CRC_H |
AnnaBridge | 184:08ed48f1de7f | 19 | |
AnnaBridge | 184:08ed48f1de7f | 20 | #include <stdint.h> |
AnnaBridge | 184:08ed48f1de7f | 21 | |
AnnaBridge | 184:08ed48f1de7f | 22 | namespace mbed { |
AnnaBridge | 184:08ed48f1de7f | 23 | /** \addtogroup drivers */ |
AnnaBridge | 184:08ed48f1de7f | 24 | /** @{*/ |
AnnaBridge | 184:08ed48f1de7f | 25 | |
AnnaBridge | 184:08ed48f1de7f | 26 | #define MBED_CRC_TABLE_SIZE 256 |
AnnaBridge | 184:08ed48f1de7f | 27 | |
AnnaBridge | 184:08ed48f1de7f | 28 | extern const uint8_t Table_CRC_7Bit_SD[MBED_CRC_TABLE_SIZE]; |
AnnaBridge | 184:08ed48f1de7f | 29 | extern const uint8_t Table_CRC_8bit_CCITT[MBED_CRC_TABLE_SIZE]; |
AnnaBridge | 184:08ed48f1de7f | 30 | extern const uint16_t Table_CRC_16bit_CCITT[MBED_CRC_TABLE_SIZE]; |
AnnaBridge | 184:08ed48f1de7f | 31 | extern const uint16_t Table_CRC_16bit_IBM[MBED_CRC_TABLE_SIZE]; |
AnnaBridge | 184:08ed48f1de7f | 32 | extern const uint32_t Table_CRC_32bit_ANSI[MBED_CRC_TABLE_SIZE]; |
AnnaBridge | 184:08ed48f1de7f | 33 | |
AnnaBridge | 184:08ed48f1de7f | 34 | /** @}*/ |
AnnaBridge | 184:08ed48f1de7f | 35 | } // namespace mbed |
AnnaBridge | 184:08ed48f1de7f | 36 | |
AnnaBridge | 184:08ed48f1de7f | 37 | #endif |