{"id":21744566,"url":"https://github.com/github0null/ringbuffer","last_synced_at":"2025-08-04T18:40:58.061Z","repository":{"id":100179850,"uuid":"452187161","full_name":"github0null/ringbuffer","owner":"github0null","description":"lwrb2rtt 的副本","archived":false,"fork":false,"pushed_at":"2022-01-26T07:56:10.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T22:22:42.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github0null.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-26T07:55:54.000Z","updated_at":"2022-01-26T07:58:59.000Z","dependencies_parsed_at":"2023-04-09T21:18:30.634Z","dependency_job_id":null,"html_url":"https://github.com/github0null/ringbuffer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fringbuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fringbuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fringbuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fringbuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github0null","download_url":"https://codeload.github.com/github0null/ringbuffer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722655,"owners_count":20499153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T07:11:56.810Z","updated_at":"2025-03-21T01:41:59.708Z","avatar_url":"https://github.com/github0null.png","language":"C","readme":"# 1. 介绍\n\nlwrb2rtt 是一个轻量级的环形缓冲区管理软件包，提供了通用的 FIFO 环形缓冲区实现。\n\n此项目是完成开源的 lwrb 与 rt-thread 的匹配。\n\n原工程地址：https://github.com/MaJerle/lwrb/tree/develop\n\n项目文档：https://docs.majerle.eu/projects/lwrb/en/latest/\n\n## 1.1 特点\n\n- 用 ANSI C99 编写，与 `size_t` 大小的数据类型兼容。\n- 具有平台独立性，无与硬件耦合代码。\n- FIFO （先进先出）缓冲区的实现。\n- 无动态内存申请，数据存储在静态数组里。\n- 使用效率更高的内存复制，而不是循环地从内存读取数据或向内存写入数据。\n- 当用作管道，即只有一个写端口和一个读端口时是线程安全的。\n- 当用作管道，即只有一个写端口和一个读端口时是中断安全的。\n- 适用于 DMA 传输，缓冲区和应用程序内存之间的复制开销为 0 。\n- 支持数据预览，跳过读取和前进写入。\n- 支持事件通知\n- 对用户友好的 MIT 许可证。\n\n## 1.2 目录结构\n\n| 名称     | 说明             |\n| -------- | ---------------- |\n| examples | 例程目录         |\n| lwrb     | 原 lwrb 工程目录 |\n\n## 1.3 许可证\n\nlwrb2rtt 遵循 MIT 许可。\n\n## 1.4 依赖\n\n无依赖\n\n# 2. 如何打开 lwrb2rtt\n\n使用 lwrb2rtt 需要在 RT-Thread 的包管理器中选择它，具体路径如下：\n\n```\nRT-Thread online packages\n\ttools packages ---\u003e\n\t\t[*] lwrb2rtt: Lightweight ring buffer manager. ---\u003e\n\t\t\t[*] Enable lwrb2rtt samples\n```\n\n- `Enable lwrb2rtt samples`: 开启 lwrb2rtt 例程。\n\n然后让 RT-Thread 的包管理器自动更新，或者使用 `pkgs --update` 命令更新到 BSP 中。\n\n# 3. 联系方式 \u0026 感谢\n\n- 维护：Jackistang\n- 主页：[https://github.com/Jackistang](https://github.com/Jackistang)\n- 邮箱：tangjia.jackis@qq.com","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0null%2Fringbuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub0null%2Fringbuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0null%2Fringbuffer/lists"}