{"id":24091947,"url":"https://github.com/RT-Thread-packages/spl0601","last_synced_at":"2025-09-17T01:32:39.985Z","repository":{"id":89836459,"uuid":"170837337","full_name":"RT-Thread-packages/spl0601","owner":"RT-Thread-packages","description":"The Digital Air Pressure Sensor SPL06-01 driver package.","archived":false,"fork":false,"pushed_at":"2024-11-09T16:36:34.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T17:33:12.954Z","etag":null,"topics":["sensor"],"latest_commit_sha":null,"homepage":null,"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/RT-Thread-packages.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":"2019-02-15T09:24:52.000Z","updated_at":"2024-11-09T16:36:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7d492ca-6d52-4060-8a3e-1c8d9e349c7e","html_url":"https://github.com/RT-Thread-packages/spl0601","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/RT-Thread-packages%2Fspl0601","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fspl0601/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fspl0601/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fspl0601/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RT-Thread-packages","download_url":"https://codeload.github.com/RT-Thread-packages/spl0601/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233312780,"owners_count":18657099,"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":["sensor"],"created_at":"2025-01-10T07:44:47.417Z","updated_at":"2025-09-17T01:32:34.673Z","avatar_url":"https://github.com/RT-Thread-packages.png","language":"C","readme":"# SPL0601\n\n## 简介\n\n本软件包是为 Goer SPL0601 气压传感器提供的通用传感器驱动包。通过使用此软件包，开发者可以快速的利用 RT-Thread 将此传感器驱动起来。\n\n本篇文档主要内容如下：\n\n- 传感器介绍\n- 支持情况\n- 使用说明\n\n## 传感器介绍\n\nSPL0601 是 Goer（歌尔）公司专为可穿戴设备和 IOT 市场开发的一款超低功耗加气压传感器，尺寸小巧且内置温度传感器。\n\n## 支持情况\n\n| 包含设备         | 气压计 | 温度计 |\n| ---------------- | -------- | ------ |\n| **通讯接口**     |          |        |\n| IIC              | √        | √      |\n| SPI              |          |        |\n| **工作模式**     |          |        |\n| 轮询             | √        | √      |\n| 中断             |          |        |\n| FIFO             |          |        |\n| **电源模式**     |          |        |\n| 掉电             |          |        |\n| 低功耗           |          |        |\n| 普通             | √        | √      |\n| 高功耗           |          |        |\n| **数据输出速率** | √        | √      |\n| **测量范围**     |          |        |\n| **自检**         |          |        |\n| **多实例**       | √        | √      |\n\n## 使用说明\n\n### 依赖\n\n- RT-Thread 4.0.0+\n- Sensor 组件\n- IIC 驱动：SPL0601 设备使用 IIC 进行数据通讯，需要系统 IIC 驱动框架支持；\n\n### 获取软件包\n\n使用 BMA400 软件包需要在 RT-Thread 的包管理中选中它，具体路径如下：\n\n```\nSPL0601: SPL0601 Digital pressure sensor\n    [*]   Enable SPL0601 pressure\n    [*]   Enable SPL0601 temperature\n        Version (latest)  ---\u003e\n```\n\n**Enable SPL0601 pressure**： 配置开启大气压强测量功能\n\n**Enable SPL0601 temperature**：配置开启温度测量功能\n\n**Version**：软件包版本选择\n\n### 使用软件包\n\nBMA400 软件包初始化函数如下所示：\n\n```\nint rt_hw_spl0601_init(const char *name, struct rt_sensor_config *cfg);\n```\n\n该函数需要由用户调用，函数主要完成的功能有，\n\n- 设备配置和初始化（根据传入的配置信息，配置接口设备和中断引脚）；\n- 注册相应的传感器设备，完成 SPL0601 设备的注册；\n\n#### 初始化示例\n\n```\n#include \"spl0601_sensor_v1.h\"\n\nint spl0601_port(void)\n{\n    struct rt_sensor_config cfg;\n    cfg.intf.dev_name = \"i2c1\";\n    rt_hw_spl0601_init(\"spl0601\", \u0026cfg);\n    return 0;\n}\nINIT_APP_EXPORT(spl0601_port);\n```\n\n## 注意事项\n\n暂无\n\n## 联系人信息\n\n维护人:\n\n- [gztss](https://github.com/gztss)\n","funding_links":[],"categories":["Packages"],"sub_categories":["Peripherals"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread-packages%2Fspl0601","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRT-Thread-packages%2Fspl0601","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread-packages%2Fspl0601/lists"}