#ifndef __MW_CYCLE_QUEUE_H__ #define __MW_CYCLE_QUEUE_H__ #include "stdint.h" /* 循环队列结构体 */ typedef struct { /* 头index */ uint16_t head_index; /* 尾index */ uint16_t tail_index; /* 队总长度 */ const uint16_t queue_length; /* 单个元素的byte大小 */ const uint16_t element_size_byte; /* 队列地址 */ uint8_t *queue_buf; }cycle_queue_str; #endif