This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <common/sys/types.h>
/**
* @brief 计算crc8
*
* @param crc crc初始值
* @param buffer 输入缓冲区
* @param len buffer大小(bytes)
* @return uint8_t crc
*/
uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len);