⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buffer.h

📁 Develop Zigbee network real-time Os
💻 H
字号:
/************************************************************************** * * buffer.h * * An implementation of the most basic buffer manipulation functions, * needed for the compression algorithms. * * This file is licensed under the GNU GPL. * * (C) 2005, Klaus S. Madsen <klaussm@diku.dk> * */#ifndef _BUFFER_H#define _BUFFER_H#ifndef __MSP430__#include <inttypes.h>#endif#define MEMBUFSIZE 256/* The reset_buffer function initializes the pointers to the buffer. This function must be called before write_bits and bits_left.*/void reset_buffer();uint8_t *get_unwritten();uint8_t *get_buffer();/*  bits_left() returns the number of bits left in the memory buffer.*/uint16_t bits_left();/*  write_bits writes at most 8 bits of data to the memory buffer.*/void write_bits(uint8_t data, uint8_t len);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -