Select one of the symbols to view example projects that use it.
 
Outline
#include <stdint.h>
#include <stddef.h>
sdspi_crc7(const uint8_t *, size_t);
sdspi_crc16(const uint8_t *, size_t);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_driver_sdspi/src/sdspi_crc.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include <stdint.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Return CRC7 of data, in the format used by SD protocol * @param data array of data used to compute CRC * @param size size of data in bytes * @return CRC7 value */ uint8_t sdspi_crc7(const uint8_t *data, size_t size); /** * @brief Return CRC16 of data, in the format used by SD protocol * @param data array of data used to compute CRC * @param size size of data in bytes * @return CRC16 value */ uint16_t sdspi_crc16(const uint8_t* data, size_t size); #ifdef __cplusplus } #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.