crc.h
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 26 行
H
26 行
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)#ifndef __CRC_H__#define __CRC_H__#include <inttypes.h>#define CRC_OK 0#define CRC_ERROR -1/** @file crc.h * @brief Calculate the CRC-16 CCITT of buffer that is size bytes long. * @param buf Pointer to data buffer. * @param size number of bytes in data buffer * @return CRC-16 of buffer[0 .. length] */uint16_t crc_compute(uint8_t *buf, uint16_t size);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?