# mf_fifo **Repository Path**: cuyebiren/mf_fifo ## Basic Information - **Project Name**: mf_fifo - **Description**: 环形FIFO,成员可以是 byte、struct - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2021-03-29 - **Last Updated**: 2023-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 ## FIFO 实现代码:文件夹 `src/` 1. mf_fifo.c + mf_fifo.h 定义了环形FIFO的数据结构+操作实现方法。支持结构化数据单元,如 struct 数据 2. typedef.h 重新定义基本数据类型等 ## FIFO 测试工程(Code::Blocks 工程):文件夹 `test/` 1. test_byte.c FIFO 测试代码。FIFO 单元为 byte。使用函数 fifo_write 和 fifo_read 来读写 FIFO 2. test_struct.c FIFO 测试代码。FIFO 单元为 struct。使用函数 fifo_write 和 fifo_read 来读写 FIFO。相比 test_struct_1.c 效率低 3. test_struct_1.c FIFO 测试代码。FIFO 单元为 struct。使用函数 fifo_data 和 fifo_head 来获取 FIFO 单元,直接操作单元数据。相比 test_struct.c 效率高 **注意:**   test_byte.c、test_struct.c、test_struct_1.c 同时只能有一个被包含进测试工程